Package org.ametys.plugins.thesaurus
Class Thesaurus
- java.lang.Object
-
- org.ametys.plugins.repository.AbstractAmetysObject
-
- org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
-
- org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject<ThesaurusFactory>
-
- org.ametys.plugins.thesaurus.Thesaurus
-
- All Implemented Interfaces:
ACLAmetysObject
,AmetysObject
,JCRAmetysObject
,JCRTraversableAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TraversableAmetysObject
public class Thesaurus extends DefaultTraversableAmetysObject<ThesaurusFactory>
Class representing a thesaurus, backed by a JCR node.
-
-
Field Summary
Fields Modifier and Type Field Description private static String
__PROPERTY_LABEL
private static String
__PROPERTY_MICROTHESAURUS
-
Constructor Summary
Constructors Constructor Description Thesaurus(Node node, String parentPath, ThesaurusFactory factory)
Creates anThesaurus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMicrothesaurus(String microthesaurus)
Add a microthesaurus to this thesaurusString
getLabel()
Get the label of the microthesaurus.List<String>
getMicrothesaurii()
Get the microthesaurii array of the thesaurus.void
removeMicrothesaurus(String microthesaurus)
Remove a microthesaurus from this thesaurusvoid
setLabel(String label)
Set the label of this microthesaurus.void
setMicrothesaurus(List<String> microthesaurii)
Set the microthesaurii of this thesaurus.-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, disallowInheritance, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getChild, getChildren, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, 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
-
__PROPERTY_LABEL
private static final String __PROPERTY_LABEL
- See Also:
- Constant Field Values
-
__PROPERTY_MICROTHESAURUS
private static final String __PROPERTY_MICROTHESAURUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Thesaurus
public Thesaurus(Node node, String parentPath, ThesaurusFactory factory)
Creates anThesaurus
.- Parameters:
node
- the node backing thisAmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the ThesaurusFactory which created the AmetysObject
-
-
Method Detail
-
setLabel
public void setLabel(String label)
Set the label of this microthesaurus.- Parameters:
label
- the label
-
addMicrothesaurus
public void addMicrothesaurus(String microthesaurus)
Add a microthesaurus to this thesaurus- Parameters:
microthesaurus
- the microthesaurus to add
-
removeMicrothesaurus
public void removeMicrothesaurus(String microthesaurus)
Remove a microthesaurus from this thesaurus- Parameters:
microthesaurus
- the microthesaurus to add
-
setMicrothesaurus
public void setMicrothesaurus(List<String> microthesaurii)
Set the microthesaurii of this thesaurus.- Parameters:
microthesaurii
- the id of microthesaurii to add
-
getMicrothesaurii
public List<String> getMicrothesaurii()
Get the microthesaurii array of the thesaurus.- Returns:
- The array of microthesaurus
-
-