Interface Restriction
- All Known Implementing Classes:
DefaultRestriction
,RepeaterWithEducationalPathRestriction
public interface Restriction
Interface for restriction on content attributes
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Enumeration for restrictions results -
Method Summary
Modifier and TypeMethodDescriptioncanRead
(Content content, RestrictedModelItem modelItem) Determine whether a model item can be read at this time.canWrite
(Content content, RestrictedModelItem modelItem) Determine whether a model item can be written at this time.
-
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
-