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
ConstructorDescriptionCmsSinglePublishGroupHelper
(Locale locale, String title) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected CmsPublishGroup
createGroup
(String name, List<CmsPublishResource> resources) Creates a named group of resources.protected long
Gets the last modification date of a resource.getGroups
(List<CmsPublishResource> resources) Splits a list of resources into groups.protected String
Gets 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_CmsPublishGroupHelper
Splits a list of resources into groups.- Overrides:
getGroups
in classA_CmsPublishGroupHelper<CmsPublishResource,
CmsPublishGroup> - Parameters:
resources
- the list of resources- Returns:
- the list of groups
- See Also:
-
createGroup
Description copied from class:A_CmsPublishGroupHelper
Creates a named group of resources.- Specified by:
createGroup
in 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:
-