|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IPortletUser
represents the current user requesting the portlet.
Generally, a portlet can obtain an IPortletUser
from
IPortletContext.getUser()
.
IPortletContext.getUser
Method Summary | |
java.util.Enumeration |
getActivityRights()
Returns an enumeration of all the Activity Rights associated with the current user. |
CommunityAccessLevel |
getCurrentCommunityAccessLevel()
Returns the level of access that the user has for the current Community. |
java.util.Enumeration |
getSettingsRights()
Returns an enumeration of the types of SettingTypes that the
current user can set in the current context. |
java.lang.String |
getUserCharacterSet()
Returns the user's character set. |
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 |
hasActivityRight(java.lang.String activityRight)
Returns a flag that indicates whether or not the current user has the specified Activity Right. |
boolean |
hasSettingsRight(SettingType settingType)
Returns a flag that indicates whether or not the current user has the right to change the specified setting type. |
boolean |
isGuestUser()
Returns whether the current user is a guest user. |
Method Detail |
public java.lang.String getUserName()
NotGatewayedException
- if the request is not gatewayedpublic int getUserID()
NotGatewayedException
- if the request is not gatewayedpublic java.lang.String getUserCharacterSet()
NotGatewayedException
- if the request is not gatewayedpublic boolean hasSettingsRight(SettingType settingType)
settingType
- the type of setting (Admin, Community, CommunityPortlet,
Portlet, Session or User)
NotGatewayedException
- if the request is not gatewayedpublic java.util.Enumeration getSettingsRights()
SettingTypes
that the
current user can set in the current context.
SettingTypes
NotGatewayedException
- if the request is not gatewayedpublic boolean hasActivityRight(java.lang.String activityRight)
false
for all users.
activityRight
- the Activity Right
true
if the user has the Activity Right and false
otherwise
NotGatewayedException
- if the request is not gatewayedpublic java.util.Enumeration getActivityRights()
public CommunityAccessLevel getCurrentCommunityAccessLevel()
NotGatewayedException
- if the request is not gatewayed
ProtocolNotSupportedException
- if used with a version of the portal that
does not support this feature
NotInCommunityException
- if the portlet is not currently displayed in a Community pagepublic boolean isGuestUser()
true
if and only if the user is a guest
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.