Package org.ametys.cms.tag.jcr
Class CMSJCRTag
-
- All Implemented Interfaces:
ACLAmetysObject
,AmetysObject
,JCRAmetysObject
,JCRTraversableAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TraversableAmetysObject
public class CMSJCRTag extends JCRTag
JCRTag
for storing tag informations.
-
-
Field Summary
Fields Modifier and Type Field Description private static String
__METADATA_TARGET
Constants for type metadata.private static String
__METADATA_VISIBILITY
Constants for visibility metadata.
-
Constructor Summary
Constructors Constructor Description CMSJCRTag(Node node, String parentPath, CMSTagFactory factory)
Creates aCMSTag
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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-
Methods inherited from class org.ametys.cms.tag.jcr.JCRTag
getDescription, getTitle, setDescription, setTitle
-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, disallowInheritance, getChild, getChildren, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, hasChild, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
-
Methods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNode
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolder
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChildAt, getChildPosition
-
-
-
-
Field Detail
-
__METADATA_VISIBILITY
private static final String __METADATA_VISIBILITY
Constants for visibility metadata.- See Also:
- Constant Field Values
-
__METADATA_TARGET
private static final String __METADATA_TARGET
Constants for type metadata.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CMSJCRTag
public CMSJCRTag(Node node, String parentPath, CMSTagFactory factory)
Creates aCMSTag
.- Parameters:
node
- the node backing thisAmetysObject
.parentPath
- the parent path in the Ametys hierarchy.factory
- theTagFactory
which creates the AmetysObject.
-
-
Method Detail
-
getVisibility
public CMSTag.TagVisibility getVisibility() throws AmetysRepositoryException
Retrieves the visibility type.- Returns:
- the visibility type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setVisibility
public void setVisibility(CMSTag.TagVisibility visibility) throws AmetysRepositoryException
Set the visibility type.- Parameters:
visibility
- the visibility type.- Throws:
AmetysRepositoryException
- if an error occurs.
-
getTargetType
public String getTargetType() throws AmetysRepositoryException
Retrieves the target type.- Returns:
- the target type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setTargetType
public void setTargetType(TagTargetType target) throws AmetysRepositoryException
Set the target type.- Parameters:
target
- the target type.- Throws:
AmetysRepositoryException
- if an error occurs.
-
-