Package org.opencms.ade.publish
Class CmsDefaultPublishGroupHelper
java.lang.Object
org.opencms.ade.publish.A_CmsPublishGroupHelper<CmsPublishResource,CmsPublishGroup>
org.opencms.ade.publish.CmsDefaultPublishGroupHelper
public class CmsDefaultPublishGroupHelper
extends A_CmsPublishGroupHelper<CmsPublishResource,CmsPublishGroup>
Default implementation of the publish group helper which operates on
CmsPublishResource
objects.-
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
ConstructorDescriptionCmsDefaultPublishGroupHelper
(Locale locale) Creates a new publish group helper. -
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.protected String
Gets the root path of a resource.Methods inherited from class org.opencms.ade.publish.A_CmsPublishGroupHelper
computeDays, computeDaysForResources, getDayDifference, getGroups, getModificationDates, getPublishGroupName, getStartOfDay, partitionMediumResources, partitionPublishResourcesByAge, partitionYoungResources
-
Constructor Details
-
CmsDefaultPublishGroupHelper
Creates a new publish group helper.- Parameters:
locale
- the locale to use
-
-
Method Details
-
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:
-