Interface Restriction

All Known Implementing Classes:
DefaultRestriction, RepeaterWithEducationalPathRestriction

public interface Restriction
Interface for restriction on content attributes
  • Method Details

    • canRead

      Determine whether a model item can be read at this time.
      Parameters:
      content - The content where item is to be written on. Can be null, on content creation.
      modelItem - the model item on which check the restrictions
      Returns:
      The restriction result
    • canWrite

      Determine whether a model item can be written at this time.
      Parameters:
      content - The content where item is to be written on. Can be null, on content creation.
      modelItem - the model item on which check the restrictions
      Returns:
      The restriction result