|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents the current user requesting the pagelet
Generally, a pagelet can obtain an IProxyUser from
IProxyContext.getUser().
| Method Summary | |
java.util.Enumeration |
getRoles()
Get an Iterator of the roles associated with this user. |
int |
getUserID()
Returns the portal User object ID for the current user |
java.lang.String |
getUserName()
Returns the portal user name for the current user |
boolean |
isAnonymous()
Returns whether the current user is an Anonymous user. |
boolean |
isUserInRole(java.lang.String role)
Get a boolean that describes whether the user currently is included in the specified role. |
| Method Detail |
public int getUserID()
NotGatewayedException - if the request is not gatewayedpublic java.lang.String getUserName()
NotGatewayedException - if the request is not gatewayedpublic java.util.Enumeration getRoles()
Iterator of the roles associated with this user. This iterator contains
the names of roles as Strings.
NotGatewayedException - if the request is not gatewayed
ProtocolNotSupportedException - if used with a version of the portal that
does not support this featurepublic boolean isUserInRole(java.lang.String role)
false.
role - the role to query
true if the user is included in the role; false otherwise
NotGatewayedException - if the request is not gatewayedpublic boolean isAnonymous()
true if and only if the user is Anonymous.
NotGatewayedException - if the request is not gatewayed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©2010 Oracle® Corporation. All Rights Reserved.