|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
com.silverpeas.processManager.ProcessManagerSessionController
public class ProcessManagerSessionController
The ProcessManager Session controller
Field Summary |
---|
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
CHARACTER_ENCODING, context |
Constructor Summary | |
---|---|
ProcessManagerSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
com.stratelia.silverpeas.peasCore.ComponentContext context)
Builds and init a new session controller |
|
ProcessManagerSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
com.stratelia.silverpeas.peasCore.ComponentContext context,
ProcessManagerException fatal)
Builds a ill session controller. |
Method Summary | |
---|---|
String |
createProcessInstance(com.silverpeas.form.DataRecord data,
boolean isDraft,
boolean firstTimeSaved)
Create a new process instance with the filled form. |
String |
exportListAsCSV()
|
boolean |
filterHistory()
L'historique peut être filtré. |
com.silverpeas.workflow.api.model.Action |
getAction(String actionName)
Get the named action |
com.silverpeas.form.Form |
getActionForm(String stateName,
String actionName)
Returns the form associated to the named action. |
String |
getActionLabel(String actionName)
Get the label of given action |
com.silverpeas.form.DataRecord |
getActionRecord(String stateName,
String actionName)
Returns a new DataRecord filled whith the folder data and which will be be completed by the action form. |
String[] |
getActiveRoles()
|
String[] |
getActiveStates()
Get the active states. |
com.silverpeas.form.Form |
getAssignForm()
Get assign form (for the re-affectations) |
com.silverpeas.form.DataRecord |
getAssignRecord()
Get assign data (for the re-affectations) |
com.silverpeas.form.record.GenericRecordTemplate |
getAssignTemplate()
Get assign template (for the re-affectations) |
com.silverpeas.form.Form |
getCreationForm()
Returns the form which starts a new instance. |
boolean |
getCreationRights()
Get the creation rights |
com.silverpeas.workflow.api.task.Task |
getCreationTask()
Returns the creation task. |
ProcessFilter |
getCurrentFilter()
Returns the current ProcessFilter. |
com.silverpeas.workflow.api.instance.ProcessInstance |
getCurrentProcessInstance()
Get the current process instance |
com.silverpeas.form.DataRecord[] |
getCurrentProcessList()
Returns the current process instance list. |
String |
getCurrentRole()
Returns the current role name. |
String |
getCurrentTokenId()
Get the current tokenId. |
String[] |
getDeleteAction()
Search for an hypothetic action of kind "delete", allowed for the current user with the given role |
com.silverpeas.form.DataRecord |
getEmptyCreationRecord()
Returns the an empty creation record which will be filled with the creation form. |
com.silverpeas.form.DataRecord |
getEmptyQuestionRecord()
Returns the an empty question record which will be filled with the question form. |
com.silverpeas.form.DataRecord |
getEmptyUserSettingsRecord()
Returns the an empty date record which will be filled with the user settings form. |
ProcessManagerException |
getFatalException()
Returns the last fatal exception |
com.silverpeas.workflow.api.model.Item[] |
getFolderItems()
|
com.silverpeas.form.DataRecord |
getFolderRecord()
Returns the folder data of the current process instance. |
List<LockVO> |
getLockingUsers()
Get locking users list |
com.silverpeas.form.Form |
getPresentationForm()
Returns the form presenting the folder of the current process instance. |
com.silverpeas.form.Form |
getPresentationForm(String name)
Returns the named form (Read only). |
com.silverpeas.form.Form |
getPrintForm(javax.servlet.http.HttpServletRequest request)
Returns the form defined to print |
com.silverpeas.form.DataRecord |
getPrintRecord()
Returns the data of instance |
com.silverpeas.workflow.api.error.WorkflowError[] |
getProcessInstanceErrors(String processId)
Get all the errors occured while processing the current process instance |
String |
getProcessInstanceIdFromExternalTodoId(String externalTodoId)
Get the process instance Id referred by the todo with the given todo id |
com.silverpeas.form.RecordTemplate |
getProcessListHeaders()
Returns the current instance list rows template. |
com.silverpeas.workflow.api.model.ProcessModel |
getProcessModel(String modelId)
Returns the process model having the given id. |
com.silverpeas.workflow.api.instance.Question |
getQuestion(String questionId)
get the question with the given id |
com.silverpeas.form.Form |
getQuestionForm(boolean readonly)
Returns the form to ask a question |
com.silverpeas.form.DataRecord |
getQuestionRecord(String questionId)
Returns the an empty question record which will be filled with the question form. |
String |
getRoleNameFromExternalTodoId(String externalTodoId)
Get the role name of task referred by the todo with the given todo id |
com.silverpeas.workflow.api.instance.HistoryStep |
getSavedStep()
Get step saved by given user id. |
com.silverpeas.form.DataRecord |
getSavedStepRecord(com.silverpeas.workflow.api.instance.HistoryStep savedStep)
Get step data record saved. |
com.silverpeas.workflow.api.instance.HistoryStep[] |
getSortedHistorySteps(boolean ascending)
|
com.silverpeas.workflow.api.model.State |
getState(String stateName)
Get the state with the given name |
com.silverpeas.workflow.api.instance.HistoryStep |
getStep(String stepId)
Returns the required step |
String |
getStepAction(com.silverpeas.workflow.api.instance.HistoryStep step)
Get the list of actions in History Step of current process instance |
String |
getStepActor(com.silverpeas.workflow.api.instance.HistoryStep step)
Get the list of actors in History Step of current process instance |
com.silverpeas.form.Form |
getStepForm(com.silverpeas.workflow.api.instance.HistoryStep step)
Returns the form used to display the i-th step. |
com.silverpeas.form.DataRecord |
getStepRecord(com.silverpeas.workflow.api.instance.HistoryStep step)
Returns the data filled during the given step. |
List<StepVO> |
getSteps(String strEnlightedStep)
|
com.silverpeas.workflow.api.task.Task |
getTask(String stateName)
Returns the named task. |
com.silverpeas.workflow.api.task.Task[] |
getTasks()
Get all tasks assigned for current user on current process instance |
String |
getTrace(String function,
String extraParam)
|
com.silverpeas.workflow.api.user.User |
getUser(String userId)
Returns the workflow user having the given id. |
NamedValue[] |
getUserRoleLabels()
Returns the user roles as a list of (name, label) pair. |
List<String> |
getUsers(com.silverpeas.workflow.api.model.QualifiedUsers qualifiedUsers)
|
List<String> |
getUsers(com.silverpeas.workflow.api.model.QualifiedUsers qualifiedUsers,
boolean useCurrentRole)
|
com.silverpeas.form.Form |
getUserSettingsForm()
Returns the form to fill user settings |
com.silverpeas.form.DataRecord |
getUserSettingsRecord()
Returns the an empty data record which will be filled with the user settings form. |
boolean |
hasPendingQuestions()
Tests if there is some question for current user in current processInstance |
boolean |
hasUserSettings()
Returns true if : the model has any user settings. |
boolean |
isActiveUser()
Get the active user names |
boolean |
isAttachmentTabEnable()
|
boolean |
isCSVExportEnabled()
|
boolean |
isCurrentUserIsLockingUser()
Is current user is part of the locking users for current process instance ? |
boolean |
isHistoryTabVisible()
|
boolean |
isPrintButtonEnabled()
Print button on an action can be disabled. |
boolean |
isProcessIdVisible()
|
boolean |
isResumingInstance()
|
boolean |
isSaveButtonEnabled()
Save button on an action can be disabled. |
boolean |
isStepVisible(com.silverpeas.workflow.api.instance.HistoryStep step)
|
boolean |
isUserAllowedOnActiveStates()
|
boolean |
isUserSettingsOK()
Returns true if : the user settings are correct |
boolean |
isVersionControlled()
|
boolean |
isViewReturn()
|
void |
lock(String stateName)
Lock the current instance for current user and given state |
void |
processAction(String stateName,
String actionName,
com.silverpeas.form.DataRecord data,
boolean isDraft,
boolean isFirstTimeSaved)
Create a new history step instance with the filled form. |
void |
processQuestion(String stepId,
String state,
com.silverpeas.form.DataRecord data)
Send the question as a QuestionEvent to the workflowEngine. |
void |
processResponse(String questionId,
com.silverpeas.form.DataRecord data)
Send the answer as a ResponseEvent to the workflowEngine. |
void |
reAssign(com.silverpeas.form.DataRecord data)
Get assign data (for the re-affectations) |
void |
removeProcess(String processId)
Remove process instance with given id |
void |
resetCreationRights()
Compute the creation rights set creationRight to true if user can do the "Creation" action |
void |
resetCurrentProcessInstance()
Set current Process instance to null |
com.silverpeas.workflow.api.instance.ProcessInstance |
resetCurrentProcessInstance(String instanceId)
Updates the current process instance from the given id and returns the associated ProcessInstance object. |
com.silverpeas.form.DataRecord[] |
resetCurrentProcessList()
Updates the current process instance list with current filter and returns this list. |
void |
resetCurrentProcessListHeaders()
Reset the current instance list rows template. |
void |
resetCurrentRole(String role)
Returns the current role name. |
void |
resetProcessFilter()
Reset the current ProcessFilter. |
void |
saveUserSettings(com.silverpeas.form.DataRecord data)
Save the user settings which have been filled with the user settings form. |
void |
setCurrentTokenId(String newTokenId)
Set the current tokenId. |
void |
setResumingInstance(boolean isResumingInstance)
|
void |
unlock(String stateName)
Un-Lock the current instance for current user and given state |
void |
unlock(String userId,
String stateName)
Un-Lock the current instance for given user and given state |
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcessManagerSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext context) throws ProcessManagerException
mainSessionCtrl
- context
-
ProcessManagerException
public ProcessManagerSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext context, ProcessManagerException fatal)
mainSessionCtrl
- context
- fatal
- Method Detail |
---|
public boolean getCreationRights()
public final void resetCreationRights()
public boolean filterHistory()
public boolean isHistoryTabVisible()
public boolean isCSVExportEnabled()
public boolean isPrintButtonEnabled()
public boolean isSaveButtonEnabled()
public ProcessManagerException getFatalException()
public void resetCurrentProcessInstance()
public com.silverpeas.workflow.api.instance.ProcessInstance resetCurrentProcessInstance(String instanceId) throws ProcessManagerException
ProcessManagerException
public com.silverpeas.workflow.api.instance.ProcessInstance getCurrentProcessInstance()
public com.silverpeas.form.RecordTemplate getProcessListHeaders()
public void resetCurrentProcessListHeaders()
public com.silverpeas.form.DataRecord[] getCurrentProcessList() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord[] resetCurrentProcessList() throws ProcessManagerException
ProcessManagerException
public String getRoleNameFromExternalTodoId(String externalTodoId) throws ProcessManagerException
ProcessManagerException
public String getProcessInstanceIdFromExternalTodoId(String externalTodoId) throws ProcessManagerException
externalTodoId
-
ProcessManagerException
public boolean isUserAllowedOnActiveStates()
public String[] getActiveStates()
public String[] getActiveRoles()
public boolean isActiveUser()
public List<String> getUsers(com.silverpeas.workflow.api.model.QualifiedUsers qualifiedUsers)
public List<String> getUsers(com.silverpeas.workflow.api.model.QualifiedUsers qualifiedUsers, boolean useCurrentRole)
public com.silverpeas.workflow.api.user.User getUser(String userId) throws ProcessManagerException
userId
-
ProcessManagerException
public final com.silverpeas.workflow.api.model.ProcessModel getProcessModel(String modelId) throws ProcessManagerException
modelId
-
ProcessManagerException
public String getCurrentRole()
public void resetCurrentRole(String role) throws ProcessManagerException
role
-
ProcessManagerException
public NamedValue[] getUserRoleLabels()
public com.silverpeas.form.Form getPresentationForm() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.workflow.api.model.Item[] getFolderItems() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord getFolderRecord() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.workflow.api.task.Task getCreationTask() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.Form getCreationForm() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord getEmptyCreationRecord() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.Form getQuestionForm(boolean readonly) throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord getEmptyQuestionRecord() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.workflow.api.instance.Question getQuestion(String questionId)
questionId
- question id
public com.silverpeas.form.DataRecord getQuestionRecord(String questionId) throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.record.GenericRecordTemplate getAssignTemplate() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.Form getAssignForm() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord getAssignRecord()
public void reAssign(com.silverpeas.form.DataRecord data) throws ProcessManagerException
ProcessManagerException
public String createProcessInstance(com.silverpeas.form.DataRecord data, boolean isDraft, boolean firstTimeSaved) throws ProcessManagerException
data
- the form dataisDraft
- true if form has just been saved as draftfirstTimeSaved
- true if form is saved as draft for the first time
ProcessManagerException
public com.silverpeas.workflow.api.task.Task[] getTasks() throws ProcessManagerException
ProcessManagerException
public String[] getDeleteAction()
public com.silverpeas.workflow.api.task.Task getTask(String stateName) throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.Form getPresentationForm(String name) throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.Form getActionForm(String stateName, String actionName) throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord getActionRecord(String stateName, String actionName) throws ProcessManagerException
ProcessManagerException
public void processAction(String stateName, String actionName, com.silverpeas.form.DataRecord data, boolean isDraft, boolean isFirstTimeSaved) throws ProcessManagerException
ProcessManagerException
public com.silverpeas.workflow.api.instance.HistoryStep getStep(String stepId)
public void processQuestion(String stepId, String state, com.silverpeas.form.DataRecord data) throws ProcessManagerException
ProcessManagerException
public void processResponse(String questionId, com.silverpeas.form.DataRecord data) throws ProcessManagerException
ProcessManagerException
public List<LockVO> getLockingUsers() throws ProcessManagerException
ProcessManagerException
public void lock(String stateName) throws ProcessManagerException
stateName
- state name
ProcessManagerException
public void unlock(String userId, String stateName) throws ProcessManagerException
userId
- user IdstateName
- state name
ProcessManagerException
public void unlock(String stateName) throws ProcessManagerException
stateName
- state name
ProcessManagerException
public List<StepVO> getSteps(String strEnlightedStep)
public com.silverpeas.workflow.api.instance.HistoryStep[] getSortedHistorySteps(boolean ascending)
public boolean isStepVisible(com.silverpeas.workflow.api.instance.HistoryStep step)
public String getStepActor(com.silverpeas.workflow.api.instance.HistoryStep step)
public String getStepAction(com.silverpeas.workflow.api.instance.HistoryStep step)
public com.silverpeas.form.Form getStepForm(com.silverpeas.workflow.api.instance.HistoryStep step) throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord getStepRecord(com.silverpeas.workflow.api.instance.HistoryStep step)
public com.silverpeas.workflow.api.instance.HistoryStep getSavedStep() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord getSavedStepRecord(com.silverpeas.workflow.api.instance.HistoryStep savedStep) throws ProcessManagerException
ProcessManagerException
ProcessManagerException
public com.silverpeas.form.Form getPrintForm(javax.servlet.http.HttpServletRequest request) throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord getPrintRecord() throws ProcessManagerException
ProcessManagerException
public String getActionLabel(String actionName)
actionName
- action name
public com.silverpeas.workflow.api.model.State getState(String stateName)
stateName
- state name
public com.silverpeas.workflow.api.model.Action getAction(String actionName)
actionName
- action name
public boolean hasPendingQuestions()
public com.silverpeas.form.Form getUserSettingsForm() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord getEmptyUserSettingsRecord() throws ProcessManagerException
ProcessManagerException
public com.silverpeas.form.DataRecord getUserSettingsRecord() throws ProcessManagerException
ProcessManagerException
public void saveUserSettings(com.silverpeas.form.DataRecord data) throws ProcessManagerException
ProcessManagerException
public ProcessFilter getCurrentFilter() throws ProcessManagerException
ProcessManagerException
public void resetProcessFilter() throws ProcessManagerException
ProcessManagerException
public void removeProcess(String processId) throws ProcessManagerException
ProcessManagerException
public com.silverpeas.workflow.api.error.WorkflowError[] getProcessInstanceErrors(String processId) throws ProcessManagerException
ProcessManagerException
public boolean isUserSettingsOK()
public boolean hasUserSettings()
public boolean isVersionControlled()
public boolean isAttachmentTabEnable()
public boolean isProcessIdVisible()
public boolean isViewReturn()
public String exportListAsCSV() throws ProcessManagerException
ProcessManagerException
public boolean isCurrentUserIsLockingUser()
public void setResumingInstance(boolean isResumingInstance)
public boolean isResumingInstance()
public String getTrace(String function, String extraParam)
public String getCurrentTokenId()
public void setCurrentTokenId(String newTokenId)
newTokenId
- the current token id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |