public class CMSJCRTag extends JCRTag
JCRTag
for storing tag informations.Modifier and Type | Field and Description |
---|---|
private static String |
__METADATA_TARGET
Constants for type metadata.
|
private static String |
__METADATA_VISIBILITY
Constants for visibility metadata.
|
Constructor and Description |
---|
CMSJCRTag(Node node,
String parentPath,
CMSTagFactory factory)
Creates a
CMSTag . |
Modifier and Type | Method and Description |
---|---|
String |
getTargetType()
Retrieves the target type.
|
CMSTag.TagVisibility |
getVisibility()
Retrieves the visibility type.
|
void |
setTargetType(TagTargetType target)
Set the target type.
|
void |
setVisibility(CMSTag.TagVisibility visibility)
Set the visibility type.
|
Map<String,Object> |
toJSON()
Get the json tag
|
getDescription, getTitle, setDescription, setTitle
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getChild, getChildren, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasChild, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNode
getMetadataHolder
needsSave, rename, revertChanges, saveChanges
equals, getId, getName, getParent, getParentPath, getPath, hashCode
remove
getChildAt, getChildPosition
private static final String __METADATA_VISIBILITY
private static final String __METADATA_TARGET
public CMSJCRTag(Node node, String parentPath, CMSTagFactory factory)
CMSTag
.node
- the node backing this AmetysObject
.parentPath
- the parent path in the Ametys hierarchy.factory
- the TagFactory
which creates the AmetysObject.public CMSTag.TagVisibility getVisibility() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setVisibility(CMSTag.TagVisibility visibility) throws AmetysRepositoryException
visibility
- the visibility type.AmetysRepositoryException
- if an error occurs.public String getTargetType() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setTargetType(TagTargetType target) throws AmetysRepositoryException
target
- the target type.AmetysRepositoryException
- if an error occurs.