Package org.opencms.ade.publish.shared
Class CmsPublishOptions
java.lang.Object
org.opencms.ade.publish.shared.CmsPublishOptions
- All Implemented Interfaces:
Serializable
Bean encapsulating all ADE publish options.
- Since:
- 7.6
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value to indicate that the 'resources in folders' checkbox should be disabled.static final String
Value to indicate that the 'resources in folders' checkbox should be enabled.static final String
Value to indicate that the 'resources in folders' checkbox should be enabled, but labeled 'resources in folder' instead.static final String
The collector information.static final String
Parameter name for the collector items.static final String
Parameter name for the container page structure id.static final String
Parameter name for the content structure id.static final String
Parameter name for the detail content structure id.static final String
Parameter for enabling the 'add contents' check box.static final String
The name of the parameter used for passing in the list of resources.static final String
The name of the parameter which controls whether to add sub-resources of folders.static final String
Parameter for indicating that the initial project should be the 'current page' virtual project. -
Constructor Summary
ConstructorDescriptionCreates a new publish options bean.CmsPublishOptions
(boolean includeRelated, boolean includeSiblings, CmsUUID projectId) Creates a new publish options bean.CmsPublishOptions
(Map<String, String> params) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the additional publish parameters.Returns the project id.boolean
Checks if to include related resources.boolean
Checks if to include siblings.void
setIncludeRelated
(boolean includeRelated) Sets the flag to include related resources.void
setIncludeSiblings
(boolean includeSiblings) Sets the flag to include siblings.void
setParameters
(Map<String, String> params) Sets the additional publish parameters.void
setProjectId
(CmsUUID projectId) Sets the id of the project to publish.
-
Field Details
-
INCLUDE_CONTENTS_CHECKBOX_DISABLE
Value to indicate that the 'resources in folders' checkbox should be disabled.- See Also:
-
INCLUDE_CONTENTS_CHECKBOX_SINGULAR
Value to indicate that the 'resources in folders' checkbox should be enabled, but labeled 'resources in folder' instead.- See Also:
-
INCLUDE_CONTENTS_CHECKBOX_PLURAL
Value to indicate that the 'resources in folders' checkbox should be enabled.- See Also:
-
PARAM_COLLECTOR_ITEMS
Parameter name for the collector items.- See Also:
-
PARAM_COLLECTOR_INFO
The collector information.- See Also:
-
PARAM_CONTAINERPAGE
Parameter name for the container page structure id.- See Also:
-
PARAM_CONTENT
Parameter name for the content structure id.- See Also:
-
PARAM_DETAIL
Parameter name for the detail content structure id.- See Also:
-
PARAM_ENABLE_INCLUDE_CONTENTS
Parameter for enabling the 'add contents' check box.- See Also:
-
PARAM_FILES
The name of the parameter used for passing in the list of resources.- See Also:
-
PARAM_INCLUDE_CONTENTS
The name of the parameter which controls whether to add sub-resources of folders.- See Also:
-
PARAM_START_WITH_CURRENT_PAGE
Parameter for indicating that the initial project should be the 'current page' virtual project.- See Also:
-
-
Constructor Details
-
CmsPublishOptions
public CmsPublishOptions()Creates a new publish options bean. -
CmsPublishOptions
Creates a new publish options bean.- Parameters:
includeRelated
- Flag to include related resourcesincludeSiblings
- Flag to include siblingsprojectId
- The id of the project to publish
-
CmsPublishOptions
Creates a new instance.- Parameters:
params
- the additional publish parameters
-
-
Method Details
-
getParameters
Gets the additional publish parameters.- Returns:
- the additional publish parameters
-
getProjectId
Returns the project id.- Returns:
- the project id
-
isIncludeRelated
Checks if to include related resources.- Returns:
true
if to include related resources
-
isIncludeSiblings
Checks if to include siblings.- Returns:
true
if to include siblings
-
setIncludeRelated
Sets the flag to include related resources.- Parameters:
includeRelated
- the flag to set
-
setIncludeSiblings
Sets the flag to include siblings.- Parameters:
includeSiblings
- the flag to set
-
setParameters
Sets the additional publish parameters.- Parameters:
params
- the additional parameters to set
-
setProjectId
Sets the id of the project to publish.- Parameters:
projectId
- the id to set
-