public class CmsWorkflowResources extends java.lang.Object
| Constructor and Description |
|---|
CmsWorkflowResources(java.util.List<CmsResource> workflowResources,
CmsWorkflow overrideWorkflow,
java.lang.Integer tooManyCount)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
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).
|
CmsWorkflow |
getOverrideWorkflow()
Gets the override workflow, or null.
|
java.lang.Integer |
getTooManyCount()
Gets the approximate amount of resources if there are too many resources.
|
java.util.List<CmsResource> |
getWorkflowResources()
Returns the workflowResources.
|
boolean |
isTooMany()
Returns true if there are too many resources.
|
public CmsWorkflowResources(java.util.List<CmsResource> workflowResources, CmsWorkflow overrideWorkflow, java.lang.Integer tooManyCount)
workflowResources - the workflow resourcesoverrideWorkflow - the workflow to override the selected workflowtooManyCount - null if there are not too many resources, otherwise the approximate resource countpublic int getLowerBoundForSize()
public CmsWorkflow getOverrideWorkflow()
public java.lang.Integer getTooManyCount()
public java.util.List<CmsResource> getWorkflowResources()
Note that if the isTooMany() method returns true, this method may return an empty list.
public boolean isTooMany()