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