Package lumis.content.source.field.type
Class CategorizationDataType.CategorizationGroupData
- java.lang.Object
-
- lumis.content.source.field.type.CategorizationDataType.CategorizationGroupData
-
- Enclosing class:
- CategorizationDataType
public static class CategorizationDataType.CategorizationGroupData extends Object
Categorization group, which is all categories a given content is related to of a given categorization service instance.- Since:
- 9.0.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CategorizationDataType.CategorizationGroupData.TermData
Categorization term data.
-
Constructor Summary
Constructors Constructor Description CategorizationGroupData(Collection<Content> contents, Locale locale)
Creates a new categorization group of the given (categorization) contents.CategorizationGroupData(Locale locale, Content... contents)
Creates a new categorization group of the given (categorization) contents.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
buildRestJSONMap()
Returns the Rest JSON map representation of this group.Collection<CategorizationDataType.CategorizationGroupData.TermData>
getTerms()
Returns the terms present in this term group.String
getXmlData()
Returns the XML data of this group.
-
-
-
Constructor Detail
-
CategorizationGroupData
public CategorizationGroupData(Locale locale, Content... contents) throws PortalException
Creates a new categorization group of the given (categorization) contents.- Parameters:
locale
- the locale to be used when determining the terms names.contents
- the categorization contents.- Throws:
PortalException
- Since:
- 9.0.0
-
CategorizationGroupData
public CategorizationGroupData(Collection<Content> contents, Locale locale) throws PortalException
Creates a new categorization group of the given (categorization) contents.- Parameters:
contents
- the categorization contents.locale
- the locale to be used when determining the terms names.- Throws:
PortalException
- Since:
- 9.0.0
-
-
Method Detail
-
getTerms
public Collection<CategorizationDataType.CategorizationGroupData.TermData> getTerms()
Returns the terms present in this term group.- Returns:
- the terms present in this term group.
- Since:
- 9.0.0
-
getXmlData
public String getXmlData() throws PortalException
Returns the XML data of this group.- Returns:
- the XML data of this group.
- Throws:
PortalException
- Since:
- 9.0.0
-
-