Package org.opencms.ade.publish
Class CmsSinglePublishGroupHelper
java.lang.Object
org.opencms.ade.publish.A_CmsPublishGroupHelper<CmsPublishResource,CmsPublishGroup>
org.opencms.ade.publish.CmsSinglePublishGroupHelper
public class CmsSinglePublishGroupHelper
extends A_CmsPublishGroupHelper<CmsPublishResource,CmsPublishGroup>
Publish group helper which only puts all publish resources into a single group.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.ade.publish.A_CmsPublishGroupHelper
A_CmsPublishGroupHelper.GroupAge, A_CmsPublishGroupHelper.SortingComparator -
Field Summary
Fields inherited from class org.opencms.ade.publish.A_CmsPublishGroupHelper
GROUP_SESSIONS_GAP -
Constructor Summary
ConstructorsConstructorDescriptionCmsSinglePublishGroupHelper(Locale locale, String title) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected CmsPublishGroupcreateGroup(String name, List<CmsPublishResource> resources) Creates a named group of resources.protected longGets the last modification date of a resource.getGroups(List<CmsPublishResource> resources) Splits a list of resources into groups.protected StringGets the root path of a resource.Methods inherited from class org.opencms.ade.publish.A_CmsPublishGroupHelper
computeDays, computeDaysForResources, getDayDifference, getModificationDates, getPublishGroupName, getStartOfDay, partitionMediumResources, partitionPublishResourcesByAge, partitionYoungResources
-
Constructor Details
-
CmsSinglePublishGroupHelper
Creates a new instance.- Parameters:
locale- the locale to usetitle- the title to use for the single group
-
-
Method Details
-
getGroups
Description copied from class:A_CmsPublishGroupHelperSplits a list of resources into groups.- Overrides:
getGroupsin classA_CmsPublishGroupHelper<CmsPublishResource,CmsPublishGroup> - Parameters:
resources- the list of resources- Returns:
- the list of groups
- See Also:
-
createGroup
Description copied from class:A_CmsPublishGroupHelperCreates a named group of resources.- Specified by:
createGroupin classA_CmsPublishGroupHelper<CmsPublishResource,CmsPublishGroup> - Parameters:
name- the name of the groupresources- the resources which should be put in the group- Returns:
- the named group
- See Also:
-