diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/AvailableInAnotherContext.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/AvailableInAnotherContext.java new file mode 100644 index 0000000..c8d4937 --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/AvailableInAnotherContext.java @@ -0,0 +1,5 @@ +package org.gcube.informationsystem.resourceregistry.api.exceptions; + +public interface AvailableInAnotherContext { + +} diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/EntityAvailableInAnotherContextException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/EntityAvailableInAnotherContextException.java new file mode 100644 index 0000000..7d87657 --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/EntityAvailableInAnotherContextException.java @@ -0,0 +1,27 @@ +package org.gcube.informationsystem.resourceregistry.api.exceptions.entity; + +import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext; +import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException; + +/** + * @author Luca Frosini (ISTI - CNR) + */ +public class EntityAvailableInAnotherContextException extends ERAvailableInAnotherContextException implements AvailableInAnotherContext { + + /** + * Generated Serial Version UID + */ + private static final long serialVersionUID = 6169522499840275744L; + + public EntityAvailableInAnotherContextException(String message) { + super(message); + } + + public EntityAvailableInAnotherContextException(Throwable cause) { + super(cause); + } + + public EntityAvailableInAnotherContextException(String message, Throwable cause) { + super(message, cause); + } +} diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/facet/FacetAvailableInAnotherContextException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/facet/FacetAvailableInAnotherContextException.java new file mode 100644 index 0000000..8a14d90 --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/facet/FacetAvailableInAnotherContextException.java @@ -0,0 +1,28 @@ +package org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet; + +import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext; +import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityAvailableInAnotherContextException; + +/** + * @author Luca Frosini (ISTI - CNR) + */ +public class FacetAvailableInAnotherContextException extends EntityAvailableInAnotherContextException implements AvailableInAnotherContext { + + /** + * Generated Serial Version UID + */ + private static final long serialVersionUID = -7502387344011649559L; + + public FacetAvailableInAnotherContextException(String message) { + super(message); + } + + public FacetAvailableInAnotherContextException(Throwable cause) { + super(cause); + } + + public FacetAvailableInAnotherContextException(String message, Throwable cause) { + super(message, cause); + } + +} diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/resource/ResourceAvailableInAnotherContextException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/resource/ResourceAvailableInAnotherContextException.java new file mode 100644 index 0000000..5146217 --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/entity/resource/ResourceAvailableInAnotherContextException.java @@ -0,0 +1,28 @@ +package org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource; + +import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext; +import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityAvailableInAnotherContextException; + +/** + * @author Luca Frosini (ISTI - CNR) + */ +public class ResourceAvailableInAnotherContextException extends EntityAvailableInAnotherContextException implements AvailableInAnotherContext { + + /** + * Generated Serial Version UID + */ + private static final long serialVersionUID = -8722827977850574469L; + + public ResourceAvailableInAnotherContextException(String message) { + super(message); + } + + public ResourceAvailableInAnotherContextException(Throwable cause) { + super(cause); + } + + public ResourceAvailableInAnotherContextException(String message, Throwable cause) { + super(message, cause); + } + +} diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/er/ERAvailableInAnotherContextException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/er/ERAvailableInAnotherContextException.java new file mode 100644 index 0000000..be7e4f8 --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/er/ERAvailableInAnotherContextException.java @@ -0,0 +1,28 @@ +package org.gcube.informationsystem.resourceregistry.api.exceptions.er; + +import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext; + +/** + * @author Luca Frosini (ISTI - CNR) + * + */ +public class ERAvailableInAnotherContextException extends ERException implements AvailableInAnotherContext { + + /** + * Generated Serial Version UID + */ + private static final long serialVersionUID = -7499131763751652582L; + + public ERAvailableInAnotherContextException(String message) { + super(message); + } + + public ERAvailableInAnotherContextException(Throwable cause) { + super(cause); + } + + public ERAvailableInAnotherContextException(String message, Throwable cause) { + super(message, cause); + } + +} diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/RelationAvailableInAnotherContextException.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/RelationAvailableInAnotherContextException.java new file mode 100644 index 0000000..0a50ac2 --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/exceptions/relation/RelationAvailableInAnotherContextException.java @@ -0,0 +1,28 @@ +package org.gcube.informationsystem.resourceregistry.api.exceptions.relation; + +import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContext; +import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException; + +/** + * @author Luca Frosini (ISTI - CNR) + */ +public class RelationAvailableInAnotherContextException extends ERAvailableInAnotherContextException implements AvailableInAnotherContext { + + /** + * Generated Serial Version UID + */ + private static final long serialVersionUID = -8555707367745327973L; + + public RelationAvailableInAnotherContextException(String message) { + super(message); + } + + public RelationAvailableInAnotherContextException(Throwable cause) { + super(cause); + } + + public RelationAvailableInAnotherContextException(String message, Throwable cause) { + super(message, cause); + } + +}