|
Novell exteNd Director 5.2 API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The directory manager provides access to user and group repositories, as well as authentication functionality. The directory manager manages a realm that provides read access to a user and group repository
| Method Summary | |
Principal |
authUserPassword(EbiContext context,
String realm,
String user,
String password)
Authenticates a user with specified userid, password, and realm name. |
EbiRealmUser |
convertPrincipal(EbiContext context,
Principal princ)
Converts an app server principal to EbiRealmUser/EbiRealmGroup. |
void |
flushCache(EbiContext context,
String realm)
Flushes both group and user caches in the directory service. |
void |
flushGroupCache(EbiContext context,
String realm)
Flushes the group caches. |
void |
flushUserCache(EbiContext context,
String realm)
Flushes the user caches. |
void |
flushUserInCache(EbiContext ctx,
String realm,
String username)
Flushes the specified user from the specified realm cache. |
Collection |
getAncestorContainers(EbiContext context,
EbiRealmPrincipal prin)
Enumerates any ancestors, all the way up to the Root Realm Container, of the specified container. |
Principal |
getAnonymous(String realm)
Returns the "anonymous" principal from the specified realm |
Principal |
getAuthenticatedUser(EbiContext context,
String realm)
Returns the authenticated user from the session or request using the specified realm |
Collection |
getChildren(EbiContext context,
EbiRealmContainer container,
boolean getSubcontainers,
boolean getUsers)
Enumerates the child objects (immediate descendants) of a specific Realm Container. |
Collection |
getConfiguredRealms()
Retrieves a Collection of realm names from the DirectoryService. |
Collection |
getDescendants(EbiContext context,
EbiRealmContainer container,
boolean getSubcontainers,
boolean getUsers)
Enumerates the descendant objects of a specific Realm Container. |
EbiRealmUser |
getEbiRealmUser(EbiContext context,
String username,
String uniqueID,
String userType)
Creates an EbiRealmUser/EbiRealmGroup principal. |
Group |
getGroup(EbiContext context,
String realm,
String name)
Returns a group principal for the specified group principal name from the specified realm. |
Collection |
getGroupMembershipList(EbiContext context,
String realm,
Principal userPrinc)
Returns a collection of groups for the specified user principal from the specified realm. |
Collection |
getGroupMembershipList(EbiContext context,
String realm,
String user)
Returns a collection of groups for the specified user from the specified realm. |
Collection |
getGroups(EbiContext context,
int beginIndex,
int endIndex)
Returns a collection of group principals that fall within the specified range from the combined set of realm groups. |
Collection |
getGroups(EbiContext context,
String realm)
Returns a collection of groups from the specified realm. |
String |
getManagerName()
Returns the manager name. |
EbiRealmContainer |
getParentContainer(EbiContext context,
EbiRealmPrincipal prin)
Gets the parent container for a specific Realm Container. |
String |
getPrimaryRealmName()
Gets the name of the primary realm. |
EbiRealmContainer |
getRealmContainer(EbiContext context,
String name)
Gets a Realm Container, given its distinguished name. |
Collection |
getRealmGroups(EbiContext context,
String realm)
Gets the groups from a specified realm that do not have parent groups. |
EbiRealmUser |
getRealmUser(EbiContext context,
String name)
Gets a Realm User, given the user's distinguished name. |
EbiRealmContainer |
getRootContainer(EbiContext context)
Gets the Root Container within the directory hierarchy. |
int |
getTotalGroups(EbiContext context)
Returns the total number of groups from the configured realms. |
int |
getTotalGroups(EbiContext context,
String realm)
Returns the total number of groups from the specified realm. |
int |
getTotalUsers(EbiContext context)
Returns the total number of users from the configured realms. |
int |
getTotalUsers(EbiContext context,
String realm)
Returns the total number of users from the specified realm. |
Principal |
getUser(EbiContext context,
String realm,
String name)
Returns a user principal for the specified principal name from the specified realm. |
Collection |
getUsers(EbiContext context,
int beginIndex,
int endIndex)
Returns a collection of user principals that fall within the specified range from the combined set of realm users. |
Collection |
getUsers(EbiContext context,
String realm)
Returns a collection of user principals from the specified realm. |
boolean |
isAnonymous(Principal princ,
String realm)
Checks to see if a principal is "anonymous" in the specified realm. |
boolean |
isContainerSupported(String realm)
Checks to see if directory containers are supported by the specified realm. |
boolean |
isDescendant(EbiContext context,
EbiRealmContainer container,
Principal prin)
Checks to see if the specified principal is a descendant of the specified Realm Container. |
boolean |
isDynamicGroupSupported(String realm)
Checks to see if the realm supports dynamic groups. |
boolean |
isGroupQuerySupported(String realm)
Checks to see if the realm supports group queries. |
boolean |
isNestedGroupSupported(String realm)
Checks to see if the realm supports nested groups. |
boolean |
isUserQuerySupported(String realm)
Checks to see if the realm supports user queries. |
boolean |
isValidUserID(String realm,
String userID)
Checks to see if the specified user ID contains valid characters for the specified realm. |
boolean |
isWriteableRealm(String realm)
Tests to see if the realm specified by a realm name is configured as the writeable realm |
void |
logoff(EbiContext context,
String realm)
Logs off the current user from the session |
| Methods implemented from interface com.sssw.fw.directory.api.EbiWriteableRealm |
addGroup,
addUser,
removeGroup,
removeUser |
| Methods implemented from interface com.sssw.fw.directory.api.EbiRealm |
authUserPassword,
getAnonymous,
getAuthenticatedUser,
getChildGroups,
getEbiRealmUserByUniqueID,
getEbiRealmUsersByUniqueIDs,
getGroup,
getGroupMembershipList,
getGroups,
getGroups,
getParentGroups,
getRealmGroups,
getRealmName,
getUser,
getUsers,
getUsers,
isAnonymous,
isContainerSupported,
isDynamicGroupSupported,
isGroupQuerySupported,
isNestedGroupSupported,
isUserQuerySupported,
isValidUserID,
logoff |
| Method Detail |
public Collection getUsers(EbiContext context,
String realm)
throws EboException
context - an EbiContext object.realm - a name of the specified realm.
public Collection getUsers(EbiContext context,
int beginIndex,
int endIndex)
throws EboException
context - an EbiContext object.beginIndex - the start index in the range of users to retrieve (inclusive)endIndex - the end index in the range of users to retrieve (inclusive)
public Principal getUser(EbiContext context,
String realm,
String name)
throws EboException
context - an EbiContext object.realm - a name of the specified realm.name - a principal name.
public Collection getGroups(EbiContext context,
String realm)
throws EboException
context - an EbiContext object.realm - a name of the specified realm.
public int getTotalGroups(EbiContext context,
String realm)
throws EboException
context - an EbiContext object.realm - a name of the specified realm.
public int getTotalGroups(EbiContext context)
throws EboException
context - an EbiContext object.
public int getTotalUsers(EbiContext context,
String realm)
throws EboException
context - an EbiContext object.realm - a name of the specified realm.
public int getTotalUsers(EbiContext context)
throws EboException
context - an EbiContext object.
public Collection getGroups(EbiContext context,
int beginIndex,
int endIndex)
throws EboException
context - an EbiContext object.beginIndex - the start index in the range of groups to retrieve (inclusive)endIndex - the end index in the range of groups to retrieve (inclusive)
public Group getGroup(EbiContext context,
String realm,
String name)
throws EboException
context - an EbiContext object.realm - a name of the specified realm.name - a group principal name.
public Collection getGroupMembershipList(EbiContext context,
String realm,
Principal userPrinc)
throws EboException
context - an EbiContext object.realm - a name of the specified realm.userPrinc - a user principal.
public Collection getGroupMembershipList(EbiContext context,
String realm,
String user)
throws EboException
context - an EbiContext object.realm - a name of the specified realm.user - a user name.
public Principal authUserPassword(EbiContext context,
String realm,
String user,
String password)
throws EboUnrecoverableSystemException,
EboSecurityException
context - an EbiContext object.realm - a name for the specified realm.user - an user identifier.password - a user password.
public EbiRealmUser convertPrincipal(EbiContext context,
Principal princ)
throws EboException
context - an EbiContext object.princ - an app server principal.
public EbiRealmUser getEbiRealmUser(EbiContext context,
String username,
String uniqueID,
String userType)
context - an EbiContext object.username - a principal name.uniqueID - a unique identifier for the principal.userType - whether it is a user or group principal.public String getManagerName()
public Collection getConfiguredRealms()
public boolean isWriteableRealm(String realm)
realm - the name of a realm to be checkedpublic String getPrimaryRealmName()
public boolean isAnonymous(Principal princ,
String realm)
throws EboException
princ - the principal to checkrealm - the realm name for the specified realm to check
public Principal getAnonymous(String realm)
throws EboException
public Collection getRealmGroups(EbiContext context,
String realm)
throws EboException
context - an EbiContext object.realm - name of the specified realm, if null, primary realm is used.public boolean isNestedGroupSupported(String realm)
realm - name of the specified realm, if null, primary realm is used.public boolean isGroupQuerySupported(String realm)
realm - name of the specified realm, if null, primary realm is used.public boolean isUserQuerySupported(String realm)
realm - name of the specified realm, if null, primary realm is used.public boolean isDynamicGroupSupported(String realm)
realm - name of the specified realm, if null, primary realm is used.
public void flushCache(EbiContext context,
String realm)
throws EboException
context - an EbiContext object.realm - name of the specified realm.
public void flushGroupCache(EbiContext context,
String realm)
throws EboException
context - an EbiContext object.realm - name of the specified realm.
public void flushUserCache(EbiContext context,
String realm)
throws EboException
context - an EbiContext object.realm - name of the specified realm.
public void flushUserInCache(EbiContext ctx,
String realm,
String username)
throws EboException
context - an EbiContext object.realm - name of the specified realm.username - name of the user to flush
public void logoff(EbiContext context,
String realm)
throws EboException
context - an EbiContextrealm - name of the specified realm
public Principal getAuthenticatedUser(EbiContext context,
String realm)
throws EboException
context - an EbiContextrealm - name of the realmpublic boolean isContainerSupported(String realm)
realm - the name of the realm to check; if null, then the primary
realm is used
public EbiRealmContainer getRootContainer(EbiContext context)
throws EboUnrecoverableSystemException
context - context
public Collection getChildren(EbiContext context,
EbiRealmContainer container,
boolean getSubcontainers,
boolean getUsers)
throws EboUnrecoverableSystemException
context - contextcontainer - the parent Realm ContainergetSubcontainers - if true, any child containers are included in the
returned resultsgetUsers - if true, any users are included in the returned results
public Collection getDescendants(EbiContext context,
EbiRealmContainer container,
boolean getSubcontainers,
boolean getUsers)
throws EboUnrecoverableSystemException
context - contextcontainer - the ancestor Realm ContainergetSubcontainers - if true, any descendant containers are included
in the returned resultsgetUsers - if true, any users are included in the returned results
public EbiRealmContainer getParentContainer(EbiContext context,
EbiRealmPrincipal prin)
throws EboUnrecoverableSystemException
context - contextcontainer - the Realm Principal whose parent is to be retrieved
public EbiRealmContainer getRealmContainer(EbiContext context,
String name)
throws EboUnrecoverableSystemException
context - contextname - the distinguished name of the container
public EbiRealmUser getRealmUser(EbiContext context,
String name)
throws EboUnrecoverableSystemException
context - contextname - the user's distinguished name
public boolean isDescendant(EbiContext context,
EbiRealmContainer container,
Principal prin)
throws EboUnrecoverableSystemException
context - contextcontainer - the parent Realm Containerprin - the principal
public Collection getAncestorContainers(EbiContext context,
EbiRealmPrincipal prin)
throws EboUnrecoverableSystemException
context - contextprin - the Realm Principal whose ancestors are to be
enumerated
public boolean isValidUserID(String realm,
String userID)
realm - the specified realm
|
Novell exteNd Director 5.2 API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||