public interface IUsrGrp extends IIdEvaluator
Modifier and Type | Method and Description |
---|---|
void |
addGroup(IGroup group)
Adds a group
|
void |
addUser(IUser user)
Adds a user identity to the LDAP server.
|
java.lang.String |
getDescription()
Retrieves the description
|
IGroup |
getGroup(java.lang.String groupid)
Retrieves an identity group
|
java.lang.String |
getId()
Retrieves usr/grp manager identifier.
|
IUser |
getUser(java.lang.String userid)
Retrieves an identity
|
void |
modifyGroup(IGroup group)
Modifies a group
|
void |
modifyUser(IUser user)
Modifies user.
|
void |
removeGroup(java.lang.String name)
Removes a group
|
void |
removeUser(java.lang.String userid)
Removes a user.
|
evaluate
java.lang.String getId()
java.lang.String getDescription()
IUser getUser(java.lang.String userid) throws EUsrGrpException
userid
- the user id for the given userEUsrGrpException
void addUser(IUser user) throws EUsrGrpException, netscape.ldap.LDAPException
User user = new User("joe");
user.setFullName("joe doe");
user.setPassword("secret");
usrgrp.addUser(user);
user
- an user interfaceEUsrGrpException
- thrown when some of the user attribute values
are nullnetscape.ldap.LDAPException
- thrown when the LDAP internal database is not
available, or the add operation failedvoid removeUser(java.lang.String userid) throws EUsrGrpException
userid
- the user id for the given userEUsrGrpException
- thrown when failed to remove uservoid modifyUser(IUser user) throws EUsrGrpException
user
- the user interface which contains the modified informationEUsrGrpException
- thrown when failed to modify userIGroup getGroup(java.lang.String groupid)
groupid
- the given group id.void addGroup(IGroup group) throws EUsrGrpException
group
- the given groupEUsrGrpException
- thrown when failed to add the group.void modifyGroup(IGroup group) throws EUsrGrpException
group
- the given group contains the new information for modification.EUsrGrpException
- thrown when failed to modify the group.void removeGroup(java.lang.String name) throws EUsrGrpException
name
- the group nameEUsrGrpException
- thrown when failed to remove the given
group.