Class KmeliaPublicationSort
- java.lang.Object
-
- org.silverpeas.components.kmelia.model.KmeliaPublicationSort
-
- All Implemented Interfaces:
Serializable
public class KmeliaPublicationSort extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceKmeliaPublicationSort.SortConsumer<T>
-
Field Summary
Fields Modifier and Type Field Description static intSORT_CREATION_ASCstatic intSORT_CREATION_DESCstatic intSORT_CREATOR_ASCstatic intSORT_DESCRIPTION_ASCstatic intSORT_IMPORTANCE_ASCstatic intSORT_MANUALstatic intSORT_TITLE_ASCstatic intSORT_UPDATE_ASCstatic intSORT_UPDATE_DESC
-
Constructor Summary
Constructors Constructor Description KmeliaPublicationSort(int initialSort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentSort()booleanisExplicitSort()booleanisManualSortEnable()voidsetCurrentSort(int currentSort)voidsetExplicitSort(boolean explicitSort)voidsetManualSortEnable(boolean manualSortEnable)KmeliaPublicationSort.SortConsumer<List<KmeliaPublication>>withContentLanguage(String language)Gets the publication consumer according to given content language.
-
-
-
Field Detail
-
SORT_CREATOR_ASC
public static final int SORT_CREATOR_ASC
- See Also:
- Constant Field Values
-
SORT_UPDATE_ASC
public static final int SORT_UPDATE_ASC
- See Also:
- Constant Field Values
-
SORT_UPDATE_DESC
public static final int SORT_UPDATE_DESC
- See Also:
- Constant Field Values
-
SORT_IMPORTANCE_ASC
public static final int SORT_IMPORTANCE_ASC
- See Also:
- Constant Field Values
-
SORT_TITLE_ASC
public static final int SORT_TITLE_ASC
- See Also:
- Constant Field Values
-
SORT_CREATION_ASC
public static final int SORT_CREATION_ASC
- See Also:
- Constant Field Values
-
SORT_CREATION_DESC
public static final int SORT_CREATION_DESC
- See Also:
- Constant Field Values
-
SORT_DESCRIPTION_ASC
public static final int SORT_DESCRIPTION_ASC
- See Also:
- Constant Field Values
-
SORT_MANUAL
public static final int SORT_MANUAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCurrentSort
public int getCurrentSort()
-
setCurrentSort
public void setCurrentSort(int currentSort)
-
isExplicitSort
public boolean isExplicitSort()
-
setExplicitSort
public void setExplicitSort(boolean explicitSort)
-
isManualSortEnable
public boolean isManualSortEnable()
-
setManualSortEnable
public void setManualSortEnable(boolean manualSortEnable)
-
withContentLanguage
public KmeliaPublicationSort.SortConsumer<List<KmeliaPublication>> withContentLanguage(String language)
Gets the publication consumer according to given content language.- Parameters:
language- a content language (and not the user favorite one).- Returns:
- SortConsumer lambda to apply on
KmeliaPublicationlist.
-
-