|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface is a wrapper for IUMPrincipal .
It provides all the methods required for the IUMPrincipal used in the
IApprover implementation. The IApproverPrincipal is also
responsible for buffering the situation if the user who was assigned as the approver is no longer found
in the user management. All methods have to return a meaningful value in this situation.
| Method Summary | |
boolean |
containsUser(com.sapportals.portal.security.usermanagement.IUser impUser)
Checks whether the impUser is contained in the IApproverPrincipal
If the current principal represents a single user,
checks if it is the user.
|
boolean |
containsUser(java.lang.String impID,
int impType)
Checks whether a principal is contained in the IApproverPrincipal
If the current principal represents a single user,
checks if it is the user.
|
java.lang.String |
getDisplayName()
Gets the name of the approver for the user interface Normally a full name should be returned as maintained in the user management. |
java.lang.String |
getId()
Gets the ID of the approver as used in user management The ID of an approver is taken from the user management. |
com.sapportals.portal.security.usermanagement.IUMPrincipal |
getPrincipal()
Gets the IUMPrincipal from the user management
The IUMPrincipal which represents the approver is returned.
|
int |
getType()
Gets the type of approver as defined in IUMPrincipal
The user management deals with principals, which may be of the type user, group or
role. |
| Method Detail |
public int getType()
IUMPrincipal
The user management deals with principals, which may be of the type user, group or
role. The tpyes are defined as integer values with the the IUMPrincipal and are
also used here.public java.lang.String getId()
public java.lang.String getDisplayName()
public com.sapportals.portal.security.usermanagement.IUMPrincipal getPrincipal()
IUMPrincipal from the user management
The IUMPrincipal which represents the approver is returned.
In some cases this method may return null, for example, when the user
who was assigned as an approver is no longer found in the user management.
The IApproverPrincipal is used as wapper, to deal with this
situation and to return usable values in all other methods.IUMPrincipal from user management. May be null.public boolean containsUser(com.sapportals.portal.security.usermanagement.IUser impUser)
impUser is contained in the IApproverPrincipal
If the current principal represents a single user,
checks if it is the user.
Otherwise, if the current principal represents a group or a role,
it checks whether the impUser is contained in the group or role.impUser - user to check
public boolean containsUser(java.lang.String impID,
int impType)
IApproverPrincipal
If the current principal represents a single user,
checks if it is the user.
Otherwise, if the current principal represents a group or a role,
it checks whether the user is contained in the group or role.
In contrast to containsUser(IUser impUser) , the user is identified by ID
and type.impID - ID of the principalimpType - type of the principal
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||