public class ContentRestrictedRepeaterDefinition extends RepeaterDefinition implements RestrictedModelItem<Content>, Serviceable
Modifier and Type | Field and Description |
---|---|
private ContentRestrictedModelItemHelper |
_restrictedModelItemHelper |
private Restrictions |
_restrictions |
TYPE
ITEM_PATH_SEPARATOR
Constructor and Description |
---|
ContentRestrictedRepeaterDefinition() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(Content content)
Determines if the object can be read by the definition
|
boolean |
canWrite(Content content)
Determines if the object can be written by the definition
|
void |
service(ServiceManager manager) |
void |
setRestrictions(Restrictions restrictions)
Set the restrictions for the repeater
|
getAddLabel, getDeleteLabel, getHeaderLabel, getInitialSize, getMaxSize, getMinSize, setAddLabel, setDeleteLabel, setHeaderLabel, setInitialSize, setMaxSize, setMinSize, toJSON
addChild, addChild, getChildren, getChildren, getModelItems, getSwitcher, getType, setType, toJSON
addItemChecker, compareTo, equals, getDescription, getItemCheckers, getLabel, getModel, getName, getParent, getPath, hashCode, setDescription, setLabel, setModel, setName, setParent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addItemChecker, getItemCheckers, getModel, getParent, getPath, getType, setModel, setParent, setType, toJSON
setDescription, setLabel, setName
getDescription, getLabel, getName
compareTo
getChild, getModelItem, hasModelItem
private ContentRestrictedModelItemHelper _restrictedModelItemHelper
private Restrictions _restrictions
public ContentRestrictedRepeaterDefinition()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void setRestrictions(Restrictions restrictions)
restrictions
- the restrictions to setpublic boolean canRead(Content content)
RestrictedModelItem
canRead
in interface RestrictedModelItem<Content>
content
- the objectpublic boolean canWrite(Content content)
RestrictedModelItem
canWrite
in interface RestrictedModelItem<Content>
content
- the object