org.gcube.portlets.user.workflowdocuments.server
Class WfDocumentsLibraryServiceImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by org.gcube.portlets.user.workflowdocuments.server.WfDocumentsLibraryServiceImpl
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, WfDocumentsLibraryService

public class WfDocumentsLibraryServiceImpl
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements WfDocumentsLibraryService

The server side implementation of the RPC service.

See Also:
Serialized Form

Field Summary
static String LIFERAY_COMPANY_WEB_ID
           
static int ORGANIZATION_ROLE_TYPE
           
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
WfDocumentsLibraryServiceImpl()
           
 
Method Summary
 Boolean addUserComment(String workflowdocid, String comment)
           
 Boolean forward(WorkflowDocument wfDoc, String stepForwardedTo)
          thie method performs the forward of a user, then checks if the status has to be advanced (all users belonging to a role have forwarded)
 ArrayList<org.gcube.portlets.admin.wfdocslibrary.shared.UserComment> getUserComments(String workflowid)
           
 ArrayList<WorkflowDocument> getUserWfDocuments()
           
 org.gcube.portlets.admin.wfdocslibrary.shared.WfTemplate getWorkflowById(String workflowid)
          get the Workflow By Id
 void init()
          init method
 LockInfo setWorkflowInSession(String documentName, String workflowid, boolean readonly)
          Sets the workflow in session to open it lately and tries to acquire a lock if readonly is false
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORGANIZATION_ROLE_TYPE

public static int ORGANIZATION_ROLE_TYPE

LIFERAY_COMPANY_WEB_ID

public static final String LIFERAY_COMPANY_WEB_ID
See Also:
Constant Field Values
Constructor Detail

WfDocumentsLibraryServiceImpl

public WfDocumentsLibraryServiceImpl()
Method Detail

init

public void init()
init method

Overrides:
init in class javax.servlet.GenericServlet

getUserWfDocuments

public ArrayList<WorkflowDocument> getUserWfDocuments()
Specified by:
getUserWfDocuments in interface WfDocumentsLibraryService

getWorkflowById

public org.gcube.portlets.admin.wfdocslibrary.shared.WfTemplate getWorkflowById(String workflowid)
get the Workflow By Id

Specified by:
getWorkflowById in interface WfDocumentsLibraryService

addUserComment

public Boolean addUserComment(String workflowdocid,
                              String comment)
Specified by:
addUserComment in interface WfDocumentsLibraryService

getUserComments

public ArrayList<org.gcube.portlets.admin.wfdocslibrary.shared.UserComment> getUserComments(String workflowid)
Specified by:
getUserComments in interface WfDocumentsLibraryService

forward

public Boolean forward(WorkflowDocument wfDoc,
                       String stepForwardedTo)
thie method performs the forward of a user, then checks if the status has to be advanced (all users belonging to a role have forwarded)

Specified by:
forward in interface WfDocumentsLibraryService
Parameters:
workflowid - workflowid
Returns:
true if the status has to be and has been advanced, false if it just has update the step with the user forward

setWorkflowInSession

public LockInfo setWorkflowInSession(String documentName,
                                     String workflowid,
                                     boolean readonly)
Sets the workflow in session to open it lately and tries to acquire a lock if readonly is false

Specified by:
setWorkflowInSession in interface WfDocumentsLibraryService
Parameters:
documentName - .
workflowid - workflow identifier for this document
readonly - specifies if it has to be open readonly or write mode


Copyright © 2013. All Rights Reserved.