public class CategorizationUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CategorizationUtil.CyclicTermsException
Exception thrown when the path of a term cannot be determined because
its ancestral are in a cyclic graph.
|
Constructor and Description |
---|
CategorizationUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getBestTermName(String termContentId)
Returns the best name of the specified term to be shown to current user.
|
static List<String> |
getTermPathContentIds(String termContentId)
Returns the content identifiers that make up the path to the specified term.
|
static List<String> |
getTermPathNames(String termContentId)
Returns the names of terms make up the path to the specified term.
|
public static List<String> getTermPathContentIds(String termContentId) throws PortalException, CategorizationUtil.CyclicTermsException
termContentId
- the term's content identifier.PortalObjectNotFoundException
- if the specified content could not be found.CategorizationUtil.CyclicTermsException
- if the path cannot be determined because the
term's parent are in a cyclic graph.PortalException
public static List<String> getTermPathNames(String termContentId) throws PortalException, CategorizationUtil.CyclicTermsException
termContentId
- the term's content identifier.PortalObjectNotFoundException
- if the specified content could not be found.CategorizationUtil.CyclicTermsException
- if the path cannot be determined because the
term's parent are in a cyclic graph.PortalException
public static String getBestTermName(String termContentId) throws PortalException
termContentId
- the term's content identifier.PortalObjectNotFoundException
- if the specified content could not be found.PortalException
Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.