Commit c9618708 authored by Matija Obreza's avatar Matija Obreza
Browse files

Renamed *.rest.* packages to *.api.*

parent 00f23a64
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.genesys.catalog.server.controller.api.v0;
package org.genesys.catalog.server.controller.api;
import com.fasterxml.jackson.annotation.JsonView;
import org.genesys.blocks.model.JsonViews;
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.genesys.catalog.server.controller.api.v0;
package org.genesys.catalog.server.controller.api;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
......
......@@ -32,7 +32,7 @@ import javax.persistence.TemporalType;
import org.apache.commons.lang.math.RandomUtils;
import org.genesys.blocks.model.AuditedVersionedModel;
import org.genesys2.server.servlet.controller.rest.serialization.MaterialRequestSerializer;
import org.genesys2.server.servlet.controller.api.serialization.MaterialRequestSerializer;
import org.hibernate.annotations.Type;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
......
......@@ -31,7 +31,7 @@ import javax.persistence.TemporalType;
import org.apache.commons.lang.math.RandomUtils;
import org.genesys.blocks.model.AuditedVersionedModel;
import org.genesys2.server.servlet.controller.rest.serialization.MaterialSubRequestSerializer;
import org.genesys2.server.servlet.controller.api.serialization.MaterialSubRequestSerializer;
import org.hibernate.annotations.Type;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
......
......@@ -26,7 +26,7 @@ import java.util.Locale;
import javax.persistence.*;
import org.genesys.blocks.model.BasicModel;
import org.genesys2.server.servlet.controller.rest.serialization.CountrySerializer;
import org.genesys2.server.servlet.controller.api.serialization.CountrySerializer;
import org.hibernate.annotations.Type;
import com.fasterxml.jackson.databind.JsonNode;
......
......@@ -42,7 +42,7 @@ import org.apache.commons.lang3.StringUtils;
import org.genesys.blocks.model.BasicModel;
import org.genesys.blocks.model.EntityId;
import org.genesys.blocks.security.model.AclAwareModel;
import org.genesys2.server.servlet.controller.rest.serialization.FaoInstituteSerializer;
import org.genesys2.server.servlet.controller.api.serialization.FaoInstituteSerializer;
@Cacheable
@Entity
......
......@@ -35,7 +35,7 @@ import javax.persistence.UniqueConstraint;
import org.genesys.blocks.model.AuditedVersionedModel;
import org.genesys.blocks.security.model.AclAwareModel;
import org.genesys2.server.servlet.controller.rest.serialization.TeamSerializer;
import org.genesys2.server.servlet.controller.api.serialization.TeamSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
......
......@@ -29,7 +29,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.genesys.blocks.security.model.BasicUser;
import org.genesys2.server.model.UserRole;
import org.genesys2.server.servlet.controller.rest.serialization.UserSerializer;
import org.genesys2.server.servlet.controller.api.serialization.UserSerializer;
@Cacheable
@Entity
......
......@@ -48,9 +48,9 @@ import org.genesys2.server.model.impl.Crop;
import org.genesys2.server.model.impl.FaoInstitute;
import org.genesys2.server.model.impl.Organization;
import org.genesys2.server.service.impl.FilterHandler.AppliedFilters;
import org.genesys2.server.servlet.controller.api.model.AccessionHeaderJson;
import org.genesys2.server.service.impl.NoSuchAccessionException;
import org.genesys2.server.service.impl.NonUniqueAccessionException;
import org.genesys2.server.servlet.controller.rest.model.AccessionHeaderJson;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
......
......@@ -91,7 +91,7 @@ import org.genesys2.server.service.HtmlSanitizer;
import org.genesys2.server.service.OrganizationService;
import org.genesys2.server.service.TaxonomyService;
import org.genesys2.server.service.impl.FilterHandler.AppliedFilters;
import org.genesys2.server.servlet.controller.rest.model.AccessionHeaderJson;
import org.genesys2.server.servlet.controller.api.model.AccessionHeaderJson;
import org.genesys2.util.NumberUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......
......@@ -43,8 +43,8 @@ import org.genesys2.server.persistence.domain.FaoInstituteRepository;
import org.genesys2.server.service.GeoService;
import org.genesys2.server.service.TaxonomyService;
import org.genesys2.server.service.worker.AccessionOpResponse.UpsertResult;
import org.genesys2.server.servlet.controller.rest.PleaseRetryException;
import org.genesys2.server.servlet.controller.rest.model.AccessionHeaderJson;
import org.genesys2.server.servlet.controller.api.PleaseRetryException;
import org.genesys2.server.servlet.controller.api.model.AccessionHeaderJson;
import org.genesys2.util.PDCICalculator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.server.servlet.controller.rest;
package org.genesys2.server.servlet.controller.api;
public class ExceptionJson {
public String error;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.server.servlet.controller.rest;
package org.genesys2.server.servlet.controller.api;
import java.util.ArrayList;
import java.util.List;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.server.servlet.controller.rest;
package org.genesys2.server.servlet.controller.api;
import java.util.Collection;
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.genesys2.server.servlet.controller.rest;
package org.genesys2.server.servlet.controller.api;
import org.genesys2.server.exception.InvalidApiUsageException;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.server.servlet.controller.rest;
package org.genesys2.server.servlet.controller.api;
import java.io.IOException;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.server.servlet.controller.rest.model;
package org.genesys2.server.servlet.controller.api.model;
public class AccessionAliasJson {
public String name;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.server.servlet.controller.rest.model;
package org.genesys2.server.servlet.controller.api.model;
import java.text.MessageFormat;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.server.servlet.controller.rest.model;
package org.genesys2.server.servlet.controller.api.model;
import java.util.List;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
**/
package org.genesys2.server.servlet.controller.rest.model;
package org.genesys2.server.servlet.controller.api.model;
import java.util.ArrayList;
import java.util.Collection;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment