Package org.ametys.cms.tag.jcr
Class CMSJCRTag
- All Implemented Interfaces:
ACLAmetysObject
,AmetysObject
,JCRAmetysObject
,JCRTraversableAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TraversableAmetysObject
JCRTag
for storing tag informations.-
Constructor Summary
ConstructorDescriptionCMSJCRTag
(Node node, String parentPath, CMSTagFactory factory) Creates aCMSTag
. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the target type.Retrieves the visibility type.void
setTargetType
(TagTargetType target) Set the target type.void
setVisibility
(CMSTag.TagVisibility visibility) Set the visibility type.toJSON()
Get the json tagMethods 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
-
Constructor Details
-
CMSJCRTag
Creates aCMSTag
.- Parameters:
node
- the node backing thisAmetysObject
.parentPath
- the parent path in the Ametys hierarchy.factory
- theTagFactory
which creates the AmetysObject.
-
-
Method Details
-
getVisibility
Retrieves the visibility type.- Returns:
- the visibility type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setVisibility
Set the visibility type.- Parameters:
visibility
- the visibility type.- Throws:
AmetysRepositoryException
- if an error occurs.
-
getTargetType
Retrieves the target type.- Returns:
- the target type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setTargetType
Set the target type.- Parameters:
target
- the target type.- Throws:
AmetysRepositoryException
- if an error occurs.
-
toJSON
Description copied from class:JCRTag
Get the json tag
-