Package org.ametys.cms.tag.jcr
Class AbstractColorableJCRTag<T extends AbstractColorableCMSTagFactory>
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject<TagFactory>
org.ametys.cms.tag.jcr.JCRTag
org.ametys.cms.tag.jcr.AbstractColorableJCRTag<T>
- Type Parameters:
T
- the tag factory
- All Implemented Interfaces:
ACLAmetysObject
,AmetysObject
,JCRAmetysObject
,JCRTraversableAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TraversableAmetysObject
- Direct Known Subclasses:
CategoryJCR
,CMSJCRTag
public abstract class AbstractColorableJCRTag<T extends AbstractColorableCMSTagFactory>
extends JCRTag
JCRTag
for storing color tag informations.-
Constructor Summary
ConstructorsConstructorDescriptionAbstractColorableJCRTag
(javax.jcr.Node node, String parentPath, T factory) Creates aColorableTag
. -
Method Summary
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
-
Constructor Details
-
AbstractColorableJCRTag
Creates aColorableTag
.- Parameters:
node
- the node backing thisAmetysObject
.parentPath
- the parent path in the Ametys hierarchy.factory
- the factory which creates the AmetysObject.
-
-
Method Details
-
getColor
Retrieves the color type.- Returns:
- the color type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setColor
Set the color type.- Parameters:
color
- the color type.- Throws:
AmetysRepositoryException
- if an error occurs.
-
toJSON
Description copied from class:JCRTag
Get the json tag
-