|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.service.categorization.CategorizationUtil
public class CategorizationUtil
Contains utility methods related to content categorization features.
Nested Class Summary | |
---|---|
static class |
CategorizationUtil.CyclicTermsException
Exception thrown when the path of a term cannot be determined because its ancestral are in a cyclic graph. |
Constructor Summary | |
---|---|
CategorizationUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CategorizationUtil()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |