Interface PropagationConstraint
-
- All Superinterfaces:
Element,ModelElement,Property,PropertyElement,SchemaMixedElement,Serializable
- All Known Implementing Classes:
PropagationConstraintImpl
@TypeMetadata(name="PropagationConstraint", description="This type provides propagation constraint for Relation", version="1.1.0") @Change(version="1.1.0",description="Added \'delete\' propagation constraint") @Change(version="1.0.0",description="First Version") public interface PropagationConstraint extends Property
At any time entities and relations can be added or removed to/from a context or deleted. The PropagationConstraint property contained in each relation is a property which indicates the behaviour to be held on a target entity when an event related to a context occurs in the source resource or directly to the relation. The default values of propagation constraints are: - IsRelatedTo: delete=keep, remove=keep, add=unpropagate; - ConsistsOf : delete=cascade, remove=cascade, add=propagate. https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Propagation_Constraint- Author:
- Luca Frosini (ISTI - CNR)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPropagationConstraint.AddConstraintstatic classPropagationConstraint.DeleteConstraintstatic classPropagationConstraint.RemoveConstraint
-
Field Summary
Fields Modifier and Type Field Description static StringADD_PROPERTYstatic StringDELETE_PROPERTYstatic StringNAMEstatic StringREMOVE_PROPERTY-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropagationConstraint.AddConstraintgetAddConstraint()PropagationConstraint.DeleteConstraintgetDeleteConstraint()PropagationConstraint.RemoveConstraintgetRemoveConstraint()voidsetAddConstraint(PropagationConstraint.AddConstraint addConstraint)voidsetDeleteConstraint(PropagationConstraint.DeleteConstraint deleteConstraint)voidsetRemoveConstraint(PropagationConstraint.RemoveConstraint removeConstraint)-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Methods inherited from interface org.gcube.informationsystem.model.reference.properties.Property
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
-
-
-
Field Detail
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
ADD_PROPERTY
static final String ADD_PROPERTY
- See Also:
- Constant Field Values
-
DELETE_PROPERTY
static final String DELETE_PROPERTY
- See Also:
- Constant Field Values
-
REMOVE_PROPERTY
static final String REMOVE_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAddConstraint
@ISProperty(name="add", description="It indicates the behaviour to implement for the target Entity when an \'add\' action is performed on the source Resource. Add action is the operation of adding an instance to a context.", mandatory=true, nullable=false) PropagationConstraint.AddConstraint getAddConstraint()
-
setAddConstraint
void setAddConstraint(PropagationConstraint.AddConstraint addConstraint)
-
getDeleteConstraint
@ISProperty(name="delete", description="It indicates the behaviour to implement for the target Entity when a \'delete\' action is performed on the source Resource. Delet action is the operation of deleting an instance (it has an impact on all contexts).", mandatory=true, nullable=false) PropagationConstraint.DeleteConstraint getDeleteConstraint()
-
setDeleteConstraint
void setDeleteConstraint(PropagationConstraint.DeleteConstraint deleteConstraint)
-
getRemoveConstraint
@ISProperty(name="remove", description="It indicates the behaviour to implement for the target Entity when a \'remove\' action is performed on the source Resource. Remove actions is the operation of removing an instance from a context.", mandatory=true, nullable=false) PropagationConstraint.RemoveConstraint getRemoveConstraint()
-
setRemoveConstraint
void setRemoveConstraint(PropagationConstraint.RemoveConstraint removeConstraint)
-
-