T
- Type of the attribute valuepublic class AttributeDefinition<T> extends ElementDefinition<T> implements RestrictedModelItem<Content>, Serviceable
Modifier and Type | Field and Description |
---|---|
private ContentRestrictedModelItemHelper |
_restrictedModelItemHelper |
private Restrictions |
_restrictions |
ITEM_PATH_SEPARATOR
Constructor and Description |
---|
AttributeDefinition() |
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 attribute
|
getDefaultValue, getDisableConditions, getEnumerator, getPluginName, getType, getValidator, getWidget, getWidgetParameters, isMultiple, setDefaultValue, setDisableConditions, setEnumerator, setMultiple, setPluginName, setType, setValidator, setWidget, setWidgetParameters, 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
private ContentRestrictedModelItemHelper _restrictedModelItemHelper
private Restrictions _restrictions
public AttributeDefinition()
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