public class PublicationHelper extends Object
| Constructor and Description |
|---|
PublicationHelper() |
| Modifier and Type | Method and Description |
|---|---|
Map<org.jahia.ajax.gwt.client.widget.publication.PublicationWorkflow,WorkflowDefinition> |
createPublicationWorkflows(List<org.jahia.ajax.gwt.client.data.publication.GWTJahiaPublicationInfo> all) |
Map<String,org.jahia.ajax.gwt.client.data.publication.GWTJahiaPublicationInfo> |
getAggregatedPublicationInfosByLanguage(JCRNodeWrapper node,
Set<String> languages,
JCRSessionWrapper currentUserSession,
boolean includeReferences,
boolean includeSubNodes)
Get the publication status information for a particular path.
|
List<org.jahia.ajax.gwt.client.data.publication.GWTJahiaPublicationInfo> |
getFullPublicationInfos(List<String> uuids,
Set<String> languages,
JCRSessionWrapper currentUserSession,
boolean allSubTree,
boolean checkForUnpublication) |
Map<String,List<org.jahia.ajax.gwt.client.data.publication.GWTJahiaPublicationInfo>> |
getFullPublicationInfosByLanguage(List<String> uuids,
Set<String> languages,
JCRSessionWrapper currentUserSession,
boolean allSubTree) |
WorkflowHelper |
getWorkflowHelper() |
void |
publish(List<String> uuids)
Publish a node to live workspace immediately.
|
void |
publish(List<String> uuids,
JCRSessionWrapper session,
JCRSiteNode site,
List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> properties,
List<String> comments)
Publish a list of nodes into the live workspace.
|
void |
setComplexPublicationService(ComplexPublicationService complexPublicationService) |
void |
setHttpClientService(HttpClientService httpClientService) |
void |
setPublicationService(JCRPublicationService publicationService) |
void |
setWorkflowHelper(WorkflowHelper workflowHelper) |
void |
setWorkflowService(WorkflowService workflowService) |
void |
unpublish(List<String> uuids,
Set<String> languages,
JahiaUser user)
Unpublish a node from live workspace.
|
void |
validateConnection(Map<String,String> props,
JCRSessionWrapper jcrSession,
Locale uiLocale) |
public void setPublicationService(JCRPublicationService publicationService)
public void setComplexPublicationService(ComplexPublicationService complexPublicationService)
public void setWorkflowService(WorkflowService workflowService)
public WorkflowHelper getWorkflowHelper()
public void setWorkflowHelper(WorkflowHelper workflowHelper)
public void setHttpClientService(HttpClientService httpClientService)
public Map<String,org.jahia.ajax.gwt.client.data.publication.GWTJahiaPublicationInfo> getAggregatedPublicationInfosByLanguage(JCRNodeWrapper node, Set<String> languages, JCRSessionWrapper currentUserSession, boolean includeReferences, boolean includeSubNodes) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
node - node to get publication info forcurrentUserSession - includeReferences - includeSubNodes - org.jahia.ajax.gwt.client.service.GWTJahiaServiceException - in case of any RepositoryExceptionpublic Map<String,List<org.jahia.ajax.gwt.client.data.publication.GWTJahiaPublicationInfo>> getFullPublicationInfosByLanguage(List<String> uuids, Set<String> languages, JCRSessionWrapper currentUserSession, boolean allSubTree) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic List<org.jahia.ajax.gwt.client.data.publication.GWTJahiaPublicationInfo> getFullPublicationInfos(List<String> uuids, Set<String> languages, JCRSessionWrapper currentUserSession, boolean allSubTree, boolean checkForUnpublication) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic Map<org.jahia.ajax.gwt.client.widget.publication.PublicationWorkflow,WorkflowDefinition> createPublicationWorkflows(List<org.jahia.ajax.gwt.client.data.publication.GWTJahiaPublicationInfo> all)
public void publish(List<String> uuids, JCRSessionWrapper session, JCRSiteNode site, List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> properties, List<String> comments) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
uuids - list of uuids of the nodes to publishcomments - org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void publish(List<String> uuids) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
uuids - uuids of the nodes to publishorg.jahia.ajax.gwt.client.service.GWTJahiaServiceException - in case of any RepositoryExceptionpublic void unpublish(List<String> uuids, Set<String> languages, JahiaUser user) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
uuids - uuids of the nodes to unpublishlanguages - Set of languages to unpublish if null unpublish all languagesuser - the user for obtaining the jcr sessionorg.jahia.ajax.gwt.client.service.GWTJahiaServiceException - in case of any RepositoryExceptionpublic void validateConnection(Map<String,String> props, JCRSessionWrapper jcrSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.