public class CmsPublishService extends CmsGwtService implements I_CmsPublishService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_CONFIRM
Name for the request parameter to control display of the confirmation dialog.
|
static java.lang.String |
PARAM_PUBLISH_PROJECT_ID
The publish project id parameter name.
|
static java.lang.String |
PARAM_WORKFLOW_ID
The workflow id parameter name.
|
Constructor and Description |
---|
CmsPublishService() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSiblings(java.util.Set<CmsResource> publishResources)
Adds siblings to a set of publish resources.
|
CmsWorkflowResponse |
executeAction(CmsWorkflowAction action,
CmsWorkflowActionParams params)
Tries to publish a list of resources.
|
CmsPublishData |
getInitData(java.util.HashMap<java.lang.String,java.lang.String> params)
Returns the initial publish data.
|
CmsPublishData |
getPublishData(CmsObject cms,
java.util.HashMap<java.lang.String,java.lang.String> params,
java.lang.String workflowId,
java.lang.String projectParam,
java.util.List<java.lang.String> pathList,
java.lang.String closeLink,
boolean confirm)
Gets the publish data for the given parameters.
|
CmsPublishGroupList |
getResourceGroups(CmsWorkflow workflow,
CmsPublishOptions options,
boolean projectChanged)
Retrieves the publish list, subdivided into groups based on the time of their last change.
|
CmsPublishOptions |
getResourceOptions()
Retrieves the publish options.
|
static CmsPublishData |
prefetch(javax.servlet.http.HttpServletRequest request)
Fetches the publish data.
|
static java.lang.String |
wrapProjectName(CmsObject cms,
java.lang.String name)
Wraps the project name in a message string.
|
checkPermissions, clearThreadStorage, doGetSerializationPolicy, doUnexpectedFailure, ensureLock, ensureLock, ensureLock, ensureSession, error, getCmsObject, getPropertiesByName, getRequest, getResponse, log, log, logError, service, setCms, setContext, setRequest, setResponse, tryUnlock
checkPermutationStrongName, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponse
doPost, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service
public static final java.lang.String PARAM_CONFIRM
public static final java.lang.String PARAM_PUBLISH_PROJECT_ID
public static final java.lang.String PARAM_WORKFLOW_ID
public CmsPublishService()
protected void addSiblings(java.util.Set<CmsResource> publishResources)
publishResources
- the set to which siblings should be addedpublic CmsWorkflowResponse executeAction(CmsWorkflowAction action, CmsWorkflowActionParams params) throws CmsRpcException
I_CmsPublishService
executeAction
in interface I_CmsPublishService
action
- the work flow actionparams
- the data on which to perform the workflow actionCmsRpcException
- if something goes wrongI_CmsPublishService.executeAction(org.opencms.ade.publish.shared.CmsWorkflowAction, org.opencms.ade.publish.shared.CmsWorkflowActionParams)
public CmsPublishData getInitData(java.util.HashMap<java.lang.String,java.lang.String> params) throws CmsRpcException
I_CmsPublishService
getInitData
in interface I_CmsPublishService
params
- a map of additional publish parametersCmsRpcException
- if something goes wrongI_CmsPublishService.getInitData(java.util.HashMap)
public CmsPublishData getPublishData(CmsObject cms, java.util.HashMap<java.lang.String,java.lang.String> params, java.lang.String workflowId, java.lang.String projectParam, java.util.List<java.lang.String> pathList, java.lang.String closeLink, boolean confirm) throws java.lang.Exception
cms
- the CMS contextparams
- other publish parametersworkflowId
- the workflow idprojectParam
- the projectpathList
- the list of direct publish resource site pathscloseLink
- the close linkconfirm
- true if confirmation dialog should be displayed after closing the dialogjava.lang.Exception
- if something goes wrongpublic CmsPublishGroupList getResourceGroups(CmsWorkflow workflow, CmsPublishOptions options, boolean projectChanged) throws CmsRpcException
I_CmsPublishService
getResourceGroups
in interface I_CmsPublishService
workflow
- the selected workflowoptions
- the publish options for which the publish list should be fetchedprojectChanged
- indicates whether the reason we get the resource groups is because the user changed the projectCmsRpcException
- if something goes wrongI_CmsPublishService.getResourceGroups(org.opencms.ade.publish.shared.CmsWorkflow, org.opencms.ade.publish.shared.CmsPublishOptions, boolean)
public CmsPublishOptions getResourceOptions() throws CmsRpcException
getResourceOptions
in interface I_CmsPublishService
CmsRpcException
- if something goes wrongpublic static CmsPublishData prefetch(javax.servlet.http.HttpServletRequest request) throws CmsRpcException
request
- the servlet requestCmsRpcException
- if something goes wrongpublic static java.lang.String wrapProjectName(CmsObject cms, java.lang.String name)
cms
- the CMS contextname
- the project name