Package org.ametys.cms.model
Class ContentRestrictedRepeaterDefinition
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.ModelItemGroup
org.ametys.plugins.repository.model.RepeaterDefinition
org.ametys.cms.model.ContentRestrictedRepeaterDefinition
- All Implemented Interfaces:
Comparable<ModelItem>
,RestrictedModelItem<Content>
,ModelItem
,ModelItemAccessor
,ModelItemContainer
,Labelable
,ModifiableLabelable
public class ContentRestrictedRepeaterDefinition
extends RepeaterDefinition
implements RestrictedModelItem<Content>
Definition of a repeater 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 repeaterMethods inherited from class org.ametys.plugins.repository.model.RepeaterDefinition
_toJSON, getAddLabel, getDeleteLabel, getHeaderLabel, getInitialSize, getMaxSize, getMinSize, of, setAddLabel, setDeleteLabel, setHeaderLabel, setInitialSize, setMaxSize, setMinSize
Methods inherited from class org.ametys.runtime.model.ModelItemGroup
_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
-
ContentRestrictedRepeaterDefinition
public ContentRestrictedRepeaterDefinition()
-
-
Method Details
-
setRestrictions
Set the restrictions for the repeater- 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
-