public interface TaxonomyService
| Modifier and Type | Method and Description | 
|---|---|
void | 
addCategories(javax.jcr.Node node,
             String taxonomyName,
             String[] categoryPaths)
Adds categories to a given node. 
 | 
void | 
addCategories(javax.jcr.Node node,
             String taxonomyName,
             String[] categoryPaths,
             boolean system)
Adds categories to a given node. 
 | 
void | 
addCategory(javax.jcr.Node node,
           String taxonomyName,
           String categoryPath)
Adds a new category to a given node. 
 | 
void | 
addCategory(javax.jcr.Node node,
           String taxonomyName,
           String categoryPath,
           boolean system)
Adds a new category to a given node. 
 | 
void | 
addTaxonomyNode(String workspace,
               String parentPath,
               String taxoNodeName,
               String creator)
Adds a new taxonomy node at the given location. 
 | 
void | 
addTaxonomyPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds a new taxonomy plugin to the Taxonomy Service. 
 | 
void | 
addTaxonomyTree(javax.jcr.Node taxonomyTree)
Creates a new taxonomy tree. 
 | 
List<javax.jcr.Node> | 
getAllCategories(javax.jcr.Node node)
Gets all categories that contain a given node under all taxonomy trees. 
 | 
List<javax.jcr.Node> | 
getAllCategories(javax.jcr.Node node,
                boolean system)
Gets all categories that contain a given node under all taxonomy trees. 
 | 
List<javax.jcr.Node> | 
getAllTaxonomyTrees()
Gets all taxonomy trees using the user session. 
 | 
List<javax.jcr.Node> | 
getAllTaxonomyTrees(boolean system)
Gets all taxonomy trees. 
 | 
List<javax.jcr.Node> | 
getCategories(javax.jcr.Node node,
             String taxonomyName)
Gets all categories that contain a given node under a taxonomy tree. 
 | 
List<javax.jcr.Node> | 
getCategories(javax.jcr.Node node,
             String taxonomyName,
             boolean system)
Gets all categories that contain a given node under a taxonomy tree. 
 | 
String | 
getCategoryNameLength()
Gets the limited length of a category name. 
 | 
javax.jcr.Node | 
getTaxonomyTree(String taxonomyName)
Gets a taxonomy tree using the user session. 
 | 
javax.jcr.Node | 
getTaxonomyTree(String taxonomyName,
               boolean system)
Gets a taxonomy tree. 
 | 
Map<String,String[]> | 
getTaxonomyTreeDefaultUserPermission()
Gets default permissions of a taxonomy tree. 
 | 
boolean | 
hasCategories(javax.jcr.Node node,
             String taxonomyName)
Checks if a category node exists in a given taxonomy by using the user session. 
 | 
boolean | 
hasCategories(javax.jcr.Node node,
             String taxonomyName,
             boolean system)
Checks if a category node exists in a given taxonomy. 
 | 
boolean | 
hasTaxonomyTree(String taxonomyName)
Checks if a taxonomy tree with the given name has already been defined. 
 | 
void | 
init()
Initializes all taxonomy plugins that have been set in the configuration files. 
 | 
void | 
moveTaxonomyNode(String workspace,
                String srcPath,
                String destPath,
                String type)
Copies or cuts the taxonomy node from source path to destination path. 
 | 
void | 
removeCategory(javax.jcr.Node node,
              String taxonomyName,
              String categoryPath)
Removes a category from a given node. 
 | 
void | 
removeCategory(javax.jcr.Node node,
              String taxonomyName,
              String categoryPath,
              boolean system)
Removes a category from a given node. 
 | 
void | 
removeTaxonomyNode(String workspace,
                  String absPath)
Removes a taxonomy node located at the given absolute path. 
 | 
void | 
removeTaxonomyTree(String taxonomyName)
Removes a taxonomy tree. 
 | 
void | 
updateTaxonomyTree(String taxonomyName,
                  javax.jcr.Node taxonomyTree)
Updates a taxonomy tree. 
 | 
javax.jcr.Node getTaxonomyTree(String taxonomyName, boolean system) throws javax.jcr.RepositoryException
taxonomyName - Name of the taxonomy tree.system - If "true", the system session is used.
 If "false", the user session is used.javax.jcr.RepositoryException - if the taxonomy tree could not be found.javax.jcr.Node getTaxonomyTree(String taxonomyName) throws javax.jcr.RepositoryException
taxonomyName - Name of the taxonomy tree.javax.jcr.RepositoryException - if the taxonomy tree could not be found.List<javax.jcr.Node> getAllTaxonomyTrees(boolean system) throws javax.jcr.RepositoryException
system - If "true", the system session is used.
 If "false", the user session is used.javax.jcr.RepositoryException - if the taxonomy trees could not be found.List<javax.jcr.Node> getAllTaxonomyTrees() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if the taxonomies could not be found.boolean hasTaxonomyTree(String taxonomyName) throws javax.jcr.RepositoryException
taxonomyName - Name of the taxonomy tree to be checked.javax.jcr.RepositoryException - if the taxonomy name could not be checked.void addTaxonomyTree(javax.jcr.Node taxonomyTree)
                     throws javax.jcr.RepositoryException,
                            org.exoplatform.services.cms.taxonomy.impl.TaxonomyAlreadyExistsException
taxonomyTree - The taxonomy tree to be created.org.exoplatform.services.cms.taxonomy.impl.TaxonomyAlreadyExistsException - if a taxonomy with the same name has
           already been defined.javax.jcr.RepositoryException - if the taxonomy tree could not be defined.void updateTaxonomyTree(String taxonomyName, javax.jcr.Node taxonomyTree) throws javax.jcr.RepositoryException
