Interface RestrictedModelItem<T>

Type Parameters:
T - Type of object on which the restrictions are applied
All Superinterfaces:
Comparable<ModelItem>, Labelable, ModelItem, ModifiableLabelable
All Known Implementing Classes:
AttributeDefinition, ContentAttributeDefinition, ContentRestrictedCompositeDefinition, ContentRestrictedRepeaterDefinition, RichTextAttributeDefinition

public interface RestrictedModelItem<T> extends ModelItem
Interface for model items with restrictions
  • Method Details

    • setRestriction

      void setRestriction(Restriction restriction)
      Set the restriction for the model item
      Parameters:
      restriction - the restriction to set
    • getRestriction

      Get the restriction for the model item
      Returns:
      The class for restriction or null if there is no restriction
    • canRead

      boolean canRead(T object)
      Determines if the object can be read by the definition
      Parameters:
      object - the object
      Returns:
      true if the object can be read by the definition, false otherwise
    • canWrite

      boolean canWrite(T object)
      Determines if the object can be written by the definition
      Parameters:
      object - the object
      Returns:
      true if the object can be written by the definition, false otherwise