|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IStepList
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.sap.security.api.IPrincipal impPrincipal)
Adds a single approver to the selected steps. |
IApprover |
addApproverToSelectedStep(com.sapportals.portal.security.usermanagement.IUMPrincipal impPrincipal)
Deprecated. As of NetWeaver 7.1, replaced by addApproverToSelectedStep(com.sap.security.api.IPrincipal) |
IApprover |
addApproverToSelectedStep(com.sapportals.portal.security.usermanagement.IUMPrincipal impPrincipal,
int impApproverTyp)
Deprecated. as of NW04. Please use addApproverToSelectedStep(IUMPrincipal impPrincipal) |
IApprover |
addApproverToSelectedStep(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)
Deprecated. As of NetWeaver 7.1, replaced by containsApprover(com.sap.security.api.IUser,int) |
boolean |
containsApprover(com.sap.security.api.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. |
List |
deleteSelectedApprovers()
Removes the selected approvers from the workflow. |
List |
deleteSelectedSteps()
Removes the selected steps from the approver list. |
List |
getApproverOfStep(int impStep)
Returns a list of IApprover that are assigned to the specified step. |
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. |
List |
getEmptySteps()
Returns a list of steps without approvers. |
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. |
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 |
List |
moveSelectedStepDown()
Moves the selected step one position down. |
List |
moveSelectedStepUp()
Moves the selected step one position up. |
void |
setApproverStringList(List impApproverList)
This method is used to restore the IStepList from the List returned by getApproverStringList(). |
void |
setStepDisplayName(int impStep,
String impName)
Sets the display name of a step |
void |
setStepListString(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 |
|---|
IStepListState getStepListState()
IStepListState from a steplist in order to persist the steplist.
The IStepList can be restored using IStatemanagementUtilsResource.restoreSteplist(IStepListState state) .
String getStepListString()
throws com.sapportals.wcm.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).
com.sapportals.wcm.WcmException - exception raised in failure situation
void setStepListString(String impStepListString)
throws com.sapportals.wcm.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 page
com.sapportals.wcm.WcmException - exception raised in failure situation
List getApproverStringList()
throws com.sapportals.wcm.WcmException
IStepList can be restored from this List
using method setApproverStringList(java.util.List).
List with String values to persist the workflow
com.sapportals.wcm.WcmException - exception raised in failure situation
void setApproverStringList(List impApproverList)
throws com.sapportals.wcm.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()
com.sapportals.wcm.WcmException - exception raised in failure situation
IApprover addApproverToSelectedStep(String impApproverId,
int impApproverTyp)
throws com.sapportals.wcm.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 added
com.sapportals.wcm.WcmException - exception raised in failure situation
IApprover addApproverToSelectedStep(com.sapportals.portal.security.usermanagement.IUMPrincipal impPrincipal,
int impApproverTyp)
throws com.sapportals.wcm.WcmException
addApproverToSelectedStep(IUMPrincipal impPrincipal)
impPrincipal - principal to be added as approverimpApproverTyp - principal type of the approver to be added
com.sapportals.wcm.WcmException - exception raised in failure situation
IApprover addApproverToSelectedStep(com.sapportals.portal.security.usermanagement.IUMPrincipal impPrincipal)
throws com.sapportals.wcm.WcmException
addApproverToSelectedStep(com.sap.security.api.IPrincipal)
addApproverToSelectedStep(String impApproverId,
int impApproverTyp) the approver here is identified by the IUMPrincipal .
impPrincipal - principal to be added as approver
com.sapportals.wcm.WcmException - exception raised in failure situation
IApprover addApproverToSelectedStep(com.sap.security.api.IPrincipal impPrincipal)
throws com.sapportals.wcm.WcmException
addApproverToSelectedStep(String impApproverId,
int impApproverTyp) the approver here is identified by the IUMPrincipal .
impPrincipal - principal to be added as approver
com.sapportals.wcm.WcmException - exception raised in failure situationvoid appendStep()
void insertStep(int impPosition)
impPosition - position of the new step
ArrayIndexOutOfBoundsException - if impStep < 0 or >= sizeList moveSelectedStepUp()
setStepSelected(int impStep, boolean
impSelected).
List moveSelectedStepDown()
setStepSelected(int impStep, boolean
impSelected).
List getApproverOfStep(int impStep)
throws 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 step
IApprover objects
ArrayIndexOutOfBoundsException - if impStep < 0 or >= sizeIApprover
boolean containsApprover(com.sapportals.portal.security.usermanagement.IUser impUser,
int impStep)
throws ArrayIndexOutOfBoundsException
containsApprover(com.sap.security.api.IUser,int)
impStep - number of stepimpUser - principal to check
ArrayIndexOutOfBoundsException - if impStep < 0 or >= sizeIApprover
boolean containsApprover(com.sap.security.api.IUser impUser,
int impStep)
throws ArrayIndexOutOfBoundsException
impStep - number of stepimpUser - principal to check
ArrayIndexOutOfBoundsException - if impStep < 0 or >= sizeIApproverint size()
IStepList
IStepList
String getStepDisplayName(int impStep)
throws ArrayIndexOutOfBoundsException
impStep - the index of the step
ArrayIndexOutOfBoundsException - if impStep < 0 or >= size
void setStepDisplayName(int impStep,
String impName)
throws ArrayIndexOutOfBoundsException
impStep - the index of the stepimpName - the new display name of the step
ArrayIndexOutOfBoundsException - if impStep < 0 or >= size
boolean isStepSelected(int impStep)
throws ArrayIndexOutOfBoundsException
impStep - the index of the step
ArrayIndexOutOfBoundsException - if impStep < 0 or >= size
void setStepSelected(int impStep,
boolean impSelected)
throws ArrayIndexOutOfBoundsException
impStep - the index of the stepimpSelected - true to select the step, false to deselect the step
ArrayIndexOutOfBoundsException - if impStep < 0 or >= sizeList deleteSelectedSteps()
setStepSelected(int impStep, boolean
impSelected).
All selected steps are removed from the steplist even if they are not empty.
void deleteEmptySteps()
List getEmptySteps()
List deleteSelectedApprovers()
getApproverOfStep(int impStep)
and then IApprover.setSelected(boolean impSelected) for the returned approvers.
IApprovers with all deleted approvers| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||