public class ContentAttributeDefinition extends AttributeDefinition<Content> implements ModelItemContainer
Modifier and Type | Field and Description |
---|---|
private ContentAttributeTypeExtensionPoint |
_contentAttributeTypeExtensionPoint |
private ContentTypeExtensionPoint |
_contentTypeExtensionPoint |
private String |
_contentTypeId |
private boolean |
_forceInvert |
private String |
_invertRelationPath |
ITEM_PATH_SEPARATOR
Constructor and Description |
---|
ContentAttributeDefinition(ContentTypeExtensionPoint contentTypeExtensionPoint,
ContentAttributeTypeExtensionPoint contentAttributeTypeExtensionPoint)
Defintion's constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getContentTypeId()
Get the attribute's content type identifier.
|
boolean |
getForceInvert()
Returns true if mutual relationship should be set regardless of user's rights
|
String |
getInvertRelationPath()
Get the attribute's mutual relationship path.
|
Collection<? extends ModelItem> |
getModelItems()
Retrieves all the model items of this container
|
private AttributeDefinition<String> |
getTitleAttributeDefinition() |
void |
setContentTypeId(String contentTypeId)
Set the attribute's content type identifier.
|
void |
setForceInvert(boolean force)
Force mutual relationship regardless of user's rights (only applicable for an attribute with invert relation path).
|
void |
setInvertRelationPath(String invertRelationPath)
Set the attribute's mutual relationship path.
|
canRead, canWrite, service, setRestrictions
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
getChild, getModelItem, hasModelItem
addItemChecker, getItemCheckers, getModel, getParent, getPath, getType, setModel, setParent, setType, toJSON
setDescription, setLabel, setName
getDescription, getLabel, getName
compareTo
private ContentAttributeTypeExtensionPoint _contentAttributeTypeExtensionPoint
private ContentTypeExtensionPoint _contentTypeExtensionPoint
private String _contentTypeId
private String _invertRelationPath
private boolean _forceInvert
public ContentAttributeDefinition(ContentTypeExtensionPoint contentTypeExtensionPoint, ContentAttributeTypeExtensionPoint contentAttributeTypeExtensionPoint)
contentTypeExtensionPoint
- the content type extension pointcontentAttributeTypeExtensionPoint
- the content attribute type extension pointpublic String getContentTypeId()
public void setContentTypeId(String contentTypeId)
contentTypeId
- the content type identifier to set.public String getInvertRelationPath()
public void setInvertRelationPath(String invertRelationPath)
invertRelationPath
- the attribute's mutual relationship path, separated by slashes.public void setForceInvert(boolean force)
force
- true to force mutual relationship regardless of user's rightspublic boolean getForceInvert()
public Collection<? extends ModelItem> getModelItems()
ModelItemContainer
getModelItems
in interface ModelItemContainer
private AttributeDefinition<String> getTitleAttributeDefinition()