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
ConstructorsConstructorDescriptionThesaurus(javax.jcr.Node node, String parentPath, ThesaurusFactory factory) Creates anThesaurus. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMicrothesaurus(String microthesaurus) Add a microthesaurus to this thesaurusgetLabel()Get the label of the microthesaurus.Get the microthesaurii array of the thesaurus.voidremoveMicrothesaurus(String microthesaurus) Remove a microthesaurus from this thesaurusvoidSet the label of this microthesaurus.voidsetMicrothesaurus(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, removeDeniedUsersMethods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChangesMethods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNodeMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolderMethods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
removeMethods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChildAt, getChildPosition
-
Constructor Details
-
Thesaurus
Creates anThesaurus.- Parameters:
node- the node backing thisAmetysObjectparentPath- 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
-