Class CategoryJCR
- 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.plugins.workspaces.categories.CategoryJCR
-
- All Implemented Interfaces:
ACLAmetysObject
,AmetysObject
,JCRAmetysObject
,JCRTraversableAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TraversableAmetysObject
public class CategoryJCR extends JCRTag
JCRTag
for storing tag informations.
-
-
Field Summary
Fields Modifier and Type Field Description private static String
__METADATA_COLOR
Constants for color metadata.
-
Constructor Summary
Constructors Constructor Description CategoryJCR(Node node, String parentPath, CategoryFactory factory)
Creates aCategory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColor()
Retrieves the color type.void
setColor(String color)
Set the color 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_COLOR
private static final String __METADATA_COLOR
Constants for color metadata.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CategoryJCR
public CategoryJCR(Node node, String parentPath, CategoryFactory factory)
Creates aCategory
.- Parameters:
node
- the node backing thisAmetysObject
.parentPath
- the parent path in the Ametys hierarchy.factory
- theCategoryFactory
which creates the AmetysObject.
-
-
Method Detail
-
getColor
public String getColor() throws AmetysRepositoryException
Retrieves the color type.- Returns:
- the color type.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setColor
public void setColor(String color) throws AmetysRepositoryException
Set the color type.- Parameters:
color
- the color type.- Throws:
AmetysRepositoryException
- if an error occurs.
-
-