Package org.ametys.cms.model
Class ContentRestrictedCompositeDefinition
- java.lang.Object
-
- org.ametys.runtime.model.AbstractModelItem
-
- org.ametys.runtime.model.ModelItemGroup
-
- org.ametys.plugins.repository.model.CompositeDefinition
-
- org.ametys.cms.model.ContentRestrictedCompositeDefinition
-
- All Implemented Interfaces:
Comparable<ModelItem>
,RestrictedModelItem<Content>
,ModelItem
,ModelItemContainer
,Labelable
,ModifiableLabelable
public class ContentRestrictedCompositeDefinition extends CompositeDefinition implements RestrictedModelItem<Content>
Definition of a composite for content types attributes
-
-
Field Summary
Fields Modifier and Type Field Description private ContentRestrictedModelItemHelper
_restrictedModelItemHelper
private Restrictions
_restrictions
-
Fields inherited from class org.ametys.runtime.model.AbstractModelItem
__serviceManager
-
Fields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description ContentRestrictedCompositeDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRead(Content content)
Determines if the object can be read by the definitionboolean
canWrite(Content content)
Determines if the object can be written by the definitionprivate ContentRestrictedModelItemHelper
getRestrictedModelItemHelper()
void
setRestrictions(Restrictions restrictions)
Set the restrictions for the composite-
Methods inherited from class org.ametys.plugins.repository.model.CompositeDefinition
of
-
Methods inherited from class org.ametys.runtime.model.ModelItemGroup
addChild, addChild, getChildren, getChildren, getModelItems, getSwitcher, getType, of, setModel, setType, toJSON, toJSON
-
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
addItemChecker, compareTo, equals, getDescription, getItemCheckers, getLabel, getModel, getName, getParent, getPath, hashCode, setDescription, setLabel, setName, setParent, setServiceManager, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getName
-
Methods inherited from interface org.ametys.runtime.model.ModelItem
addItemChecker, getItemCheckers, getModel, getParent, getPath, getType, setModel, setParent, setType, toJSON
-
Methods inherited from interface org.ametys.runtime.model.ModelItemContainer
getChild, getModelItem, hasModelItem
-
Methods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setName
-
-
-
-
Field Detail
-
_restrictedModelItemHelper
private ContentRestrictedModelItemHelper _restrictedModelItemHelper
-
_restrictions
private Restrictions _restrictions
-
-
Constructor Detail
-
ContentRestrictedCompositeDefinition
public ContentRestrictedCompositeDefinition()
-
-
Method Detail
-
setRestrictions
public void setRestrictions(Restrictions restrictions)
Set the restrictions for the composite- Parameters:
restrictions
- the restrictions to set
-
canRead
public boolean canRead(Content content)
Description copied from interface:RestrictedModelItem
Determines if the object can be read by the definition- Specified by:
canRead
in interfaceRestrictedModelItem<Content>
- Parameters:
content
- the object- Returns:
- true if the object can be read by the definition, false otherwise
-
canWrite
public boolean canWrite(Content content)
Description copied from interface:RestrictedModelItem
Determines if the object can be written by the definition- Specified by:
canWrite
in interfaceRestrictedModelItem<Content>
- Parameters:
content
- the object- Returns:
- true if the object can be written by the definition, false otherwise
-
getRestrictedModelItemHelper
private ContentRestrictedModelItemHelper getRestrictedModelItemHelper()
-
-