|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface View
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 ProcessServiceSession. To modify a View you must obtain an EditableView, to do that, you can call the method ProcessServiceSession.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
,
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
|
static long |
serialCheck
|
static long |
serialVersionUID
|
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 |
---|
@NonNls static final String APPLICATIONS_DEFAUTL_ID
@NonNls static final String ATTACHMENTS_DEFAULT_ID
@NonNls static final String BOOKMARK_DEFAULT_ID
@NonNls static final String CONSULTATIONS_DEFAUTL_ID
@NonNls static final String DEFAULT_OWNER
@NonNls static final String HISTORY_DEFAUTL_ID
@NonNls static final String HISTORY_TODAY_DEFAULT_ID
@NonNls static final String INBOX_DEFAULT_ID
static final long serialCheck
static final long serialVersionUID
Method Detail |
---|
String[] getAssignedProcesses()
Process.getId()
String[] getAssignedRoles()
Process.getRoles()
boolean isCustom()
boolean isHidden()
String getId()
String getLabel(Locale locale)
locale
-
String getOwner()
Participant.getUid()
String getParentId()
getId()
String getPresentation()
Presentation.getId()
PresentationType getPresentationType()
Presentation.getType()
,
PresentationType
boolean isReadOnly()
boolean isTransient()
ViewType getType()
ViewType
boolean hasType(ViewType viewType)
viewType
- the parent view type
ViewType
|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |