Package org.ametys.odf.restriction
Class RepeaterWithEducationalPathRestriction
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.model.restrictions.DefaultRestriction
org.ametys.odf.restriction.SharedOnlyRestriction
org.ametys.odf.restriction.RepeaterWithEducationalPathRestriction
- All Implemented Interfaces:
- Restriction,- LogEnabled,- Initializable,- Component,- Configurable,- Contextualizable,- Serviceable
- Direct Known Subclasses:
- RepeaterWithEducationalPathRestriction
public class RepeaterWithEducationalPathRestriction
extends SharedOnlyRestriction
implements Contextualizable, Initializable
Restrictions for a repeater with educational path or for data in a repeater with educational
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.ametys.cms.model.restrictions.RestrictionRestriction.RestrictionResult
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe fields handled by this restrictionFields inherited from class org.ametys.cms.model.restrictions.DefaultRestriction_currentUserProvider, _rightManager, _workflowProvider, _writeRightIds
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidEnsure the configuration of write rights is correctprotected boolean_hasRights(Content content, RestrictedModelItem modelItem, Set<String> rightLimitations) Check if current user has the given rights.canWrite(Content content, RestrictedModelItem modelItem) Determine whether a model item can be written at this time.voidconfigure(Configuration configuration) voidcontextualize(Context context) voidMethods inherited from class org.ametys.odf.restriction.SharedOnlyRestrictioncanRead, serviceMethods inherited from class org.ametys.cms.model.restrictions.DefaultRestriction_isInWorkflowStepMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabledgetLogger, setLogger
- 
Field Details- 
_fieldsThe fields handled by this restriction
 
- 
- 
Constructor Details- 
RepeaterWithEducationalPathRestriction
 
- 
- 
Method Details- 
configure- Specified by:
- configurein interface- Configurable
- Overrides:
- configurein class- SharedOnlyRestriction
- Throws:
- ConfigurationException
 
- 
_checkWriteRightsEnsure the configuration of write rights is correct- Throws:
- ConfigurationException- If the configuration is incorrect
 
- 
contextualize- Specified by:
- contextualizein interface- Contextualizable
- Throws:
- ContextException
 
- 
initialize- Specified by:
- initializein interface- Initializable
- Throws:
- Exception
 
- 
canWriteDescription copied from interface:RestrictionDetermine whether a model item can be written at this time.- Specified by:
- canWritein interface- Restriction
- Overrides:
- canWritein class- DefaultRestriction
- 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
 
- 
_hasRightsprotected boolean _hasRights(Content content, RestrictedModelItem modelItem, Set<String> rightLimitations) Description copied from class:DefaultRestrictionCheck if current user has the given rights.- Overrides:
- _hasRightsin class- DefaultRestriction
- Parameters:
- content- the content.
- modelItem- the model item on which check the restrictions
- rightLimitations- the right limitations.
- Returns:
- trueif user has at least one right,- falseotherwise.
 
 
-