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
,ModelItemAccessor
,ModelItemContainer
,Labelable
,ModifiableLabelable
public class ContentRestrictedCompositeDefinition
extends CompositeDefinition
implements RestrictedModelItem<Content>
Definition of a composite for content types attributes
-
Field Summary
Fields inherited from class org.ametys.runtime.model.AbstractModelItem
__serviceManager
Fields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if the object can be read by the definitionboolean
Determines if the object can be written by the definitionvoid
setRestrictions
(Restrictions restrictions) Set the restrictions for the compositeMethods inherited from class org.ametys.plugins.repository.model.CompositeDefinition
of
Methods inherited from class org.ametys.runtime.model.ModelItemGroup
_toJSON, _toJSON, addChild, addChild, getChildren, getChildren, getModelItems, getSwitcher, getType, of, setModel, setType, toJSON
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
_shouldJSONBeEmpty, addItemChecker, compareTo, equals, getDescription, getItemCheckers, getLabel, getModel, getName, getParent, getPath, hashCode, setDescription, setLabel, setName, setParent, setServiceManager, toJSON, 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.ModelItemAccessor
getChild, getModelItem, hasModelItem
Methods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setName
-
Constructor Details
-
ContentRestrictedCompositeDefinition
public ContentRestrictedCompositeDefinition()
-
-
Method Details
-
setRestrictions
Set the restrictions for the composite- Parameters:
restrictions
- the restrictions to set
-
canRead
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
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
-