public class ContentRestrictedCompositeDefinition extends CompositeDefinition implements RestrictedModelItem<Content>, Serviceable
Modifier and Type | Field and Description |
---|---|
private ContentRestrictedModelItemHelper |
_restrictedModelItemHelper |
private Restrictions |
_restrictions |
ITEM_PATH_SEPARATOR
Constructor and Description |
---|
ContentRestrictedCompositeDefinition() |
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 composite
|
addChild, addChild, getChildren, getChildren, getModelItems, getSwitcher, getType, setType, toJSON, 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 ContentRestrictedCompositeDefinition()
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