|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWorkflowService
WorkflowService
Method Summary | |
---|---|
void |
doProcessAction(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale,
boolean isAutomatic)
Deprecated. |
void |
doProcessAction(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
java.lang.Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale,
boolean isAutomatic)
Proceed action given in parameter |
void |
doRemoveWorkFlowResource(int nIdResource,
java.lang.String strResourceType)
Remove in all workflows the resource specified in parameter |
void |
doRemoveWorkFlowResourceByListId(java.util.List<java.lang.Integer> lListIdResource,
java.lang.String strResourceType,
java.lang.Integer nIdWorflow)
Remove list of resource by list of id resource |
java.lang.String |
doSaveTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
Deprecated. |
java.lang.String |
doSaveTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
java.lang.Integer nExternalParentId,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
Perform the information on the various tasks associated with the given action specified in parameter |
void |
executeActionAutomatic(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow)
Deprecated. |
void |
executeActionAutomatic(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
java.lang.Integer nExternalParentId)
Execute action automatic |
java.util.Collection<Action> |
getActions(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
AdminUser user)
returns a list of actions possible for a given document based on the status of the document in the workflow and the user role |
java.util.HashMap<java.lang.Integer,java.util.List<Action>> |
getActions(java.util.List<java.lang.Integer> listIdResource,
java.lang.String strResourceType,
java.lang.Integer nIdExternalParentId,
int nIdWorkflow,
AdminUser user)
returns a list of actions possible for a given document based on the status of the document in the workflow and the user role |
java.util.Collection<State> |
getAllStateByWorkflow(int nIdWorkflow,
AdminUser user)
returns all state of a given workflow |
java.util.List<java.lang.Integer> |
getAuthorizedResourceList(java.lang.String strResourceType,
int nIdWorkflow,
int nIdWorkflowState,
AdminUser user)
Deprecated. |
java.util.List<java.lang.Integer> |
getAuthorizedResourceList(java.lang.String strResourceType,
int nIdWorkflow,
int nIdWorkflowState,
java.lang.Integer nExternalParentId,
AdminUser user)
Get all authorized resource Id |
java.util.List<java.lang.Integer> |
getAuthorizedResourceList(java.lang.String strResourceType,
int nIdWorkflow,
java.util.List<java.lang.Integer> lListIdWorkflowState,
java.lang.Integer nExternalParentId,
AdminUser user)
Get all authorized resource Id |
java.lang.String |
getDisplayDocumentHistory(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
returns the actions history performed on a resource |
java.lang.String |
getDisplayTasksForm(int nIdResource,
java.lang.String strResourceType,
int nIdAction,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
returns the tasks form |
java.lang.String |
getDocumentHistoryXml(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
returns a xml wich contains the actions history performed on a resource |
java.util.Collection<java.lang.Integer> |
getListIdRessourceByState(int nIdState,
java.lang.String strResourceType,
AdminUser user)
Deprecated. |
State |
getState(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
AdminUser user)
Deprecated. |
State |
getState(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
java.lang.Integer nIdExternalParentId,
AdminUser user)
returns the state of a given document |
ReferenceList |
getWorkflowsEnabled(AdminUser user,
java.util.Locale locale)
return a referencelist wich contains a list enabled workflow |
boolean |
isAuthorized(int nIdResource,
java.lang.String strResourceType,
int nIdWorkflow,
AdminUser user)
Check that a given user is allowed to view a resource depending the state of the resource |
boolean |
isDisplayTasksForm(int nIdAction,
java.util.Locale locale)
return true if a form is associate to the action |
Method Detail |
---|
java.util.Collection<Action> getActions(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, AdminUser user)
nIdResource
- the document idstrResourceType
- the document typeuser
- the adminUsernIdWorkflow
- the workflow id
java.util.HashMap<java.lang.Integer,java.util.List<Action>> getActions(java.util.List<java.lang.Integer> listIdResource, java.lang.String strResourceType, java.lang.Integer nIdExternalParentId, int nIdWorkflow, AdminUser user)
listIdResssource
- the list of resource idstrResourceType
- the document typeuser
- the adminUsernIdWorkflow
- the workflow id
@Deprecated State getState(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, AdminUser user)
nIdResource
- the document idstrResourceType
- the document typeuser
- the adminUsernIdWorkflow
- the workflow id
State getState(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, java.lang.Integer nIdExternalParentId, AdminUser user)
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idnIdExternalParentId
- the external parent iduser
- The user
boolean isDisplayTasksForm(int nIdAction, java.util.Locale locale)
nIdAction
- the action idlocale
- the loacle
@Deprecated void doProcessAction(int nIdResource, java.lang.String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, java.util.Locale locale, boolean isAutomatic)
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdAction
- the action idlocale
- localeisAutomatic
- true if action is automaticvoid doProcessAction(int nIdResource, java.lang.String strResourceType, int nIdAction, java.lang.Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, java.util.Locale locale, boolean isAutomatic)
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdAction
- the action idnIdExternalParentId
- the external parent idlocale
- localeisAutomatic
- true if action is automaticjava.lang.String getDisplayDocumentHistory(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdWorkflow
- the workflow idlocale
- the locale
java.lang.String getDocumentHistoryXml(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdWorkflow
- the workflow idlocale
- the locale
@Deprecated java.lang.String doSaveTasksForm(int nIdResource, java.lang.String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdAction
- the action idlocale
- the locale
java.lang.String doSaveTasksForm(int nIdResource, java.lang.String strResourceType, int nIdAction, java.lang.Integer nExternalParentId, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
nIdResource
- the resource idstrResourceType
- the resource typerequest
- the requestnIdAction
- the action idnExternalParentId
- the external parent idlocale
- the locale
void doRemoveWorkFlowResource(int nIdResource, java.lang.String strResourceType)
nIdResource
- the resource idstrResourceType
- the resource typevoid doRemoveWorkFlowResourceByListId(java.util.List<java.lang.Integer> lListIdResource, java.lang.String strResourceType, java.lang.Integer nIdWorflow)
lListIdResource
- the list of resource idstrResourceType
- the resource typenIdWorflow
- the workflow idjava.lang.String getDisplayTasksForm(int nIdResource, java.lang.String strResourceType, int nIdAction, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
nIdResource
- the document idstrResourceType
- the document typerequest
- the requestnIdAction
- the action idlocale
- the locale
boolean isAuthorized(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, AdminUser user)
nIdResource
- the document idstrResourceType
- the document typeuser
- the AdminUsernIdWorkflow
- the workflow id
@Deprecated java.util.List<java.lang.Integer> getAuthorizedResourceList(java.lang.String strResourceType, int nIdWorkflow, int nIdWorkflowState, AdminUser user)
strResourceType
- the resource typenIdWorkflow
- the workflow idnIdWorkflowState
- The workflow state iduser
- the AdminUser
java.util.List<java.lang.Integer> getAuthorizedResourceList(java.lang.String strResourceType, int nIdWorkflow, int nIdWorkflowState, java.lang.Integer nExternalParentId, AdminUser user)
strResourceType
- the resource typenIdWorkflow
- the workflow idnIdWorkflowState
- The workflow state idnExternalParentId
- The external parent iduser
- the AdminUser
java.util.List<java.lang.Integer> getAuthorizedResourceList(java.lang.String strResourceType, int nIdWorkflow, java.util.List<java.lang.Integer> lListIdWorkflowState, java.lang.Integer nExternalParentId, AdminUser user)
strResourceType
- the resource typenIdWorkflow
- the workflow idlListIdWorkflowState
- The list workflow state idnExternalParentId
- he external parent iduser
- the AdminUser
ReferenceList getWorkflowsEnabled(AdminUser user, java.util.Locale locale)
user
- the AdminUserlocale
- the locale
java.util.Collection<State> getAllStateByWorkflow(int nIdWorkflow, AdminUser user)
user
- the adminUsernIdWorkflow
- the workflow id
@Deprecated java.util.Collection<java.lang.Integer> getListIdRessourceByState(int nIdState, java.lang.String strResourceType, AdminUser user)
nIdState
- the id StatestrResourceType
- the resource typeuser
- the AdminUser
@Deprecated void executeActionAutomatic(int nIdResource, java.lang.String strResourceType, int nIdWorkflow)
nIdResource
- the document idstrResourceType
- the document typenIdWorkflow
- the workflow idvoid executeActionAutomatic(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, java.lang.Integer nExternalParentId)
nIdResource
- the document idstrResourceType
- the document typenIdWorkflow
- the workflow idnExternalParentId
- the external parent id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |