Package org.ametys.plugins.ugc.page
Class ClassificationType.TypeContent
- java.lang.Object
-
- org.ametys.plugins.ugc.page.ClassificationType.TypeContent
-
- All Implemented Interfaces:
ClassificationType
- Enclosing interface:
- ClassificationType
public static class ClassificationType.TypeContent extends Object implements ClassificationType
UGC pages are classified by a linked Content on their UG Content (for instance entries of a reference table)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.plugins.ugc.page.ClassificationType
ClassificationType.None, ClassificationType.TypeContent, ClassificationType.TypeEnum
-
-
Field Summary
Fields Modifier and Type Field Description private String
_attributeContentType
private Page
_rootPage
private UGCPageHandler
_ugcPageHandler
-
Constructor Summary
Constructors Constructor Description TypeContent(UGCPageHandler ugcPageHandler, Page rootPage, String attributeContentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AmetysObjectIterable<Content>
_getAllContents(Page rootPage, String contentTypeId)
Get all content with the content type idCollection<TransitionalPageInformation>
allTransitionalPages()
Gets all transitional page informationTransitionalPageInformation
getTransitionalPage(Content ugcContent)
Gets the transitional page information for the given UG Content
-
-
-
Field Detail
-
_ugcPageHandler
private UGCPageHandler _ugcPageHandler
-
_attributeContentType
private String _attributeContentType
-
-
Constructor Detail
-
TypeContent
TypeContent(UGCPageHandler ugcPageHandler, Page rootPage, String attributeContentType)
-
-
Method Detail
-
getTransitionalPage
public TransitionalPageInformation getTransitionalPage(Content ugcContent)
Description copied from interface:ClassificationType
Gets the transitional page information for the given UG Content- Specified by:
getTransitionalPage
in interfaceClassificationType
- Parameters:
ugcContent
- The UG Content- Returns:
- the transitional page information
-
allTransitionalPages
public Collection<TransitionalPageInformation> allTransitionalPages()
Description copied from interface:ClassificationType
Gets all transitional page information- Specified by:
allTransitionalPages
in interfaceClassificationType
- Returns:
- all the transitional page information
-
_getAllContents
protected AmetysObjectIterable<Content> _getAllContents(Page rootPage, String contentTypeId)
Get all content with the content type id- Parameters:
rootPage
- the root pagecontentTypeId
- the content type id- Returns:
- the list of contents
-
-