|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that custom realms need to implement if they wish to provide read only directory services. The directory manager loads instances of realms that implement this interface as well as the sub-interface EbiWriteableRealm.
Method Summary | |
Principal |
authUserPassword(EbiContext context,
String user,
String password)
Authenticates a user using password authentication |
Principal |
getAnonymous()
Returns the "anonymous" principal |
Principal |
getAuthenticatedUser(EbiContext context)
Returns the authenticated user from the session or request |
Collection |
getChildGroups(EbiContext context,
EbiRealmGroup groupPrinc)
Gets a collection of child groups for a specified group. |
Principal |
getEbiRealmUserByUniqueID(EbiContext context,
String uniqueID,
String userType)
Retrieves a Principal based on unique ID. |
Collection |
getEbiRealmUsersByUniqueIDs(EbiContext context,
String[] uniqueIDs,
String userType)
Retrieves a Collection of Principals based on unique IDs. |
Group |
getGroup(EbiContext context,
String name)
Return the specified group |
Collection |
getGroupMembershipList(EbiContext context,
Principal userPrinc)
Returns a collection of Groups that have the specified principal as a member. |
Collection |
getGroups(EbiContext context)
Returns a collection of Groups from the realms configured in the directory service.. |
Collection |
getGroups(EbiContext context,
EbiDirectoryGroupsQuery query)
Returns a collection of Groups from a specified realm or all configured realms. |
Collection |
getParentGroups(EbiContext context,
EbiRealmGroup groupPrinc)
Gets a collection of parent groups for a specified group. |
Collection |
getRealmGroups(EbiContext context)
Gets the groups from a specified realm that do not have parent groups. |
String |
getRealmName()
Returns the name of the realm |
Principal |
getUser(EbiContext context,
String name)
Return the specified user |
Collection |
getUsers(EbiContext context)
Returns a collection of user principals from realms specified in the directory service. |
Collection |
getUsers(EbiContext context,
EbiDirectoryUsersQuery query)
Returns a collection of user principals from a specified realm or all configured realms. |
boolean |
isAnonymous(Principal princ)
Checks to see if a principal is "anonymous". |
boolean |
isContainerSupported()
Checks to see if directory containers are supported by the specified realm. |
boolean |
isDynamicGroupSupported()
Returns true if the realm supports dynamic groups, false otherwise. |
boolean |
isGroupQuerySupported()
Returns true if the realm supports group queries, false otherwise. |
boolean |
isNestedGroupSupported()
Returns true if the realm supports nested groups, false otherwise. |
boolean |
isUserQuerySupported()
Returns true if the realm supports user queries, false otherwise. |
boolean |
isValidUserID(String userID)
Checks to see if the specified user ID contains invalid characters. |
void |
logoff(EbiContext context)
Logs off the current user from the session |
Method Detail |
public String getRealmName()
public Collection getUsers(EbiContext context) throws EboException
context
- an EbiContext object.public Principal getUser(EbiContext context, String name) throws EboException
context
- an EbiContext objectname
- the user id to retrievepublic Collection getGroups(EbiContext context) throws EboException
context
- an EbiContext object.public Group getGroup(EbiContext context, String name) throws EboException
context
- an EbiContext objectname
- the group name to retrievepublic Collection getGroupMembershipList(EbiContext context, Principal userPrinc) throws EboException
context
- an EbiContext object.userPrinc
- a user principal.public Principal authUserPassword(EbiContext context, String user, String password) throws EboUnrecoverableSystemException, EboSecurityException
user
- the user name to authenticatepassword
- the password used as the credentialspublic Principal getEbiRealmUserByUniqueID(EbiContext context, String uniqueID, String userType) throws EboException
context
- an EbiContext objectuniqueID
- the unique ID to use to locate the user/groupuserType
- either a user or group as defined in com.sssw.fw.api.EbiConstantscom.sssw.fw.api.EbiConstants.FW_PRINCIPAL_GROUP
,
com.sssw.fw.api.EbiConstants.FW_PRINCIPAL_USER
public Collection getEbiRealmUsersByUniqueIDs(EbiContext context, String[] uniqueIDs, String userType) throws EboException
context
- an EbiContext objectuniqueIDs
- an array of unique IDs to use to locate the users/groupsuserType
- either a user or group as defined in com.sssw.fw.api.EbiConstantscom.sssw.fw.api.EbiConstants.FW_PRINCIPAL_GROUP
,
com.sssw.fw.api.EbiConstants.FW_PRINCIPAL_USER
public boolean isAnonymous(Principal princ)
princ
- the principal to checkpublic Principal getAnonymous()
public Collection getRealmGroups(EbiContext context) throws EboException
context
- an EbiContext object.public Collection getParentGroups(EbiContext context, EbiRealmGroup groupPrinc) throws EboException
groupPrinc
- a group principal.public Collection getChildGroups(EbiContext context, EbiRealmGroup groupPrinc) throws EboException
groupPrinc
- a group principal.public boolean isNestedGroupSupported()
public boolean isGroupQuerySupported()
public boolean isUserQuerySupported()
public void logoff(EbiContext context) throws EboException
context
- an EbiContextpublic Principal getAuthenticatedUser(EbiContext context)
context
- an EbiContextpublic Collection getUsers(EbiContext context, EbiDirectoryUsersQuery query) throws EboException
context
- an EbiContext object.query
- an EbiDirectoryUsersQuery object.public Collection getGroups(EbiContext context, EbiDirectoryGroupsQuery query) throws EboException
context
- an EbiContext object.query
- an EbiDirectoryGroupsQuery object.public boolean isDynamicGroupSupported()
public boolean isContainerSupported()
public boolean isValidUserID(String userID)
Note that a double quote is a valid character for a user ID in LDAP. For example:
cn="Ernie",o="Novell"
EbiUserDelegate.isValidUserID(EbiContext context, String userID)
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |