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
Class representing a thesaurus, backed by a JCR node.
-
Constructor Summary
ConstructorDescriptionThesaurus
(javax.jcr.Node node, String parentPath, ThesaurusFactory factory) Creates anThesaurus
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMicrothesaurus
(String microthesaurus) Add a microthesaurus to this thesaurusgetLabel()
Get the label of the microthesaurus.Get the microthesaurii array of the thesaurus.void
removeMicrothesaurus
(String microthesaurus) Remove a microthesaurus from this thesaurusvoid
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, 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
-
Thesaurus
Creates anThesaurus
.- Parameters:
node
- the node backing thisAmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the ThesaurusFactory which created the AmetysObject
-
-
Method Details
-
setLabel
Set the label of this microthesaurus.- Parameters:
label
- the label
-
getLabel
Get the label of the microthesaurus.- Returns:
- The label
-
addMicrothesaurus
Add a microthesaurus to this thesaurus- Parameters:
microthesaurus
- the microthesaurus to add
-
removeMicrothesaurus
Remove a microthesaurus from this thesaurus- Parameters:
microthesaurus
- the microthesaurus to add
-
setMicrothesaurus
Set the microthesaurii of this thesaurus.- Parameters:
microthesaurii
- the id of microthesaurii to add
-
getMicrothesaurii
Get the microthesaurii array of the thesaurus.- Returns:
- The array of microthesaurus
-