|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.taskapi.portalui.TaskAPIUIUser
public class TaskAPIUIUser
TaskAPI functions for user related URLs and functions, such as getting personal preferences, getting object ID of current user and checking user access.
Constructor Summary | |
---|---|
TaskAPIUIUser()
|
Method Summary | |
---|---|
static AccessStyles |
GetAccessStyle(AActivitySpace owner)
Gets the Access Style for the current user. |
static int |
GetCurrentUserID(AActivitySpace owner)
Gets the object ID of the current user. |
static java.lang.String |
GetCurrentUserName(AActivitySpace owner)
Gets the name of the current user. |
static XPLocale |
GetPersonalSettingsLocale(AActivitySpace owner)
Gets the locale set in user's My Account settings for the current user |
static java.lang.Object |
GetPersonalSettingValue(AActivitySpace owner,
java.lang.String sSettingName)
Call this method to obtain the value of a personal setting. |
static IPTURL |
GetURLForLoginLogoff(AActivitySpace owner)
Gets the URL for the Login/Logoff link. |
static IPTURL |
GetURLForMyAccountPage(AActivitySpace owner)
Gets the URL to the My Account settings page, where user's can edit their Portal setttings. |
static IPTURL |
GetURLForMyHome(AActivitySpace owner)
|
static java.lang.String |
GetWelcomeMessage(AActivitySpace owner)
This method gets the user's personalized greeting, normally displayed in the Topbar. |
static boolean |
HasAccessToActivityRight(AActivitySpace owner,
int nActivityRightID)
Checks if the current user has access to the specified Activity Right. |
static boolean |
HasAdminLinkAccess(AActivitySpace owner)
Checks if the link the Administration portal should display or not. |
static boolean |
IsAccessStyleAccessibility(AActivitySpace owner)
Checks if the Access Style mode for the current user is the Accessibility style. |
static boolean |
IsAccessStyleLowBandwidth(AActivitySpace owner)
Checks if the Access Style mode for the current user is the Low-bandwidth style. |
static boolean |
IsAccessStyleStandard(AActivitySpace owner)
Checks if the Access Style mode for the current user is the Standard style. |
static boolean |
IsCurrentUserAdministrator(AActivitySpace owner)
Checks if the current user is a member of Administrators Group. |
static boolean |
IsCurrentUserGuestUser(AActivitySpace owner)
Checks if the current user is a guest user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskAPIUIUser()
Method Detail |
---|
public static java.lang.Object GetPersonalSettingValue(AActivitySpace owner, java.lang.String sSettingName)
This value will be retrieved from the user's web session if possible, otherwise the portal server will be queried.
owner
- Current Activityspace.sSettingName
- String name of personal setting as defined in
com.plumtree.portaluiinfrastructure.login.PersonalSettingNames
, null value if the setting does not exist.
XPException
- This method will throw an XPException
if you do not
pass an ISessionManager
already containing the correct subSession. The
ISessionManager
obtained from your Activity Space will contain the correct
subsession.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.PersonalSettingNames
public static XPLocale GetPersonalSettingsLocale(AActivitySpace owner)
owner
- Current Activityspace.
XPLocale
with the user's locale.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.public static boolean IsCurrentUserGuestUser(AActivitySpace owner)
owner
- Current Activityspace.
true
if the current user is a guest user, false
otherwise.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.public static int GetCurrentUserID(AActivitySpace owner)
owner
- Current Activityspace.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.public static java.lang.String GetCurrentUserName(AActivitySpace owner)
owner
- Current Activityspace.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.public static IPTURL GetURLForMyHome(AActivitySpace owner)
TaskAPIUISubPortal.GetURLForMyHome(AActivitySpace)
public static IPTURL GetURLForLoginLogoff(AActivitySpace owner)
owner
- Current Activityspace.
IPTURL
with login or logoff URL, or null if the link should not be displayed, for example in
Edit Default Profile or Preview Page mode.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.public static boolean HasAccessToActivityRight(AActivitySpace owner, int nActivityRightID)
owner
- Current Activityspace.nActivityRightID
- An Activity Rights ID defined in com.plumtree.server.PT_ACTIVITY_RIGHTS
true
if the user has access to the Activity Right, false
otherwise.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.PT_ACTIVITY_RIGHTS
public static java.lang.String GetWelcomeMessage(AActivitySpace owner)
owner
- Current Activityspace.
String
with the user greeting, or if user greeting cannot be retrieved, a default greeting message.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.public static boolean IsCurrentUserAdministrator(AActivitySpace owner)
owner
- Current Activityspace.
true
if the current user is a member of the Administrators Group, false
otherwise.public static boolean HasAdminLinkAccess(AActivitySpace owner)
owner
- Current Activityspace.
true
if the link to Administration Portal should be displayed, false
otherwise.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.public static AccessStyles GetAccessStyle(AActivitySpace owner)
AccessStyles
.
owner
- Current Activityspace.
AccessStyles
constant with the current Access Style mode.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.AccessStyles
public static boolean IsAccessStyleStandard(AActivitySpace owner)
owner
- Current Activityspace.
AccessStyles.STANDARD
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.AccessStyles
public static boolean IsAccessStyleAccessibility(AActivitySpace owner)
owner
- Current Activityspace.
AccessStyles.SECTION_508
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.AccessStyles
public static boolean IsAccessStyleLowBandwidth(AActivitySpace owner)
owner
- Current Activityspace.
AccessStyles.LOW_BANDWIDTH
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.AccessStyles
public static IPTURL GetURLForMyAccountPage(AActivitySpace owner)
owner
- Current Activity space.
IPTURL
with the URL to user's My Account settings page, or null
value
if the URL is not applicable for the current user or page.
XPIllegalArgumentException
- if the provided AActivityspace
is null
or not valid.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |