Package org.opencms.ade.publish
Class CmsPublishService
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.opencms.gwt.CmsGwtService
org.opencms.ade.publish.CmsPublishService
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService,com.google.gwt.user.server.rpc.SerializationPolicyProvider,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,I_CmsPublishService
The implementation of the publish service.
- Since:
- 8.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName for the request parameter to control display of the confirmation dialog.static final StringThe publish project id parameter name.static final StringThe workflow id parameter name.Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSiblings(Set<CmsResource> publishResources) Adds siblings to a set of publish resources.executeAction(CmsWorkflowAction action, CmsWorkflowActionParams params) Tries to publish a list of resources.getInitData(HashMap<String, String> params) Returns the initial publish data.getPublishData(CmsObject cms, HashMap<String, String> params, String workflowId, String projectParam, List<String> pathList, String closeLink, boolean confirm) Gets the publish data for the given parameters.getResourceGroups(CmsWorkflow workflow, CmsPublishOptions options, boolean projectChanged) Retrieves the publish list, subdivided into groups based on the time of their last change.Retrieves the publish options.static CmsPublishDataprefetch(javax.servlet.http.HttpServletRequest request) Fetches the publish data.static StringwrapProjectName(CmsObject cms, String name) Wraps the project name in a message string.Methods inherited from class org.opencms.gwt.CmsGwtService
checkPermissions, clearThreadStorage, doGetSerializationPolicy, doUnexpectedFailure, ensureLock, ensureLock, ensureLock, ensureLock, ensureSession, error, getCmsObject, getPropertiesByName, getRequest, getResponse, isBroadcastCall, log, log, logError, service, setBroadcastPoll, setCms, setContext, setRequest, setResponse, tryUnlockMethods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponseMethods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init
-
Field Details
-
PARAM_CONFIRM
Name for the request parameter to control display of the confirmation dialog.- See Also:
-
PARAM_PUBLISH_PROJECT_ID
The publish project id parameter name.- See Also:
-
PARAM_WORKFLOW_ID
The workflow id parameter name.- See Also:
-
-
Constructor Details
-
CmsPublishService
public CmsPublishService()
-
-
Method Details
-
prefetch
public static CmsPublishData prefetch(javax.servlet.http.HttpServletRequest request) throws CmsRpcException Fetches the publish data.- Parameters:
request- the servlet request- Returns:
- the publish data
- Throws:
CmsRpcException- if something goes wrong
-
wrapProjectName
Wraps the project name in a message string.- Parameters:
cms- the CMS contextname- the project name- Returns:
- the message for the given project name
-
getInitData
Description copied from interface:I_CmsPublishServiceReturns the initial publish data.- Specified by:
getInitDatain interfaceI_CmsPublishService- Parameters:
params- a map of additional publish parameters- Returns:
- the initial publish data
- Throws:
CmsRpcException- if something goes wrong- See Also:
-
getPublishData
public CmsPublishData getPublishData(CmsObject cms, HashMap<String, String> params, String workflowId, String projectParam, List<String> pathList, String closeLink, boolean confirm) throws ExceptionGets the publish data for the given parameters.- Parameters:
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 dialog- Returns:
- the publish data
- Throws:
Exception- if something goes wrong
-
getResourceOptions
Retrieves the publish options.- Specified by:
getResourceOptionsin interfaceI_CmsPublishService- Returns:
- the publish options last used
- Throws:
CmsRpcException- if something goes wrong
-
addSiblings
Adds siblings to a set of publish resources.- Parameters:
publishResources- the set to which siblings should be added
-