|
Fuego Process API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class is used to show information with a specific representation. There are three different kind of views, depending on the information that will be shown, (Instances, Applications, Attachments). Each type of view has its own presentation type. You can obtain the stored views or create new ones using ProcessServiceNESession. To modify a View you must obtain an EditableView, to do that, you can call the method ProcessServiceNESession.getEditableView(View) with the view as argument. To store the modified view, you must obtain a ProcessServiceSession and call the method storeView(View). i.e. ProcessService processService = ProcessService.create("DirectoryURL"); ConnectionPassport passport = processService.createPassport("UserID"); ProcessServiceSession session = processService.createSession(psssport, "UserHost"); String[] viewIds = neSession.getViewIds(); for (int i=0; i < viewIds.length; i++) { View view = session.getView(viewIds[i]); EditableView editView = session.getEditableView(view); editView.setLabel("View Number " + i, java.util.Locale.ENGLISH); session.storeView(editView); } EditableView editView = session.createView(ViewType.INSTANCES, "MyViewID", new String[] {"DeployedProcessVersion" });
ViewType,
Presentation,
PresentationType,
ProcessServiceNESession,
ProcessServiceSession| Field Summary | |
static String |
APPLICATIONS_DEFAUTL_ID
|
static String |
ATTACHMENTS_DEFAULT_ID
|
static String |
BOOKMARK_DEFAULT_ID
|
static String |
CONSULTATIONS_DEFAUTL_ID
|
static String |
DEFAULT_OWNER
|
static String |
HISTORY_DEFAUTL_ID
|
static String |
HISTORY_TODAY_DEFAULT_ID
|
static String |
INBOX_DEFAULT_ID
|
| Method Summary | |
String[] |
getAssignedProcesses()
Returns the process identification assigned. |
String[] |
getAssignedRoles()
Returns the roles identification where this view is assigned |
String |
getId()
Returns the view identification |
String |
getLabel(Locale locale)
Returns the label for a given locale |
String |
getOwner()
Returns the participant identification who created the view |
String |
getParentId()
Returns the parent view identification, if this view doesn't have parent returns null. |
String |
getPresentation()
Returns the presentation identification assigned |
PresentationType |
getPresentationType()
Returns the type of the presentation assinged |
ViewType |
getType()
Returns the type of the view |
boolean |
hasType(ViewType viewType)
Returns if the view is a subtype of given view type |
boolean |
isCustom()
Returns if this view was created by the user |
boolean |
isHidden()
Returns if this view is hidden or not |
boolean |
isReadOnly()
Returns if read only or not |
boolean |
isTransient()
Returns if was stored or not |
| Field Detail |
public static final String DEFAULT_OWNER
public static final String ATTACHMENTS_DEFAULT_ID
public static final String APPLICATIONS_DEFAUTL_ID
public static final String INBOX_DEFAULT_ID
public static final String BOOKMARK_DEFAULT_ID
public static final String CONSULTATIONS_DEFAUTL_ID
public static final String HISTORY_DEFAUTL_ID
public static final String HISTORY_TODAY_DEFAULT_ID
| Method Detail |
public String[] getAssignedProcesses()
Process.getId()public String[] getAssignedRoles()
Process.getRoles()public boolean isCustom()
public boolean isHidden()
public String getId()
public String getLabel(Locale locale)
locale -
public String getOwner()
Participant.getUid()public String getParentId()
getId()public String getPresentation()
Presentation.getId()public PresentationType getPresentationType()
Presentation.getType(),
PresentationTypepublic boolean isReadOnly()
public boolean isTransient()
public ViewType getType()
ViewTypepublic boolean hasType(ViewType viewType)
viewType - the parent view type
ViewType
|
Fuego Process API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||