|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This View can be modified, if it is needed a read-only View use View instead.
Handle different kind of information using presentations.
There are three different kind of EditableViews, depending on the information to be presented.
Editable Views for Instances, Editable Views for Applications and Editable Views for Attachments,
each one has its own presentation type.
To obtain an EditableView from a View, you can
call the method ProcessServiceNESession.getEditableView(View) with the
View as an argument.
ProcessServiceSession and call the
method ProcessServiceSession.storeView(View).
i.e.
String[] viewIds = processServiceSession.getViewIds();
for (int i=0; i < viewIds.length; i++) {
View view = processServiceSession.getView(viewIds[i]);
EditableView editView = processServiceSession.getEditableView(view);
editView.setLabel("View Number " + i, java.util.Locale.ENGLISH);
processServiceSession.storeView(editView);
}
EditableView editView = processServiceSession.createView(ViewType.INSTANCES, "MyViewID",
new String[] {"DeployedProcessVersion" });
| Field Summary |
| Fields inherited from interface fuego.papi.View |
APPLICATIONS_DEFAUTL_ID, ATTACHMENTS_DEFAULT_ID, BOOKMARK_DEFAULT_ID, CONSULTATIONS_DEFAUTL_ID, DEFAULT_OWNER, HISTORY_DEFAUTL_ID, HISTORY_TODAY_DEFAULT_ID, INBOX_DEFAULT_ID |
| Method Summary | |
void |
assignProcess(String processId)
Assign a process identification |
void |
assignProcesses(String[] processIds)
Assign more than one process identification. |
void |
assignRole(String roleId)
Assign a role |
void |
assignRoles(String[] roleIds)
Assign more than one role |
void |
clearLabels()
Remove all labels assigned. |
String |
removeLabel(Locale locale)
Remove the label for the given specific locale. |
void |
setCustom(boolean isCustom)
Sets this View as custom or default. |
void |
setHidden(boolean isHidden)
Sets this View as hidden or vissible. |
void |
setLabel(String label,
Locale locale)
Sets a lable for a specific locale |
void |
setPresentation(String presentationId)
Sets the presentation id for this view |
void |
setReadOnly(boolean isReadOnly)
Sets the read-only status for everyone but the owner. |
void |
unassignAllProcesses()
Unassign all assigned process |
void |
unassignAllRoles()
Unassign all assigned roles |
void |
unassignProcess(String processId)
Unassign a specific assigned process |
void |
unassignRole(String roleId)
Unassign a specific assigned role |
| Methods inherited from interface fuego.papi.View |
getAssignedProcesses, getAssignedRoles, getId, getLabel, getOwner, getParentId, getPresentation, getPresentationType, getType, hasType, isCustom, isHidden, isReadOnly, isTransient |
| Method Detail |
public void setCustom(boolean isCustom)
isCustom - true to set it as a custom View.public void setHidden(boolean isHidden)
isHidden - true to set it as a hidden View.
public void setLabel(String label,
Locale locale)
label - label to be shown as the "folder" namelocale - the desired locale.public void setPresentation(String presentationId)
presentationId - presentation identificationpublic void setReadOnly(boolean isReadOnly)
isReadOnly - set the desired View status.public void assignProcess(String processId)
processId - process identificationpublic void assignProcesses(String[] processIds)
processIds - array of processes identificationpublic void assignRole(String roleId)
roleId - role identificationpublic void assignRoles(String[] roleIds)
roleIds - array of roles identificationpublic void clearLabels()
public String removeLabel(Locale locale)
locale - the desired Locale
public void unassignAllProcesses()
public void unassignAllRoles()
public void unassignProcess(String processId)
processId - process identificationpublic void unassignRole(String roleId)
roleId - role identification
|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||