|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IUserBase
The IUserBase interface is used to determine the specific behavior of each user. It is the top
level object in the User plugin, and it is returned by default when you use the PluginInterface
property.
Use the IUser interface to change the password settings for a specific user. Use the properties
in the com.crystaldecisions.sdk.plugin.authentication.enterprise package to set the global password options for
native Enterprise users. Password options for third-party accounts are set through your external
systems.
| Nested Class Summary | |
|---|---|
static interface |
IUserBase.RecentActionType
This interface defines types of action recently performed by this user and will be used to retrieve list of documents being acted on. |
| Field Summary | |
|---|---|
static int |
CONCURRENT
This constant specifies the user has a pooled connection that is shared by other users. |
static java.lang.String |
KIND
The Kind used to query for User objects. |
static int |
NAMED
This constant specifies the user has a reserved connection. |
static java.lang.String |
PROGID
The ProgID for the User Class. |
| Method Summary | |
|---|---|
void |
addSecondaryCredential(java.lang.String secondCred,
java.lang.String password)
Adds a second credential for this user. |
void |
changePassword(java.lang.String oldPassword,
java.lang.String newPassword)
Changes the password, but only if the old password matches the user's current password. |
IUserAliases |
getAliases()
Returns the collection of aliases for this user. |
int |
getConnection()
Returns how the user is licensed. |
IMappedAttributes |
getCustomMappedAttributes()
Get the custom mapped attributes |
java.lang.String |
getEmailAddress()
Gets user's email address |
java.util.Set |
getExcludedAlerts()
Returns the IDs of all the events for which this user will be excluded from receiving alert notifications. |
int |
getFavoritesFolderID()
Returns the ID of the user's Favorites Folder. |
java.lang.String |
getFullName()
Returns the full name of the user. |
java.util.Set |
getGroups()
Returns a collection of the groups that the user belongs to. |
int |
getInboxID()
Returns the ID of the user's Inbox. |
java.lang.String |
getLicenseRestrictionCUID()
Returns the license restriction for this user. |
java.util.Locale |
getLocale()
Returns the Product Locale of the user. |
int |
getPersonalCategoryID()
Returns the ID of the user's Personal Category. |
java.util.Locale |
getPreferredViewingLocale()
Returns the Preferred Viewing Locale of the user. |
java.lang.String |
getProfileString(java.lang.String name)
Gets a string value from the user's profile, given a specified name. |
IReceivedAlertNotifications |
getReceivedAlertNotifications()
Returns a collection of alert notifications that this user has received. |
IRecentDocuments |
getRecentDocuments(int actionType)
Returns a collection of document the user recently acted on with specified action type. |
boolean |
hasCustomMappedAttributes()
Check if SI_CUSTOM_MAPPED_ATTRIBUTES property bag exist |
boolean |
hasSecondaryCredential(java.lang.String secondCred)
Returns a boolean value that indicates whether this user has a particular second credential. |
boolean |
isAttributeBindingEnabled()
Returns a boolean to indicate whether the attribute binding is enabled. |
boolean |
isPasswordChangeAllowed()
Returns whether the user is allowed to change their password. |
boolean |
isPasswordExpiryAllowed()
Returns whether the password expires. |
boolean |
isPasswordToChangeAtNextLogon()
Returns whether the user must change their password at the next logon. |
void |
removeProfileString(java.lang.String name)
Removes a string from the user's profile. |
void |
removeSecondaryCredential(java.lang.String secondCred)
Removes a second credential from this user. |
void |
setAttributeBindingEnabled(boolean isEnabled)
Enables or diables the attribute binding. |
void |
setConnection(int newConnection)
Specifies how the user is licensed. |
void |
setEmailAddress(java.lang.String address)
Sets user's email address |
void |
setFullName(java.lang.String newFullName)
Sets the full name of the user. |
void |
setLicenseRestrictionCUID(java.lang.String restrictionCuid)
Set the license restriction for this user. |
void |
setLocale(java.util.Locale l)
Sets the Product Locale of the user. |
void |
setNewPassword(java.lang.String newPassword)
Sets a new password without requiring an old password. |
void |
setPasswordChangeAllowed(boolean newAllowChangePassword)
Allows the user to change his or her password. |
void |
setPasswordExpiryAllowed(boolean newPasswordExpires)
Sets whether the password expires. |
void |
setPasswordToChangeAtNextLogon(boolean newChangePasswordAtNextLogon)
Forces the user to change the password at the next logon. |
void |
setPreferredViewingLocale(java.util.Locale pvl)
Sets the Preferred Viewing Locale of the user. |
void |
setProfileString(java.lang.String name,
java.lang.String newProfileString)
Adds a string to the user's profile. |
| Field Detail |
|---|
static final java.lang.String KIND
The Kind used to query for User objects.
static final java.lang.String PROGID
The ProgID for the User Class.
| ProgID | CrystalEnterprise.User |
| Query Category | CI_SYSTEMOBJECTS |
| Associated Interface | com.crystaldecisions.sdk.plugin.desktop.user.IUser |
Query syntax:
SELECT | |
SI_CHANGEPASSWORD, SI_FORCE_PASSWORD_CHANGE, SI_NAMEDUSER, SI_PASSWORDEXPIRE, SI_USERFULLNAME | |
FROM | |
CI_SYSTEMOBJECTS | |
WHERE | |
SI_PROGID='CrystalEnterprise.User' | |
The CePropertyIDs named in the SELECT statement are those that are required to access data through the IUser interface. For more information on their associations with the interface's methods, see IUser
static final int NAMED
This constant specifies the user has a reserved connection.
static final int CONCURRENT
This constant specifies the user has a pooled connection that is shared by other users.
| Method Detail |
|---|
java.lang.String getFullName()
throws SDKException
Returns the full name of the user.
String containing the full name of the user.
SDKException - if the corresponding property is not found.void setFullName(java.lang.String newFullName)
Sets the full name of the user.
newFullName - A String containing the full name of the user.boolean isPasswordExpiryAllowed()
Returns whether the password expires.
true if the password expires, false otherwise.void setPasswordExpiryAllowed(boolean newPasswordExpires)
Sets whether the password expires.
newPasswordExpires - true if the password should expire, false
otherwise.boolean isPasswordToChangeAtNextLogon()
Returns whether the user must change their password at the next logon.
true if the user must change their password at next logon,
false otherwise.void setPasswordToChangeAtNextLogon(boolean newChangePasswordAtNextLogon)
Forces the user to change the password at the next logon.
newChangePasswordAtNextLogon - true to force the user to change their
password at next logon, false otherwise.boolean isPasswordChangeAllowed()
Returns whether the user is allowed to change their password.
true if the user is allowed to change their password,
false otherwise.void setPasswordChangeAllowed(boolean newAllowChangePassword)
Allows the user to change his or her password.
newAllowChangePassword - true if the user is allowed to change their
password, false otherwise.int getConnection()
Returns how the user is licensed.
int specifying the user connection type.void setConnection(int newConnection)
Specifies how the user is licensed.
newConnection - An int specifying the user connection type.void setNewPassword(java.lang.String newPassword)
Sets a new password without requiring an old password. This is an administrative function that allows a password to be set without supplying an old password.
newPassword - A String containing the new password.
void changePassword(java.lang.String oldPassword,
java.lang.String newPassword)
Changes the password, but only if the old password matches the user's current password.
oldPassword - A String containing the user's old password.newPassword - A String containing the user's new password.java.util.Set getGroups()
Returns a collection of the groups that the user belongs to. This collection is used for adding or deleting groups that this user belongs to.
Set containing the collection of the groups that the user belongs
to. This Set contains Integer objects containing
the SI_IDs of the groups that this user belongs to.
java.lang.String getProfileString(java.lang.String name)
throws SDKException
Gets a string value from the user's profile, given a specified name.
name - The name of the string to be returned.
String containing the requested string value from the user's profile.
SDKException - if the corresponding property is not found.
void setProfileString(java.lang.String name,
java.lang.String newProfileString)
Adds a string to the user's profile.
name - The name of the string to be added.newProfileString - A String containing the value of the string to be
added to the user's profile.
void removeProfileString(java.lang.String name)
throws SDKException
Removes a string from the user's profile.
name - The name of the string to be removed.
SDKException - if the corresponding property is not found.IUserAliases getAliases()
Returns the collection of aliases for this user.
IUserAliases object containing the aliases for this user.
java.lang.String getEmailAddress()
throws SDKException
SDKException - if the corresponding property is not foundvoid setEmailAddress(java.lang.String address)
address - User's email address
boolean hasSecondaryCredential(java.lang.String secondCred)
throws SDKException
boolean value that indicates whether this user has a particular second credential.
secondCred - A String that contains the particular second credential to check.
boolean value that indicates whether this user has a particular second credential.
SDKException - if the corresponding property is not found.
void addSecondaryCredential(java.lang.String secondCred,
java.lang.String password)
throws SDKException
secondCred - A String that contains the name of the second credential to add.password - A String that contains the password for the second credential to add.
SDKException - if the corresponding property is not found.
void removeSecondaryCredential(java.lang.String secondCred)
throws SDKException
secondCred - A String that contains the name of the second credential to remove.
SDKException - if the corresponding property is not found.
boolean isAttributeBindingEnabled()
throws SDKException
Returns a boolean to indicate whether the attribute binding is enabled.
true if the binding is enabled, false otherwise.
SDKException - This is thrown if the process is unsuccessful.void setAttributeBindingEnabled(boolean isEnabled)
Enables or diables the attribute binding.
isEnabled - true to enable the binding, false to disable
the binding.
int getFavoritesFolderID()
throws SDKException
Returns the ID of the user's Favorites Folder.
int value of the Favorites Folder ID.
SDKException - if the corresponding property is not found.
int getInboxID()
throws SDKException
Returns the ID of the user's Inbox.
int value of the inbox ID.
SDKException - if the corresponding property is not found.
int getPersonalCategoryID()
throws SDKException
Returns the ID of the user's Personal Category.
int value of the Personal Category ID.
SDKException - if the corresponding property is not found.
IRecentDocuments getRecentDocuments(int actionType)
throws SDKException
Returns a collection of document the user recently acted on with specified action type.
actionType - as the type of action.
true a collection of document the user recently acted on with specified
action type .
SDKExceptionjava.util.Locale getPreferredViewingLocale()
Locale as the Preferred Viewing Locale of the user.java.util.Locale getLocale()
Locale as the Product Locale of the user.void setPreferredViewingLocale(java.util.Locale pvl)
Locale - as the Preferred Viewing Locale of the user.void setLocale(java.util.Locale l)
Locale - as the Product Locale of the user.
java.util.Set getExcludedAlerts()
throws SDKException
Set of IDs of excluded alert notifications.
SDKException
IReceivedAlertNotifications getReceivedAlertNotifications()
throws SDKException
IReceivedAlertNotifications object that contains a collection of alert notifications.
SDKExceptionjava.lang.String getLicenseRestrictionCUID()
CeSecurityCUID.LicenseRestriction.ANALYST or CeSecurityCUID.LicenseRestriction.VIEWER.CeSecurityCUID.LicenseRestrictionvoid setLicenseRestrictionCUID(java.lang.String restrictionCuid)
CeSecurityCUID.LicenseRestriction.ANALYST or CeSecurityCUID.LicenseRestriction.VIEWER.
restrictionCuid - The CUID of the license restriction for this user.CeSecurityCUID.LicenseRestrictionIMappedAttributes getCustomMappedAttributes()
IMappedAttributes contains all the attribute values.
If the property bag does not exist, an empty property bag will be created, please call
IUserBase.hasCustomMappedAttributes() to check if property bag exist if you
don't want to create the property bagboolean hasCustomMappedAttributes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||