com.ibm.mm.sdk.common
Class DKUserMgmtICM
- java.lang.Object
com.ibm.mm.sdk.common.dkAbstractUserMgmt
com.ibm.mm.sdk.common.DKUserMgmtICM
All implemented interfaces:
dkUserManagement, java.io.Serializable
- public class DKUserMgmtICM
- extends dkAbstractUserMgmt
- implements java.io.Serializable
See Also:
com.ibm.mm.sdk.common.dkUserMgmt,
Serialized FormField Summary
| Modifier and Type | Field and Description |
|---|---|
|
ACTION_ADD
|
|
ACTION_CHANGE_PSWD
|
|
ACTION_DELETE
|
|
ACTION_UPDATE
|
|
VALID_USERNAME_CHARS
|
Constructor Summary
| Constructor and Description |
|---|
DKUserMgmtICM(dkDatastore ds)
Constructs and initializes an user management
class.
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
add(dkUserDef userDef)
Adds a user object into the datastore.
|
|
add(dkUserGroupDef userGroupDef)
Adds a user group object into the datastore.
|
|
changePassword(java.lang.String newPwd)
Changes the password of the currently logged on user.
|
|
changePassword(java.lang.String userId,java.lang.String newPwd)
Changes the password of a given user-id.
|
|
changePassword(java.lang.String userId,java.lang.String oldPwd,java.lang.String newPwd)
Changes the password of a given user name(user id).
|
|
clearCache()
|
createUserDef()
Create a DKUserDefICM instance
|
|
createUserGroupDef()
Create a DKUserGroupDefICM instance
|
|
|
del(dkUserDef userDef)
Deletes an user object from the datastore.
|
|
del(dkUserGroupDef userGroup)
Deletes an user group object from the datastore.
|
|
delUser(java.lang.String name)
Deletes an user of the specified name from datastore
|
|
delUserGroup(java.lang.String name)
deletes an user group object of the specified name from the datastore
|
|
getAccessLevel()
Deprecated.
|
getDatastore()
Gets the reference to the associated datastore object whose users and
user groups are managed by this object.
|
|
getUserDef(java.lang.String name)
Gets a user object from a cache.
|
|
|
getUserDomain(java.lang.String name)
adminDomain sshi
Gets the user's administrative domain
|
getUserGroupDef(java.lang.String name)
Gets a user group object from a cache.
|
|
|
getUserPrivilege(java.lang.String name)
Gets the user's privilege set code
|
|
isAdminUser(java.lang.String userName)
Check if userName is a system administrative userid
|
|
listActiveUserNames()
Gets a list of active user object names who are currently logged
on to the datastore.
|
|
listActiveUserNames(java.lang.String domainName)
Gets a list of users name who are currently logged on to the specified domain.
|
listGroupsForUser(java.lang.String name)
Get a list of user group objects from the datastore to which this user belongs to
|
|
listUserDefs()
gets a list of user objects defined in the datastore.
|
|
listUserDefs(java.lang.String domainName)
Retrieve list of all users belonging to a domain in the system.
|
|
listUserGroupDefs()
gets a list of user group objects defined in the datastore.
|
|
listUserGroupDefs(java.lang.String domainName)
Gets a list of user group object who are assigned to the specified administrative
domain.
|
|
|
listUserGroupNameDomain()
Gets a list of user group names and related information defined in the datastore for user
groups with names that match the name string that is passed in.
|
|
listUserGroupNameDomain(java.lang.String name)
Gets a list of user group names and related information defined in the datastore for user
groups with names that match the name string that is passed in.
|
|
listUserGroupNames()
Gets a list of user group names defined in the datastore.
|
|
listUserGroupNames(java.lang.String domainName)
Gets a list of user group object names who are assigned to the specified administrative
domain.
|
|
listUserNameDomainDesc()
Gets a list of user names and related information defined in the datastore for users
with names that match the name string that is passed in.
|
|
listUserNameDomainDesc(java.lang.String name)
Gets a list of user names and related information defined in the datastore for users
with names that match the name string that is passed in.
|
|
listUserNames()
Gets a list of user names defined in the datastore.
|
|
listUserNames(java.lang.String domainName)
Gets a list of user object names who are assigned to the specified administrative
domain.
|
listUsersInGroup(java.lang.String name)
Get a list of user object in the specified user group from the datastore
|
|
|
removeUserDef(java.lang.String name)
Removes the specified user from cache.(memory only)
|
retrieveUserDef(java.lang.String name)
Retrieves an user object from the datastore
|
|
retrieveUserFromDB(java.lang.String name)
Force Retrieving an user object from the datastore
|
|
retrieveUserGroupDef(java.lang.String name)
Retrieves an user group object from the datastore
|
|
retrieveUserGroupDef(java.lang.String name,int option)
Retrieves an user group object from the datastore
|
|
retrieveUserGroupFromDB(java.lang.String name)
Retrieves an user group object from the datastore
|
|
retrieveUserGroupFromDB(java.lang.String name,int option)
Retrieves an user group object from the datastore
|
|
|
setDatastore(dkDatastore ds)
Sets the datastore object whose users and user groups are managed by this object.
|
|
update(dkUserDef userDef)
Updates an user object in the datastore.If cache is enabled, it also updated in the cache.
|
|
update(dkUserGroupDef userGroup)
Updates an user group object in the datastore.If cache is enabled, it also updated in the cache.
|
|
update(dkUserGroupDef userGroup,java.util.Vector v,int action)
Updates a user group in the datastore.
|
|
update(dkUserGroupDef userGroup,java.util.Vector v,int action,int option)
Updates a user group in the datastore.
|
|
validateUser(java.lang.String userName,java.lang.String pwd)
Deprecated.
|
| Methods inherited from class com.ibm.mm.sdk.common.dkAbstractUserMgmt |
|---|
addToGroup, addUser, addUser, addUserGroup, addUserGroup, deleteUserDef, deleteUserGroupDef, listUserGroups, listUsers, removeFromGroup |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
ACTION_ADD
- public static final short ACTION_ADD
See Also:
ACTION_UPDATE
- public static final short ACTION_UPDATE
See Also:
ACTION_DELETE
- public static final short ACTION_DELETE
See Also:
ACTION_CHANGE_PSWD
- public static final short ACTION_CHANGE_PSWD
See Also:
VALID_USERNAME_CHARS
- public static final java.lang.String VALID_USERNAME_CHARS
See Also:
Constructor Detail
DKUserMgmtICM
- public DKUserMgmtICM(dkDatastore ds)
Parameters:
ds - the owner datastore object Throws:
DKException - fails to initialize management objects See Also:
dkDatastoreDef.datastoreAdmin(),
datastoreAdmin#authorizationMgmtMethod Detail
setDatastore
- public void setDatastore(dkDatastore ds)
Sets the datastore object whose users and user groups are managed by this object.
Specified by:
setDatastore in interface dkUserManagement
Overrides:
setDatastore in class dkAbstractUserMgmt
Parameters:
ds - dkDatastore - datastore object getDatastore
- public dkDatastore getDatastore( )
Gets the reference to the associated datastore object whose users and
user groups are managed by this object.
Specified by:
getDatastore in interface dkUserManagement
Overrides:
getDatastore in class dkAbstractUserMgmt
Returns:
objecttarget datastore object whose users and user groups are managed by this obect.
listUserDefs
- public dkCollection listUserDefs( )
- throws DKException
- java.lang.Exception
gets a list of user objects defined in the datastore. If the cache is enabled
and if the list is available in the memory then the list is returned from the memory.
If not the list is queried from the datastore and cached.
Groups to which the user belongs are not part of the user object
returned in the collection.
Note: If just the user names are required, listUserNames method can be used
Specified by:
listUserDefs in interface dkUserManagement
Overrides:
listUserDefs in class dkAbstractUserMgmt
Returns:
a collection of DKUserDefICM objects.
Throws:
DKException - if error occurs java.lang.Exception - if error occurs See Also:
listUserNames.listActiveUserNames
- public java.lang.String[] listActiveUserNames( )
- throws DKException
- java.lang.Exception
Gets a list of active user object names who are currently logged
on to the datastore.
Returns:
A string array of user names who are currently logged on to the datastore.
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listActiveUserNames
- public java.lang.String[] listActiveUserNames( java.lang.String domainName)
- throws DKException
- java.lang.Exception
Gets a list of users name who are currently logged on to the specified domain.
Parameters:
domainName - domain name whose active users are to be listed. Returns:
A string array of user names who are currently logged on to the specified domain.
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listUserNames
- public java.lang.String[] listUserNames( )
- throws DKException
- java.lang.Exception
Gets a list of user names defined in the datastore. If the cache is enabled
and if the list is available in the memory then the list is returned from the
memory. If not the list is queried from the datastore and cached.
Returns:
a list of user object names
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listUserNames
- public java.lang.String[] listUserNames( java.lang.String domainName)
- throws DKException
- java.lang.Exception
Gets a list of user object names who are assigned to the specified administrative
domain. If the cache is enabled and if the list is available in the memory then the list
is returned from the memory. If not the list is queried from the datastore and cached.
Parameters:
domainName - Adminstrative domain name from which the user names are to be listed. Returns:
A string array of list of user object names who are assigned to the specified administrative domain.
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listUserNameDomainDesc
- public java.util.Vector listUserNameDomainDesc( )
- throws DKException
- java.lang.Exception
Gets a list of user names and related information defined in the datastore for users
with names that match the name string that is passed in. This information is always
retrieved from library server, and no cache is saved.
Returns:
a vector of String arrays. Each String array contains information of a user, and
has five pieces of information:
- userId
- userName
- domainId
- userPrivCode
- LDAPInfo
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listUserNameDomainDesc
- public java.util.Vector listUserNameDomainDesc( java.lang.String name)
- throws DKException
- java.lang.Exception
Gets a list of user names and related information defined in the datastore for users
with names that match the name string that is passed in. This information is always
retrieved from library server, and no cache is saved.
Parameters:
name - the full user name, or any substring of the user name, followed by a wildcard
character, "%". For example, "Rob%" will cause the API to return user name related
information for all user names that start with "Rob". Returns:
a vector of String arrays. Each String array contains information of a user, and
has five pieces of information:
- userId
- userName
- domainId
- userPrivCode
- LDAPInfo
Throws:
DKException - if error occurs java.lang.Exception - if error occurs add
- public void add(dkUserDef userDef)
- throws DKAlreadyExistException
- DKException
- java.lang.Exception
Adds a user object into the datastore. If cache is enabled, it added to the cache.
Note: The user name will be uppercased.
Parameters:
userDef - -- an user object to be added to the datastore. Throws:
DKAlreadyExistException - if user object already exists DKException - if error occurs java.lang.Exception - if error occurs update
- public void update(dkUserDef userDef)
- throws DKNotExistException
- DKException
- java.lang.Exception
Updates an user object in the datastore.If cache is enabled, it also updated in the cache.
Note: The user name cannot be updated.
Note: Password can not updated if the user use system define password.
Parameters:
userDef - -- an user object to be updated in the datastore Throws:
DKNotExistException - if the specified user does not exist. DKException - if error occurs java.lang.Exception - if error occurs retrieveUserDef
- public dkUserDef retrieveUserDef( java.lang.String name)
- throws DKException
- java.lang.Exception
Retrieves an user object from the datastore
Specified by:
retrieveUserDef in interface dkUserManagement
Overrides:
retrieveUserDef in class dkAbstractUserMgmt
Parameters:
name - the name of user to be retrieved Returns:
user defintion
Throws:
DKException - if error occurs java.lang.Exception - if error occurs retrieveUserFromDB
- public dkUserDef retrieveUserFromDB( java.lang.String name)
- throws DKException
- java.lang.Exception
Force Retrieving an user object from the datastore
Parameters:
name - the name of user to be retrieved Throws:
DKException - if error occurs java.lang.Exception - if error occurs getUserDef
- public dkUserDef getUserDef(java.lang.String name)
- throws DKException
- java.lang.Exception
Gets a user object from a cache. (memory only)
Note: the case of the user name is ignored.
Parameters:
name - - the name of the user to be retrieved Throws:
DKException - if error occurs java.lang.Exceptiondel
- public void del(dkUserDef userDef)
- throws DKNotExistException
- DKException
- java.lang.Exception
Deletes an user object from the datastore. If cache is enabled, it deleted from the cache.
Parameters:
userDef - -- an user object to be deleted from the datastore. Throws:
DKNotExistException - if the specified user does not exist DKException - if error occurs java.lang.Exception - if error occurs delUser
- public void delUser(java.lang.String name)
- throws DKNotExistException
- DKException
- java.lang.Exception
Deletes an user of the specified name from datastore
Parameters:
name - -- the name of user to be deleted from datastore Throws:
DKNotExistException - if user object does not exists DKException - if error occurs java.lang.Exception - if error occurs See Also:
removeUserDef
- public void removeUserDef(java.lang.String name)
- throws DKNotExistException
- DKException
- java.lang.Exception
Removes the specified user from cache.(memory only)
Parameters:
name - - the name of user Throws:
DKNotExistException - if user object does not exists DKException - if error occurs java.lang.Exception - if error occurs getUserPrivilege
- public long getUserPrivilege(java.lang.String name)
- throws DKException
- java.lang.Exception
Gets the user's privilege set code
Parameters:
name - the user's name whose privilege set code is requested. Returns:
the user's privilege set code
Throws:
DKException - if error occurs java.lang.Exception - if error occurs getUserDomain
- public java.lang.String getUserDomain( java.lang.String name)
- throws DKException
- java.lang.Exception
adminDomain sshi
Gets the user's administrative domain
Parameters:
name - the user's name whose administrative domain is requested. Returns:
an administrative domain name to which the specified belongs to.
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listUserGroupDefs
- public dkCollection listUserGroupDefs( )
- throws DKException
- java.lang.Exception
gets a list of user group objects defined in the datastore. If the cache is enabled
and if the list is available in the memory then the list is returned from the memory.
If not the list is queried from the datastore and cached..
Note: If just the user group names are required, listUserGroupNames method can be used
Specified by:
listUserGroupDefs in interface dkUserManagement
Overrides:
listUserGroupDefs in class dkAbstractUserMgmt
Returns:
a collection of DKUserGroupDefICM objects.
Throws:
DKException - if error occurs java.lang.Exception - if error occurs See Also:
listUserGroupNames.listUserGroupDefs
- public dkCollection listUserGroupDefs( java.lang.String domainName)
- throws DKException
- java.lang.Exception
Gets a list of user group object who are assigned to the specified administrative
domain. If the cache is enabled and if the list is available in the memory then the list
is returned from the memory. If not the list is queried from the datastore and cached.
Parameters:
domainName - Adminstrative domain name from which the user groups are to be listed. Returns:
A collection of DKUserGroupDefICM objects who belong to the specified domain.
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listUserGroupNames
- public java.lang.String[] listUserGroupNames( )
- throws DKException
- java.lang.Exception
Gets a list of user group names defined in the datastore. If the cache is enabled
and if the list is available in the memory then the list is returned from the
memory. If not the list is queried from the datastore and cached.
Returns:
A string array of user group object names
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listUserGroupNameDomain
- public java.util.Vector listUserGroupNameDomain( )
- throws DKException
- java.lang.Exception
Gets a list of user group names and related information defined in the datastore for user
groups with names that match the name string that is passed in. This information is always
retrieved from library server, and no cache is saved.
Returns:
a vector of String arrays. Each String array contains information of a user group,
and has three pieces of information:
- userGroupId
- userGroupDomainId
- userGroupName
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listUserGroupNameDomain
- public java.util.Vector listUserGroupNameDomain( java.lang.String name)
- throws DKException
- java.lang.Exception
Gets a list of user group names and related information defined in the datastore for user
groups with names that match the name string that is passed in. This information is always
retrieved from library server, and no cache is saved.
Parameters:
name - the full user group name, or any substring of the user group name, followed by
a wildcard character, "%". For example, "Rob%" will cause the API to return user group name
related information for all user group names that start with "Rob". Returns:
a vector of String arrays. Each String array contains information of a user group,
and has three pieces of information:
- userGroupId
- userGroupDomainId
- userGroupName
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listUserGroupNames
- public java.lang.String[] listUserGroupNames( java.lang.String domainName)
- throws DKException
- java.lang.Exception
Gets a list of user group object names who are assigned to the specified administrative
domain. If the cache is enabled and if the list is available in the memory then the list
is returned from the memory. If not the list is queried from the datastore and cached.
Parameters:
domainName - Adminstrative domain name from which the user group names are to be listed. Returns:
A string array of list of user group object names who are assigned to the specified administrative domain.
Throws:
DKException - if error occurs java.lang.Exception - if error occurs add
- public void add(dkUserGroupDef userGroupDef)
- throws DKAlreadyExistException
- DKException
- java.lang.Exception
Adds a user group object into the datastore. If cache is enabled, it added to the cache.
Note: The user group name will be uppercased.
Parameters:
userGroupDef - -- an user group object to be added to the datastore. Throws:
DKAlreadyExistException - if user group object already exists DKException - if error occurs java.lang.Exception - if error occurs del
- public void del(dkUserGroupDef userGroup)
- throws DKNotExistException
- DKException
- java.lang.Exception
Deletes an user group object from the datastore. If cache is enabled, it deleted from the cache.
Throws:
DKNotExistException - if the specified user group object does not exist DKException - if error occurs java.lang.Exception - if error occurs retrieveUserGroupDef
- public dkUserGroupDef retrieveUserGroupDef( java.lang.String name,
- int option)
- throws DKException
- java.lang.Exception
Retrieves an user group object from the datastore
Specified by:
retrieveUserGroupDef in interface dkUserManagement
Overrides:
retrieveUserGroupDef in class dkAbstractUserMgmt
Parameters:
name - the name of user group to be retrieved option - - option when retrieve user group def Returns:
user defintion
Throws:
DKException - if error occurs java.lang.Exception - if error occurs retrieveUserGroupDef
- public dkUserGroupDef retrieveUserGroupDef( java.lang.String name)
- throws DKException
- java.lang.Exception
Retrieves an user group object from the datastore
Specified by:
retrieveUserGroupDef in interface dkUserManagement
Overrides:
retrieveUserGroupDef in class dkAbstractUserMgmt
Parameters:
name - the name of user group to be retrieved Returns:
user defintion
Throws:
DKException - if error occurs java.lang.Exception - if error occurs retrieveUserGroupFromDB
- public dkUserGroupDef retrieveUserGroupFromDB( java.lang.String name,
- int option)
- throws DKException
- java.lang.Exception
Retrieves an user group object from the datastore
Parameters:
name - the name of user group to be retrieved Throws:
DKException - if error occurs java.lang.Exception - if error occurs retrieveUserGroupFromDB
- public dkUserGroupDef retrieveUserGroupFromDB( java.lang.String name)
- throws DKException
- java.lang.Exception
Retrieves an user group object from the datastore
Parameters:
name - the name of user group to be retrieved Throws:
DKException - if error occurs java.lang.Exception - if error occurs update
- public void update(dkUserGroupDef userGroup,
- java.util.Vector v,
- int action)
- throws DKNotExistException
- DKException
- java.lang.Exception
Updates a user group in the datastore. Based on the value of the action argument,
users in the v argument are either added or deleted from the group. If action ==
DKUserMgmtICM.ACTION_ADD, then the users in the v argument are added to the group.
If this operation fails (such as a user being added already exists in the group),
DKException is thrown with the following errorId - DK_ICM_MSG_USERGROUP_ADD_FAILED.
If action == DKUserMgmtICM.ACTION_DELETE, users in the v argument are removed from
the group. If this operation fails (such as a user being removed does not belong to
the group), DKException is thrown with the following errorId -
DK_ICM_MSG_USERGROUP_DELETE_FAILED.
Note that in case of failure, the operation is rolled back and NONE of the users
in the vector are added or removed.
Throws:
DKNotExistException - if the specified user group does not exist in the
datastore. DKException - if error occurs java.lang.Exception - if error occurs update
- public void update(dkUserGroupDef userGroup,
- java.util.Vector v,
- int action,
- int option)
- throws DKNotExistException
- DKException
- java.lang.Exception
Updates a user group in the datastore. Based on the value of the action argument,
users in the v argument are either added or deleted from the group. If action ==
DKUserMgmtICM.ACTION_ADD, then the users in the v argument are added to the group.
If this operation fails (such as a user being added already exists in the group),
DKException is thrown with the following errorId - DK_ICM_MSG_USERGROUP_ADD_FAILED.
If action == DKUserMgmtICM.ACTION_DELETE, users in the v argument are removed from
the group. If this operation fails (such as a user being removed does not belong to
the group), and DK_CM_DO_NOT_ROLLBACK_ON_ERROR bit mask is set in the option argument,
the transaction is still COMMITTED without the user in error. However, at the end of
the operation DKException will be thrown with the following errorId -
DK_ICM_MSG_USERGROUP_DELETE_FAILED. If DK_CM_DO_NOT_ROLLBACK_ON_ERROR bitmask is not
set in the option argument, the operation fails and none of the users are removed
from the group. DKException is thrown with the following errorId -
DK_ICM_MSG_USERGROUP_DELETE_FAILED. Note that the bitmask DK_CM_DO_NOT_ROLLBACK_ON_ERROR
associated with option is applicable only if the value for action is
DKUserMgmtICM.ACTION_DELETE.
Throws:
DKNotExistException - if the specified user group does not exist in the
datastore. DKException - if error occurs java.lang.Exception - if error occurs update
- public void update(dkUserGroupDef userGroup)
- throws DKNotExistException
- DKException
- java.lang.Exception
Updates an user group object in the datastore.If cache is enabled, it also updated in the cache.
Note: The user group name cannot be updated.
Throws:
DKNotExistException - if the specified user group object does not exist DKException - if error occurs java.lang.Exception - if error occurs delUserGroup
- public void delUserGroup(java.lang.String name)
- throws DKNotExistException
- DKException
- java.lang.Exception
deletes an user group object of the specified name from the datastore
Specified by:
delUserGroup in interface dkUserManagement
Overrides:
delUserGroup in class dkAbstractUserMgmt
Parameters:
name - -- user group object name to be deleted Throws:
DKNotExistException - if the specified user group object does not exist DKException - if error occurs java.lang.Exception - if error occurs See Also:
getUserGroupDef
- public dkUserGroupDef getUserGroupDef( java.lang.String name)
- throws DKException
- java.lang.Exception
Gets a user group object from a cache. (memory only)
Note: the case of the user group name is ignored.
Parameters:
name - - the name of the user group to be retrieved Throws:
DKException - if error occurs java.lang.Exception - if error occurs listUsersInGroup
- public dkCollection listUsersInGroup( java.lang.String name)
- throws DKException
- java.lang.Exception
Get a list of user object in the specified user group from the datastore
Parameters:
name - the name of the usre group Returns:
A collection of DKUserDefICM object
Throws:
DKException - if error occurs java.lang.Exception - if error occurs listGroupsForUser
- public dkCollection listGroupsForUser( java.lang.String name)
- throws DKException
- java.lang.Exception
Get a list of user group objects from the datastore to which this user belongs to
Parameters:
name - -- the name of the user whose groups are to be retrieved from the datastore Returns:
A collection of DKUserGroupDefICM object which this user belongs to
Throws:
DKException - if error occurs java.lang.Exception - if error occurs changePassword
- public void changePassword(java.lang.String userId,
- java.lang.String oldPwd,
- java.lang.String newPwd)
- throws DKException
- java.lang.Exception
Changes the password of a given user name(user id).
The password string can be 31 characters long
Note: the old password is ignored.
Specified by:
changePassword in interface dkUserManagement
Overrides:
changePassword in class dkAbstractUserMgmt
changePassword
- public void changePassword(java.lang.String userId,
- java.lang.String newPwd)
- throws DKException
- java.lang.Exception
Changes the password of a given user-id. Administrator only function
The password string can be 31 characters long
changePassword
- public void changePassword(java.lang.String newPwd)
- throws DKException
- java.lang.Exception
Changes the password of the currently logged on user.
Note: This methods is similar to the changePassword(String userId, String newPwd) method
validateUser
- public void validateUser(java.lang.String userName,
- java.lang.String pwd)
- throws DKNotExistException
- DKException
- java.lang.Exception
Deprecated.
Check whether the user exist or not in the datastore.
Throws:
DKNotExistException - if the specified user does not exist DKException - if error occurs java.lang.Exception - if error occurs getAccessLevel
- public int getAccessLevel()
- throws java.lang.Exception
Deprecated.
Get user's access level
Regular User : 0
Administrative User : 1
Throws:
java.lang.ExceptionisAdminUser
- public boolean isAdminUser(java.lang.String userName)
- throws DKNotExistException
- DKException
- java.lang.Exception
Check if userName is a system administrative userid
Specified by:
isAdminUser in interface dkUserManagement
Overrides:
isAdminUser in class dkAbstractUserMgmt
Parameters:
userName - user name Returns:
true if user is administrative user, false otherwise
Throws:
DKNotExistException - if the user name is not exist in the system DKException - if internal error occurs in EIP server java.lang.Exception - if there is an error occurs on the serser and this method
is called from client via RMI. clearCache
- public void clearCache()
- throws DKException
- java.lang.Exception
Description copied from class:
dkAbstractUserMgmt
Clear datastore cache
Note:DKUsageError exception thrown if method is not implemented
Specified by:
clearCache in interface dkUserManagement
Overrides:
clearCache in class dkAbstractUserMgmt
createUserDef
- public dkUserDef createUserDef( )
Create a DKUserDefICM instance
Specified by:
createUserDef in interface dkUserManagement
Overrides:
createUserDef in class dkAbstractUserMgmt
Returns:
userDef object
createUserGroupDef
- public dkUserGroupDef createUserGroupDef( )
Create a DKUserGroupDefICM instance
Specified by:
createUserGroupDef in interface dkUserManagement
Overrides:
createUserGroupDef in class dkAbstractUserMgmt
Returns:
userGroupDef object
listUserDefs
- public dkCollection listUserDefs( java.lang.String domainName)
- throws DKException
- java.lang.Exception
Retrieve list of all users belonging to a domain in the system. The collection
of users returned are populated with all its properties. Groups to which the
user belongs are not part of the user object returned in the collection.
Parameters:
domainName - name of domain whoe users are to be fetched Returns:
collection of user groups- DKUserGroupDefICM objects
Throws:
DKNotExistException - if the user name is not exist in the system DKException - if internal error occurs java.lang.Exception - if there is an error occurs on the serser and this method
is called from client via RMI.
It initializes authorizationMgmt objects from datastoreAdmin class for handling objects related to user and user group