public class JCRTag extends DefaultTraversableAmetysObject<TagFactory>
AmetysObject
for storing tag informations.Modifier and Type | Field and Description |
---|---|
private static String |
__METADATA_DESC
Constants for description metadata.
|
private static String |
__METADATA_TARGET
Constants for type metadata.
|
private static String |
__METADATA_TITLE
Constants for title metadata.
|
private static String |
__METADATA_VISIBILITY
Constants for visibility metadata.
|
Constructor and Description |
---|
JCRTag(Node node,
String parentPath,
TagFactory factory)
Creates a
Tag . |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Retrieves the description.
|
String |
getTargetType()
Retrieves the target type.
|
String |
getTitle()
Retrieves the title.
|
Tag.TagVisibility |
getVisibility()
Retrieves the visibility type.
|
void |
setDescription(String description)
Set the description.
|
void |
setTargetType(TagTargetType target)
Set the target type.
|
void |
setTitle(String title)
Set the title.
|
void |
setVisibility(Tag.TagVisibility visibility)
Set the visibility type.
|
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_TITLE
private static final String __METADATA_DESC
private static final String __METADATA_VISIBILITY
private static final String __METADATA_TARGET
public JCRTag(Node node, String parentPath, TagFactory factory)
Tag
.node
- the node backing this AmetysObject
.parentPath
- the parent path in the Ametys hierarchy.factory
- the TagFactory
which creates the AmetysObject.public String getTitle() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setTitle(String title) throws AmetysRepositoryException
title
- the title.AmetysRepositoryException
- if an error occurs.public String getDescription() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setDescription(String description) throws AmetysRepositoryException
description
- the description.AmetysRepositoryException
- if an error occurs.public Tag.TagVisibility getVisibility() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setVisibility(Tag.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.