taxonomyName - Name of the taxonomy.taxonomyTree - The taxonomy tree to be updated.javax.jcr.RepositoryException - if the taxonomy tree could not be updated.void removeTaxonomyTree(String taxonomyName) throws javax.jcr.RepositoryException
taxonomyName - Name of the taxonomy to be removed.javax.jcr.RepositoryException - if the taxonomy tree could not be removed.void addTaxonomyNode(String workspace, String parentPath, String taxoNodeName, String creator) throws javax.jcr.RepositoryException, org.exoplatform.services.cms.taxonomy.impl.TaxonomyNodeAlreadyExistsException
workspace - Name of the workspace to which the taxonomy node is added.parentPath - The place where the taxonomy node will be added.taxoNodeName - Name of the taxonomy node.creator - The user who created the taxonomy node.org.exoplatform.services.cms.taxonomy.impl.TaxonomyNodeAlreadyExistsException - if a taxonomy node with the same
           name has already been added.javax.jcr.RepositoryException - if the taxonomy node could not be added.void removeTaxonomyNode(String workspace, String absPath) throws javax.jcr.RepositoryException
workspace - Name of the workspace from which the taxonomy node is removed.absPath - The given absolute path.javax.jcr.RepositoryException - if the taxonomy node could not be removed.void moveTaxonomyNode(String workspace, String srcPath, String destPath, String type) throws javax.jcr.RepositoryException
workspace - Name of the workspace which contains the taxonomy node.srcPath - Source path of the taxonomy node.destPath - Destination path of the taxonomy node.type - Type of moving: copy or cut.javax.jcr.RepositoryException - if the taxonomy node could not be moved.boolean hasCategories(javax.jcr.Node node,
                    String taxonomyName)
                      throws javax.jcr.RepositoryException
node - The category node to be checked.taxonomyName - Name of the given taxonomy.javax.jcr.RepositoryException - if the category cannot be checked.boolean hasCategories(javax.jcr.Node node,
                    String taxonomyName,
                    boolean system)
                      throws javax.jcr.RepositoryException
node - The category node to be checked.taxonomyName - Name of the given taxonomy.system - If "true", the system session is used. If "false", the user session is used.javax.jcr.RepositoryException - if the category cannot be checked.List<javax.jcr.Node> getCategories(javax.jcr.Node node, String taxonomyName) throws javax.jcr.RepositoryException
node - The given node.taxonomyName - The taxonomy tree where categories are got.javax.jcr.RepositoryException - if the categories cannot be retrieved.List<javax.jcr.Node> getCategories(javax.jcr.Node node, String taxonomyName, boolean system) throws javax.jcr.RepositoryException
node - The given node.taxonomyName - The taxonomy tree where categories are got.system - If "true", the system session is used. If "false", the user session is used.javax.jcr.RepositoryException - if the categories cannot be retrieved.List<javax.jcr.Node> getAllCategories(javax.jcr.Node node) throws javax.jcr.RepositoryException
node - The given node.javax.jcr.RepositoryExceptionList<javax.jcr.Node> getAllCategories(javax.jcr.Node node, boolean system) throws javax.jcr.RepositoryException
node - The given node.system - If "true", the system session is used. If "false", the user session is used.javax.jcr.RepositoryExceptionvoid removeCategory(javax.jcr.Node node,
                  String taxonomyName,
                  String categoryPath)
                    throws javax.jcr.RepositoryException
node - The given node.taxonomyName - The taxonomy tree that contains the removed category.categoryPath - Path of the removed category.javax.jcr.RepositoryException - if the category cannot be removed.void removeCategory(javax.jcr.Node node,
                  String taxonomyName,
                  String categoryPath,
                  boolean system)
                    throws javax.jcr.RepositoryException
node - The given node.taxonomyName - The taxonomy tree that contains the removed category.categoryPath - Path of the removed category.system - If "true", the system session is used. If "false", the user session is used.javax.jcr.RepositoryException - if the category cannot be removed.void addCategories(javax.jcr.Node node,
                 String taxonomyName,
                 String[] categoryPaths)
                   throws javax.jcr.RepositoryException
node - The given node.taxonomyName - The taxonomy tree that contains the added category.categoryPaths - Paths of the added categories.javax.jcr.RepositoryException - if the categories cannot be added.void addCategories(javax.jcr.Node node,
                 String taxonomyName,
                 String[] categoryPaths,
                 boolean system)
                   throws javax.jcr.RepositoryException
node - The given node.taxonomyName - The taxonomy tree that contains the added category.categoryPaths - Paths of the added categories.system - If "true", the system session is used. If "false", the user session is used.javax.jcr.RepositoryException - if the categories cannot be added.void addCategory(javax.jcr.Node node,
               String taxonomyName,
               String categoryPath)
                 throws javax.jcr.RepositoryException
node - The given node.taxonomyName - The taxonomy tree that contains the added category.categoryPath - Path of the added category.javax.jcr.RepositoryException - if the category cannot be added.void addCategory(javax.jcr.Node node,
               String taxonomyName,
               String categoryPath,
               boolean system)
                 throws javax.jcr.RepositoryException
node - The given node.taxonomyName - The taxonomy tree that contains the added category.categoryPath - Path of the added category.system - If "true", the system session is used. If "false", the user session is used.javax.jcr.RepositoryException - if the category cannot be added.Map<String,String[]> getTaxonomyTreeDefaultUserPermission()
String getCategoryNameLength()
void addTaxonomyPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
plugin - The plugin to be added.Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.