|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The IStepList interface represents an approval workflow in the user interface while defining or
displaying the approval workflow. An approval workflow is defined by a series of steps with approvers assigned
to each step.
IStep | Method Summary | |
IApprover |
addApproverToSelectedStep(com.sapportals.portal.security.usermanagement.IUMPrincipal impPrincipal)
Adds a single approver to the selected steps. |
IApprover |
addApproverToSelectedStep(com.sapportals.portal.security.usermanagement.IUMPrincipal impPrincipal,
int impApproverTyp)
Deprecated. as of NW04. Please use addApproverToSelectedStep(IUMPrincipal impPrincipal) |
IApprover |
addApproverToSelectedStep(java.lang.String impApproverId,
int impApproverTyp)
Adds a single approver to the selected steps. |
void |
appendStep()
Appends a new, empty step to the end of the approver list. |
boolean |
containsApprover(com.sapportals.portal.security.usermanagement.IUser impUser,
int impStep)
Checks whether a principal is contained in one of the approvers assigned to the specified step |
void |
deleteEmptySteps()
Removes steps with no approvers. |
java.util.List |
deleteSelectedApprovers()
Removes the selected approvers from the workflow. |
java.util.List |
deleteSelectedSteps()
Removes the selected steps from the approver list. |
java.util.List |
getApproverOfStep(int impStep)
Returns a list of IApprover that are assigned to the specified step.
|
java.util.List |
getApproverStringList()
This method returns a list with strings that can be used to persist the defined workflow as a multi-value application property of a resource. |
java.util.List |
getEmptySteps()
Returns a list of steps without approvers. |
java.lang.String |
getStepDisplayName(int impStep)
Gets the display name of a step. |
IStepListState |
getStepListState()
Gets the IStepListState from a steplist in order to persist the steplist.
|
java.lang.String |
getStepListString()
This method serializes the current state of the IStepList into a string that can be used to
persist the steplist in an HTML Page. |
void |
insertStep(int impPosition)
Inserts a new, empty step into the approver list at the specified position. |
boolean |
isStepSelected(int impStep)
Checks whether a step is selected |
java.util.List |
moveSelectedStepDown()
Moves the selected step one position down. |
java.util.List |
moveSelectedStepUp()
Moves the selected step one position up. |
void |
setApproverStringList(java.util.List impApproverList)
This method is used to restore the IStepList from the List returned by getApproverStringList(). |
void |
setStepDisplayName(int impStep,
java.lang.String impName)
Sets the display name of a step |
void |
setStepListString(java.lang.String impStepListString)
This method deserializes the IStepList from a string returned by getCompleteApproverList.
|
void |
setStepSelected(int impStep,
boolean impSelected)
Sets the selected flag for a step |
int |
size()
The size of the IStepList |
| Method Detail |
public IStepListState getStepListState()
IStepListState from a steplist in order to persist the steplist.
The IStepList can be restored using IStatemanagementUtilsResource.restoreSteplist(IStepListState state) .
public java.lang.String getStepListString()
throws WcmException
IStepList into a string that can be used to
persist the steplist in an HTML Page. The complete IStepList can be deserialized using this
string with the method setStepListString(String impStepListString).WcmException - exception raised in failure situation
public void setStepListString(java.lang.String impStepListString)
throws WcmException
IStepList from a string returned by getCompleteApproverList.
In the user interface, the state of the steplist has to be persisted in an HTML Page. To restore the object,
this method has to be used.impStepListString - the string persisted in the HTML pageWcmException - exception raised in failure situation
public java.util.List getApproverStringList()
throws WcmException
IStepList can be restored from this List
using method setApproverStringList(java.util.List). List with String values to persist the workflowWcmException - exception raised in failure situation
public void setApproverStringList(java.util.List impApproverList)
throws WcmException
IStepList from the List returned by getApproverStringList(). This List is normally persisted as an application property for a resource.impApproverList - a list of strings as returned by getApproverList() WcmException - exception raised in failure situation
public IApprover addApproverToSelectedStep(java.lang.String impApproverId,
int impApproverTyp)
throws WcmException
setStepSelected(int impStep, boolean
impSelected). Any type of principal known in the user management, such as user, group, or role can be used as an approver.
The approver in this method is identified by the ID and type of the principal.impApproverId - principal ID of the approver to be addedimpApproverTyp - principal type of the approver to be addedWcmException - exception raised in failure situation
public IApprover addApproverToSelectedStep(com.sapportals.portal.security.usermanagement.IUMPrincipal impPrincipal,
int impApproverTyp)
throws WcmException
addApproverToSelectedStep(IUMPrincipal impPrincipal)
impPrincipal - principal to be added as approverimpApproverTyp - principal type of the approver to be addedWcmException - exception raised in failure situation
public IApprover addApproverToSelectedStep(com.sapportals.portal.security.usermanagement.IUMPrincipal impPrincipal)
throws WcmException
addApproverToSelectedStep(String impApproverId,
int impApproverTyp) the approver here is identified by the IUMPrincipal .impPrincipal - principal to be added as approverWcmException - exception raised in failure situationpublic void appendStep()
public void insertStep(int impPosition)
impPosition - position of the new stepjava.lang.ArrayIndexOutOfBoundsException - if impStep < 0 or >= sizepublic java.util.List moveSelectedStepUp()
setStepSelected(int impStep, boolean
impSelected).public java.util.List moveSelectedStepDown()
setStepSelected(int impStep, boolean
impSelected).
public java.util.List getApproverOfStep(int impStep)
throws java.lang.ArrayIndexOutOfBoundsException
IApprover that are assigned to the specified step.
Each element of the returned List implements the IApprover interface.
This method is used to render and handle the approvers
asigned to one step within the user interface.impStep - number of the stepIApprover objectsjava.lang.ArrayIndexOutOfBoundsException - if impStep < 0 or >= sizeIApprover
public boolean containsApprover(com.sapportals.portal.security.usermanagement.IUser impUser,
int impStep)
throws java.lang.ArrayIndexOutOfBoundsException
impStep - number of stepimpUser - principal to checkjava.lang.ArrayIndexOutOfBoundsException - if impStep < 0 or >= sizeIApproverpublic int size()
IStepList IStepList
public java.lang.String getStepDisplayName(int impStep)
throws java.lang.ArrayIndexOutOfBoundsException
impStep - the index of the stepjava.lang.ArrayIndexOutOfBoundsException - if impStep < 0 or >= size
public void setStepDisplayName(int impStep,
java.lang.String impName)
throws java.lang.ArrayIndexOutOfBoundsException
impStep - the index of the stepimpName - the new display name of the stepjava.lang.ArrayIndexOutOfBoundsException - if impStep < 0 or >= size
public boolean isStepSelected(int impStep)
throws java.lang.ArrayIndexOutOfBoundsException
impStep - the index of the stepjava.lang.ArrayIndexOutOfBoundsException - if impStep < 0 or >= size
public void setStepSelected(int impStep,
boolean impSelected)
throws java.lang.ArrayIndexOutOfBoundsException
impStep - the index of the stepimpSelected - true to select the step, false to deselect the stepjava.lang.ArrayIndexOutOfBoundsException - if impStep < 0 or >= sizepublic java.util.List deleteSelectedSteps()
setStepSelected(int impStep, boolean
impSelected).
All selected steps are removed from the steplist even if they are not empty.public void deleteEmptySteps()
public java.util.List getEmptySteps()
public java.util.List deleteSelectedApprovers()
getApproverOfStep(int impStep)
and then IApprover.setSelected(boolean impSelected) for the returned approvers.IApprovers with all deleted approvers
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||