|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents an approver. The approver has an ID which comes from user management. The approver can be a user, a group, or a role. The approver is identified by an ID and an assigned step. An approver must be unique within the approver list for a ressource.
| Method Summary | |
com.sapportals.portal.security.usermanagement.IUser |
getActApprover()
Gets the user who has approved or rejected a resource If a group or a role is used as an approver, only one actual user can approve or reject a resource. |
IApproverPrincipal |
getActApproverPrincipal()
Gets the user who has approved or rejected a resource If a group or a role is used as an approver, only one actual user can approve or reject a resource. |
java.lang.String |
getApproverString()
Returns the attributes of the IApprover object as a string to enable persistent storage This method can be used to serialize the approver object. |
java.lang.String |
getDisplayName()
Gets the name of the approver for the user interface Returns a display name for this approver to be used in the user interface. |
java.lang.String |
getIcon()
Gets the icon of the approver for the user interface The different types of principals (user, group, and role) are represented by different icons. |
java.lang.String |
getKey()
Gets the unique key of the user in the approver list It should be possible to instantiate an approver with this key. |
IApproverPrincipal |
getPrincipal()
Gets a wrapper class for the principal as used in user management In the approval workflow, a wrapper class for the user management's principal is used to provide an abstraction from the usermanagement and to handle null users. |
java.lang.Boolean |
hasApproved()
Checks whether the approver has approved the current resource. |
boolean |
isSelected()
Checks whether the approver is selected in the approver list. |
void |
setApproved(java.lang.Boolean impApproved,
java.lang.String impUserId)
Indicates whether the user has approved or rejected the current resource |
void |
setApproverString(java.lang.String impApproverString)
Restores the IApprover object from a string as returned by getApproverString(). |
void |
setSelected(boolean impSelected)
Selects the approver in the approver list This method is used to mark an approver as selected. |
| Method Detail |
public java.lang.String getKey()
public IApproverPrincipal getPrincipal()
public com.sapportals.portal.security.usermanagement.IUser getActApprover()
public IApproverPrincipal getActApproverPrincipal()
getActApprover() the user is returned as IApproverPrincipal ,
which is a wrapper around the IUser . This wrapper provides, for example,
a backup for the getDisplayName() method.public java.lang.String getDisplayName()
public java.lang.String getIcon()
public boolean isSelected()
public void setSelected(boolean impSelected)
impSelected - true to select the approverpublic java.lang.Boolean hasApproved()
public void setApproved(java.lang.Boolean impApproved,
java.lang.String impUserId)
impApproved - true if approver has approved the resource, false if approver has rejected the resourceimpUserId - user who has approved or rejected the resourcepublic java.lang.String getApproverString()
setApproverString() .
This method can be used to persist the current approver object in an html page.
public void setApproverString(java.lang.String impApproverString)
throws WcmException
null as impApproverString causes an exception.impApproverString - the approverString valueWcmException - if the object can not be instantiated
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||