Package org.opencms.workflow
Class CmsWorkflowResources
java.lang.Object
org.opencms.workflow.CmsWorkflowResources
Set of workflow resources, and an optional workflow.
-
Constructor Summary
ConstructorDescriptionCmsWorkflowResources
(List<CmsResource> workflowResources, CmsWorkflow overrideWorkflow, Integer tooManyCount) Creates new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets a number that can be used as a lower bound for the number of publish resources if the list is too big (bigger than the workflow manager's resource limit).Gets the override workflow, or null.Gets the approximate amount of resources if there are too many resources.Returns the workflowResources.boolean
Returns true if there are too many resources.
-
Constructor Details
-
Method Details
-
getLowerBoundForSize
Gets a number that can be used as a lower bound for the number of publish resources if the list is too big (bigger than the workflow manager's resource limit).- Returns:
- a lower bound for the number of publish resources
-
getOverrideWorkflow
Gets the override workflow, or null.- Returns:
- the override workflow, or null
-
getTooManyCount
Gets the approximate amount of resources if there are too many resources.- Returns:
- the approximate amount of resources if there are too many
-
getWorkflowResources
Returns the workflowResources.Note that if the isTooMany() method returns true, this method may return an empty list.
- Returns:
- the workflowResources
-
isTooMany
Returns true if there are too many resources.- Returns:
- true if there are too many resources
-