|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUsrGrp
This interface defines the basic capabilities of a usr/group manager. (get/add/modify/remove users or groups)
Method Summary | |
---|---|
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. |
Methods inherited from interface com.netscape.certsrv.usrgrp.IIdEvaluator |
---|
evaluate |
Method Detail |
---|
java.lang.String getId()
java.lang.String getDescription()
IUser getUser(java.lang.String userid) throws EUsrGrpException
userid
- the user id for the given user
EUsrGrpException
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 interface
EUsrGrpException
- thrown when some of the user attribute values
are null
netscape.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 user
EUsrGrpException
- thrown when failed to remove uservoid modifyUser(IUser user) throws EUsrGrpException
user
- the user interface which contains the modified information
EUsrGrpException
- 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 group
EUsrGrpException
- 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 name
EUsrGrpException
- thrown when failed to remove the given
group.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |