|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessModel
Interface describing a representation of the main <processModel> element of a Process Model. The entry point to reading and manipulating the whole Process Model.
Method Summary | |
---|---|
void |
addDescription(ContextualDesignation description)
Add a description Method needed primarily by Castor |
void |
addLabel(ContextualDesignation label)
Add a label Method needed primarily by Castor |
Actions |
createActions()
Create Actions |
DataFolder |
createDataFolder()
Create DataFolder |
ContextualDesignation |
createDesignation()
Create an object implementing ContextualDesignation Method needed primarily by Castor |
Forms |
createForms()
Create Forms |
Participants |
createParticipants()
Create Participants |
Presentation |
createPresentation()
Create a Presentation |
QualifiedUsers |
createQualifiedUsers()
Create an object implementing QualifiedUsers |
RelatedUser |
createRelatedUser()
Create an object implementing RelatedUser |
Roles |
createRoles()
Create Roles |
States |
createStates()
Create States |
Action |
getAction(String name)
Get the action definition with given name |
Form |
getActionForm(String actionName)
Returns the form (if any) associated to the named action. |
Action[] |
getActions()
Get the actions defined for this process model |
Actions |
getActionsEx()
Get the actions definitions |
RecordTemplate |
getAllDataTemplate(String role,
String lang)
Returns the RecordTemplate which describes all the data of the process instance built from this model. |
Action |
getCreateAction(String role)
Returns the action of kind create Throws a WorkflowException if there is no action of type create |
String[] |
getCreationRoles()
Returns the roles under which an user can create a new instance |
DataFolder |
getDataFolder()
Get the data folder defined for this process model |
String |
getDescription(String role,
String language)
Get description in specific language for the given role |
ContextualDesignations |
getDescriptions()
Get all the descriptions |
RecordSet |
getFolderRecordSet()
Returns the record set where are saved all the folder of the instance built from this model. |
String |
getFolderRecordSetName()
|
Form |
getForm(String name)
Get the form definition with given name |
Form |
getForm(String name,
String role)
Get the form definition with given name for the given role |
RecordSet |
getFormRecordSet(String formName)
Returns the record set where are saved all the data of the named form. |
String |
getFormRecordSetName(String formName)
|
Forms |
getForms()
Get the forms definitions |
String |
getLabel(String role,
String language)
Get label in specific language for the given role |
ContextualDesignations |
getLabels()
Get all the labels |
String |
getModelId()
Get the id of this process model |
String |
getName()
Get the name of this process model |
DataRecord |
getNewActionRecord(String actionName,
String roleName,
String lang,
DataRecord data)
Returns an empty com.silverpeas.form.DataRecord which must be filled in order to process the named action. |
DataRecord |
getNewUserInfosRecord(String roleName,
String lang)
Returns an empty com.silverpeas.form.DataRecord which must be filled in order to fill the user information Throws a WorkflowException if problem encountered. |
Participant[] |
getParticipants()
Get the participants definition |
Participants |
getParticipantsEx()
Get all the participants definitions |
Presentation |
getPresentation()
Get the presentation configuration |
Form |
getPresentationForm(String name,
String role,
String language)
Returns the com.silverpeas.form.Form which be used to publish the named form. |
Form |
getPublicationForm(String actionName,
String role,
String language)
Returns the com.silverpeas.form.Form which be used to publish the form associated to the named action. |
Role |
getRole(String name)
Get the role definition with given name |
Role[] |
getRoles()
Get the roles definition |
Roles |
getRolesEx()
Get the Roles definitions |
RecordTemplate |
getRowTemplate(String role,
String lang)
Returns the RecordTemplate which describes a process instance in a row. |
State |
getState(String name)
Get the state definition with given name |
State[] |
getStates()
Get the states defined for this process model |
States |
getStatesEx()
Get the states definitions |
DataFolder |
getUserInfos()
Get the user infos defined for this process model |
Iterator<ContextualDesignation> |
iterateDescription()
Iterate through the descriptions |
Iterator<ContextualDesignation> |
iterateLabel()
Iterate through the Labels |
void |
setActions(Actions actions)
Set the actions defined for this process model |
void |
setDataFolder(DataFolder dataFolder)
Set the data folder for this process model |
void |
setForms(Forms forms)
Set the forms defined for this process model |
void |
setModelId(String modelId)
Set the id of this process model |
void |
setName(String name)
Set the name of this process model |
void |
setParticipants(Participants participants)
Set the participants definition |
void |
setPresentation(Presentation presentation)
Set the presentation's configuration |
void |
setRoles(Roles roles)
Set the roles definition |
void |
setStates(States states)
Set the states defined for this process model |
void |
setUserInfos(DataFolder userInfos)
Set the user infos defined for this process model It contains all the items necessary about user to allow him to use the instance |
Method Detail |
---|
String getModelId()
void setModelId(String modelId)
modelId
- process model idString getName()
void setName(String name)
name
- model's nameString getLabel(String role, String language)
language
- label's languagerole
- role for which the label is
ContextualDesignations getLabels()
Iterator<ContextualDesignation> iterateLabel()
ContextualDesignation createDesignation()
void addLabel(ContextualDesignation label)
String getDescription(String role, String language)
lang
- description's languagerole
- role for which the description is
ContextualDesignations getDescriptions()
Iterator<ContextualDesignation> iterateDescription()
void addDescription(ContextualDesignation description)
Presentation getPresentation()
void setPresentation(Presentation presentation)
presentation
- presentation's configurationPresentation createPresentation()
Participant[] getParticipants()
Participants getParticipantsEx()
void setParticipants(Participants participants)
participants
- participants definitionParticipants createParticipants()
Role[] getRoles()
Roles getRolesEx()
Role getRole(String name)
name
- role name
void setRoles(Roles roles)
roles
- roles definitionRoles createRoles()
State[] getStates()
States getStatesEx()
State getState(String name)
name
- state name
void setStates(States states)
states
- states defined for this process modelStates createStates()
Action[] getActions()
Actions getActionsEx()
Action getAction(String name) throws WorkflowException
name
- action name
WorkflowException
void setActions(Actions actions)
actions
- actions defined for this process modelActions createActions()
DataFolder getDataFolder()
void setDataFolder(DataFolder dataFolder)
data
- folder for this process model. it contains all the items declarationsDataFolder createDataFolder()
DataFolder getUserInfos()
void setUserInfos(DataFolder userInfos)
userInfos
- user infos defined for this process model.Forms getForms()
Form getForm(String name)
name
- action form
Form getForm(String name, String role)
name
- action form
void setForms(Forms forms)
forms
- forms defined for this process model.Forms createForms()
QualifiedUsers createQualifiedUsers()
RelatedUser createRelatedUser()
RecordSet getFolderRecordSet() throws WorkflowException
WorkflowException
String getFolderRecordSetName()
RecordSet getFormRecordSet(String formName) throws WorkflowException
WorkflowException
String getFormRecordSetName(String formName)
Form getActionForm(String actionName) throws WorkflowException
WorkflowException
Form getPublicationForm(String actionName, String role, String language) throws WorkflowException
WorkflowException
Action getCreateAction(String role) throws WorkflowException
WorkflowException
Form getPresentationForm(String name, String role, String language) throws WorkflowException
WorkflowException
RecordTemplate getAllDataTemplate(String role, String lang)
RecordTemplate getRowTemplate(String role, String lang)
DataRecord getNewActionRecord(String actionName, String roleName, String lang, DataRecord data) throws WorkflowException
WorkflowException
DataRecord getNewUserInfosRecord(String roleName, String lang) throws WorkflowException
WorkflowException
String[] getCreationRoles() throws WorkflowException
WorkflowException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |