|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IUserInfo
This is an interface through which user information can be extracted from the
security session and then modified. The IUserInfo interface contains the information that
identifies the currently logged on user. This includes the user name, userID, logon
parameters, and so on.
| Method Summary | |
|---|---|
void |
associateWithPrincipal(ITrustedPrincipal credential)
Associate this user with the specify trusted credential. |
java.lang.String |
getAuthenMethod()
Returns the authentication method used by the user to log on to the CMS. |
java.util.Locale |
getLocale()
Returns the user's locale. |
long |
getPasswordExpiry()
Returns the password's expiry period in days. |
int |
getPersonalObjectID(java.lang.String kind)
Returns the personal object ID for this user based on the kind. |
java.util.Locale |
getPreferredViewingLocale()
Returns the user's preferred viewing locale. |
java.lang.String |
getProfileString(java.lang.String Name)
Returns the user's profile string. |
java.lang.String |
getProfileString(java.lang.String Name,
boolean isRefresh)
Returns the user's profile string. isRefresh if true, will get value from CMS instead of from cache. |
java.lang.String |
getSecondaryCredential(java.lang.String name)
Deprecated. use IUserInfo.getSecondaryCredentialEx(String) This call do not internally encrypt the value saved to the repository and are insecure.
Returns the specified secondary credential. It also incompatible with the Ex versions, ie.the values saved with the non-Ex form of the call cannot be retrieved by the Ex version and vice-versa. |
java.lang.String |
getSecondaryCredentialEx(java.lang.String name)
Returns the specified secondary credential. |
int |
getTenantID()
Returns the id of the tenant that the current user is associated with. |
java.util.TimeZone |
getTimeZone()
Returns the user's time zone. |
java.lang.String |
getUserCUID()
Returns the user's CUID |
java.lang.String |
getUserDesc()
Returns a description of the user currently logged onto the CMS. |
int |
getUserID()
Returns the user's unique identifier. |
java.lang.String |
getUserName()
Returns the name of the user. |
boolean |
isUserDefaultLocale()
Returns a boolean that determines whether the Locale is a userDefaultLocale. |
void |
removePreferredViewingLocale()
remove user's preferred viewing locale. |
void |
setLocale(java.util.Locale value)
Sets the user's locale. |
void |
setPassword(java.lang.String oldPassword,
java.lang.String newPassword)
Changes the user's password. |
void |
setPreferredViewingLocale(java.util.Locale value)
Sets the user's preferred viewing locale. |
void |
setProfileString(java.lang.String Name,
java.lang.String Value)
Assigns a profile string to the user. |
void |
setSecondaryCredential(java.lang.String name,
java.lang.String value)
Deprecated. use IUserInfo.setSecondaryCredentialEx(String, String) This call do not internally encrypt the value saved to the repository and are insecure.
Set the new value to the specified secondary credential or create a new one if the credential specified does not exist. It also incompatible with the Ex versions, ie.the values saved with the non-Ex form of the call cannot be retrieved by the Ex version and vice-versa. |
void |
setSecondaryCredentialEx(java.lang.String name,
java.lang.String value)
Set the new value to the specified secondary credential or create a new one if the credential specified does not exist. |
void |
setTimeZone(java.util.TimeZone value)
Sets the user's time zone. |
void |
setUserDefaultLocale()
Sets the current user's locale to the default locale. |
| Method Detail |
|---|
java.lang.String getAuthenMethod()
throws SDKException
Returns the authentication method used by the user to log on to the CMS.
String specifying the authentication method used by the user to
log on to the CMS.
SDKException - This is thrown if the process is unsuccessful.
long getPasswordExpiry()
throws SDKException
Returns the password's expiry period in days.
long specifying the password's expiry period in days.
SDKException - This is thrown if the process is unsuccessful.
void setPassword(java.lang.String oldPassword,
java.lang.String newPassword)
throws SDKException
Changes the user's password.
oldPassword - The user's old password.newPassword - The user's new password.
SDKException - This is thrown if the password change is unsuccessful.
java.lang.String getProfileString(java.lang.String Name)
throws SDKException
Returns the user's profile string.
Name - The name of the profile string. Each user can have multiple named profile strings.
String containing the user's profile string value.
SDKException - This is thrown of the process is unsuccessful.
java.lang.String getProfileString(java.lang.String Name,
boolean isRefresh)
throws SDKException
Returns the user's profile string. isRefresh if true, will get value from CMS instead of from cache. isRefresh is true has performance consequence and should only be used if user know there's an out-of-sycn between cache and cms value.
Name - The name of the profile string. Each user can have multiple named profile strings.isRefresh - if true, will get value from CMS instead of from cache.
String containing the user's profile string value.
SDKException - This is thrown of the process is unsuccessful.
void setProfileString(java.lang.String Name,
java.lang.String Value)
throws SDKException
Assigns a profile string to the user.
Name - The name of the profile string.Value - The new value of the profile string.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getSecondaryCredential(java.lang.String name)
throws SDKException
IUserInfo.getSecondaryCredentialEx(String) This call do not internally encrypt the value saved to the repository and are insecure.
Returns the specified secondary credential. It also incompatible with the Ex versions, ie.the values saved with the non-Ex form of the call cannot be retrieved by the Ex version and vice-versa.
name - The name credential the user would like to retrieve.
String containing the specified credential.
SDKException - This is thrown if the process is unsuccessful.
void setSecondaryCredential(java.lang.String name,
java.lang.String value)
throws SDKException
IUserInfo.setSecondaryCredentialEx(String, String) This call do not internally encrypt the value saved to the repository and are insecure.
Set the new value to the specified secondary credential or create a new one if the credential specified does not exist. It also incompatible with the Ex versions, ie.the values saved with the non-Ex form of the call cannot be retrieved by the Ex version and vice-versa.
name - The name that the new secondary credential should be stored under.value - The new value of the secondary credential.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getSecondaryCredentialEx(java.lang.String name)
throws SDKException
Returns the specified secondary credential. It is incompatible with the deprecated non-Ex versions, ie.the values saved with the non-Ex form of the call cannot be retrieved by the Ex version and vice-versa.
name - The String that contains the name of the credential the user would like to retrieve.
String that contains the specified credential.
SDKException - This is thrown if the process is unsuccessful.
void setSecondaryCredentialEx(java.lang.String name,
java.lang.String value)
throws SDKException
Set the new value to the specified secondary credential or create a new one if the credential specified does not exist. This call internally encrypt the value saved to the repository. It is incompatible with the deprecated non-Ex versions, ie.the values saved with the non-Ex form of the call cannot be retrieved by the Ex version and vice-versa.
name - The String that contains the name that the new secondary credential should be stored under.value - The String that contains the new value of the secondary credential.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getUserDesc()
throws SDKException
Returns a description of the user currently logged onto the CMS.
String containing a description of the user currently logged
onto the CMS.
SDKException - This is thrown if the process is unsuccessful.
int getUserID()
throws SDKException
Returns the user's unique identifier.
int containing the user's unique identifier.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getUserCUID()
throws SDKException
Returns the user's CUID
String containing the user's CUID.
SDKException - This is thrown if the process is unsuccessful.
java.lang.String getUserName()
throws SDKException
Returns the name of the user.
String containing the name of the user.
SDKException - This is thrown if the process is unsuccessful.
boolean isUserDefaultLocale()
throws SDKException
boolean that determines whether the Locale is a userDefaultLocale.
true if the current user's locale is the default locale, and false otherwise.
SDKException - This is thrown if the process is unsuccessful.
void setUserDefaultLocale()
throws SDKException
Sets the current user's locale to the default locale.
SDKException - This is thrown if the process is unsuccessful.
java.util.Locale getLocale()
throws SDKException
Returns the user's locale.
Locale that contains the user's locale.
SDKException - This is thrown if the process is unsuccessful.
void setLocale(java.util.Locale value)
throws SDKException
Sets the user's locale.
value - A Locale that specifies the user's locale.
SDKException - This is thrown if the process is unsuccessful.
java.util.Locale getPreferredViewingLocale()
throws SDKException
Returns the user's preferred viewing locale.
Locale that contains the user's preferred viewing locale.
SDKException - This is thrown if the process is unsuccessful.
void setPreferredViewingLocale(java.util.Locale value)
throws SDKException
Sets the user's preferred viewing locale.
value - A Locale that specifies the user's preferred viewing locale.
SDKException - This is thrown if the process is unsuccessful.
void removePreferredViewingLocale()
throws SDKException
remove user's preferred viewing locale.
SDKException - This is thrown if the process is unsuccessful.
java.util.TimeZone getTimeZone()
throws SDKException
Returns the user's time zone.
TimeZone that contains the user's time zone.
SDKException - This is thrown if the process is unsuccessful.
void setTimeZone(java.util.TimeZone value)
throws SDKException
Sets the user's time zone.
value - A TimeZone that specifies the user's time zone.
SDKException - This is thrown if the process is unsuccessful.
int getPersonalObjectID(java.lang.String kind)
throws SDKException
Returns the personal object ID for this user based on the kind. The kind represents the InfoObject type.
For more information on kind, see the CeKind class.
kind - A String that represents the object type.
SDKException - This is thrown if the process is unsuccessful.
void associateWithPrincipal(ITrustedPrincipal credential)
throws SDKException
credential - the credential this user is supposed to be associated with
SDKException - Thrown if the assocation could not be made in the back end
int getTenantID()
throws SDKException
SDKException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||