Package org.opencms.ade.publish
Class CmsCollectorPublishListHelper
java.lang.Object
org.opencms.ade.publish.CmsCollectorPublishListHelper
Helper class used to determine which resources from a collector list should be included in a publish list.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCmsCollectorPublishListHelper
(CmsObject cms, I_CmsContentLoadCollectorInfo collectorInfo, int collectorLimit) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected List<CmsResource>
computeCollectorResults
(boolean online) Computes the collector results.getCmsObject
(boolean online) Initializes a CmsObject.Gets the collector to use.Gets the list to add to the publish list for the collector list.
-
Field Details
-
OFFLINE
Boolean constant.- See Also:
-
ONLINE
Boolean constant.- See Also:
-
-
Constructor Details
-
Method Details
-
getCmsObject
Initializes a CmsObject.- Parameters:
online
- true if a CmsObject for the Online project should be returned- Returns:
- the initialized CmsObject
- Throws:
CmsException
- if something goes wrong
-
getCollector
Gets the collector to use.- Returns:
- the collector to use
-
getPublishListFiles
Gets the list to add to the publish list for the collector list.- Returns:
- the resources to add to the publish list
- Throws:
CmsException
- if something goes wrong
-
computeCollectorResults
Computes the collector results.- Parameters:
online
- true if the collector results for the Online project should be returned- Returns:
- the collector results
- Throws:
CmsException
- if something goes wrong
-