Class 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 Details

    • Thesaurus

      public Thesaurus(javax.jcr.Node node, String parentPath, ThesaurusFactory factory)
      Creates an Thesaurus.
      Parameters:
      node - the node backing this AmetysObject
      parentPath - the parentPath in the Ametys hierarchy
      factory - the ThesaurusFactory which created the AmetysObject
  • Method Details

    • setLabel

      public void setLabel(String label)
      Set the label of this microthesaurus.
      Parameters:
      label - the label
    • getLabel

      public String getLabel()
      Get the label of the microthesaurus.
      Returns:
      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

      Get the microthesaurii array of the thesaurus.
      Returns:
      The array of microthesaurus