Package org.opencms.ade.publish.shared
Class CmsPublishGroupList
java.lang.Object
org.opencms.ade.publish.shared.CmsPublishGroupList
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsPublishGroupList
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
A class which represents a list of publish groups to display to the user for selection.
It may be the case that there are too many resources to display. In this case, the instance will not contain the publish groups, but instead a publish list token which can be used later to reconstruct the publish list.
-
Constructor Summary
ConstructorDescriptionDefault constructor.Constructs a new instance with a publish list token and an empty group list.<p< * -
Method Summary
Modifier and TypeMethodDescriptionGets the list of publish groups.Gets the override workflow id.getToken()
Returns the token.Gets the message which should be displayed if the token is being used instead of the list of publish groups.void
setGroups
(List<CmsPublishGroup> groups) Sets the publish groups.void
Sets the Override workflow.void
setTooManyResourcesMessage
(String tooManyResourcesMessage) Sets the tooManyResourcesMessage.
-
Constructor Details
-
CmsPublishGroupList
public CmsPublishGroupList()Default constructor.
-
-
Method Details
-
getGroups
Gets the list of publish groups.- Returns:
- the publish groups
-
getOverrideWorkflowId
Gets the override workflow id.If this is not null, this indicates that the publish groups were fetched for a different workflow than that selected by default in the publish dialog, and that the publish dialog should change its selected workflow accordingly.
- Returns:
- the override workflow id
-
getToken
Returns the token.- Returns:
- the token
-
getTooManyResourcesMessage
Gets the message which should be displayed if the token is being used instead of the list of publish groups.- Returns:
- the message
-
setGroups
Sets the publish groups.- Parameters:
groups
- the list of publish groups
-
setOverrideWorkflowId
Sets the Override workflow.- Parameters:
id
- the id of the override workflow
-
setTooManyResourcesMessage
Sets the tooManyResourcesMessage.- Parameters:
tooManyResourcesMessage
- the tooManyResourcesMessage to set
-