mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged DEV/UI-CLUSTERING2 to HEAD
8348: UI cluster support git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8358 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,24 +25,30 @@
|
||||
package org.alfresco.web.bean.coci;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import org.alfresco.service.cmr.coci.CheckOutCheckInService;
|
||||
import org.alfresco.service.cmr.repository.ContentService;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.workflow.WorkflowService;
|
||||
import org.alfresco.web.bean.repository.Node;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
|
||||
public class CCProperties
|
||||
public class CCProperties implements Serializable
|
||||
{
|
||||
|
||||
/** The VersionOperationsService to be used by the bean */
|
||||
protected CheckOutCheckInService versionOperationsService;
|
||||
private static final long serialVersionUID = -79530354521757202L;
|
||||
|
||||
/** The VersionOperationsService to be used by the bean */
|
||||
transient protected CheckOutCheckInService versionOperationsService;
|
||||
|
||||
/** The ContentService to be used by the bean */
|
||||
protected ContentService contentService;
|
||||
transient protected ContentService contentService;
|
||||
|
||||
/** The WorkflowService to be used by the bean */
|
||||
protected WorkflowService workflowService;
|
||||
transient protected WorkflowService workflowService;
|
||||
|
||||
/** Content of the document returned from in-line editing */
|
||||
private String editorOutput;
|
||||
@@ -77,7 +83,12 @@ public class CCProperties
|
||||
*/
|
||||
public CheckOutCheckInService getVersionOperationsService()
|
||||
{
|
||||
return this.versionOperationsService;
|
||||
//check for null in cluster environment
|
||||
if (versionOperationsService == null)
|
||||
{
|
||||
versionOperationsService = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getCheckOutCheckInService();
|
||||
}
|
||||
return versionOperationsService;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -94,7 +105,12 @@ public class CCProperties
|
||||
*/
|
||||
public ContentService getContentService()
|
||||
{
|
||||
return this.contentService;
|
||||
//check for null in cluster environment
|
||||
if (contentService == null)
|
||||
{
|
||||
contentService = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getContentService();
|
||||
}
|
||||
return contentService;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -120,7 +136,12 @@ public class CCProperties
|
||||
*/
|
||||
public WorkflowService getWorkflowService()
|
||||
{
|
||||
return this.workflowService;
|
||||
//check for null for cluster environment
|
||||
if (workflowService == null)
|
||||
{
|
||||
workflowService = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getWorkflowService();
|
||||
}
|
||||
return workflowService;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user