|
SAP NetWeaver 7.11 (EhP1 SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGPModifiableBlockStructure
Defines the internal structure of a block.
Allows addition, removal, insertion and replace of child activities wapped in IGPBlockStructureItems.
The block items are stored in a list, which defines the default worklfow ordering i.e. if there are no transitions between the items.
Child block items can be accessed by their index in the list or by their id.
In addition the block structure allows to set view roles for its items.
View roles determine who can observe the status of certain activities during runtime.
| Method Summary | |
|---|---|
IGPModifiableBlockStructureItem |
addItem(IGPModifiableActivity activity)
Create a new block item with the specified activity and add it to the end of children list. |
void |
addViewRole(String blockStructureItemId,
String roleId)
Adds a view permission for the given role for the given block structure item |
boolean |
containsViewRole(String blockStructureItemId,
String roleId)
Checks if the given role has a view permission for the given block structure item |
boolean |
deleteViewRole(String blockStructureItemId,
String roleId)
Removes the view permission for the given role for the given block structure item |
void |
deleteViewRoles(String blockStructureItemId)
Removes all view permissions for the given block structure item |
IGPModifiableBlock |
getBlock()
Get the block this structure is associated to. |
Iterator |
getItems()
Get the children items of this block structure. |
IGPModifiableBlockStructureItem |
getModifiableItem(int index)
Get the block item at a given index. |
IGPModifiableBlockStructureItem |
getModifiableItem(String itemId)
Get the block item with a given id. |
Iterator |
getViewRoles(String blockStructureItemId)
Returns the roleIds of the roles that have a view permission for the given block structure item. |
IGPModifiableBlockStructureItem |
insertItem(int index,
IGPModifiableActivity activity)
Create new block item and insert it at the specified position in the list. |
boolean |
removeItem(int index)
Delete the block item at a given index. |
boolean |
removeItem(String itemId)
Delete the block item with a given id. |
IGPModifiableBlockStructureItem |
setItem(int index,
IGPModifiableActivity activity)
Create new block item and set it at the specified position in the list. |
void |
swap(int first,
int second)
Swaps two block structure items. |
| Methods inherited from interface com.sap.caf.eu.gp.process.api.IGPBlockStructure |
|---|
getIndexOf, getItem, getItem, getItemCount, getItemsIterator |
| Method Detail |
|---|
IGPModifiableBlock getBlock()
IGPModifiableBlockStructureItem addItem(IGPModifiableActivity activity)
throws GPInvocationException
activity - the activity - block or action to add
GPInvocationException - if the activity argument is not of type IGPModifiableAction or IGPModifiableBlock
IGPModifiableBlockStructureItem insertItem(int index,
IGPModifiableActivity activity)
throws GPInvocationException
index will be shifted forward.
index - the index at which to insert the itemactivity - the activity to add
GPInvocationException - if the activity argument is not of type IGPModifiableAction or IGPModifiableBlock
IGPModifiableBlockStructureItem setItem(int index,
IGPModifiableActivity activity)
throws GPInvocationException
index will be removed from the list.
index - he index at which to set the itemactivity - the activity to add
GPInvocationException - if the activity argument is not of type IGPModifiableAction or IGPModifiableBlockIGPModifiableBlockStructureItem getModifiableItem(String itemId)
itemId - the item id
null if none.IGPModifiableBlockStructureItem getModifiableItem(int index)
index - the item index
boolean removeItem(String itemId)
itemId - item id
true if the item existed; false otherwiseboolean removeItem(int index)
index - item index
true if the item existed; false otherwiseIterator getItems()
IGPModifiableBlockStructureItems
void swap(int first,
int second)
void addViewRole(String blockStructureItemId,
String roleId)
blockStructureItemId - roleId - void deleteViewRoles(String blockStructureItemId)
blockStructureItemId - *
boolean deleteViewRole(String blockStructureItemId,
String roleId)
blockStructureItemId - roleId -
boolean containsViewRole(String blockStructureItemId,
String roleId)
blockStructureItemId - roleId -
Iterator getViewRoles(String blockStructureItemId)
blockStructureItemId -
|
SAP NetWeaver 7.11 (EhP1 SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||