Interface PropagationConstraint
-
- All Superinterfaces:
Element,Property,PropertyElement,SchemaMixedElement,Serializable
- All Known Implementing Classes:
PropagationConstraintImpl
@TypeMetadata(name="PropagationConstraint", description="This type provides propagation constraint for Relation", version="1.0.0") @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: remove=keep, add=unpropagate; - ConsistsOf : 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.RemoveConstraint
-
Field Summary
Fields Modifier and Type Field Description static StringADD_PROPERTYstatic StringNAMEstatic StringREMOVE_PROPERTY-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
CLASS_PROPERTY, DATETIME_PATTERN, SUPERCLASSES_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropagationConstraint.AddConstraintgetAddConstraint()PropagationConstraint.RemoveConstraintgetRemoveConstraint()voidsetAddConstraint(PropagationConstraint.AddConstraint addConstraint)voidsetRemoveConstraint(PropagationConstraint.RemoveConstraint removeConstraint)-
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
-
REMOVE_PROPERTY
static final String REMOVE_PROPERTY
- See Also:
- Constant Field Values
-
ADD_PROPERTY
static final String ADD_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 are: (i) the operation of removing an instance from a context; (ii) the operation of deleting an instance (it has an impact on all contexts).", mandatory=true, nullable=false) PropagationConstraint.RemoveConstraint getRemoveConstraint()
-
setRemoveConstraint
void setRemoveConstraint(PropagationConstraint.RemoveConstraint removeConstraint)
-
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)
-
-