|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserDirectoryProvider
This SPI should be implemented by classes that provide the functionality
of listing users from an external system.
Not all methods need to be supported. If a method is not
supported it should throw a
java.lang.UnsupportedOperationException. The methods
UserDirectoryProvider.isCaseSensitive() and UserDirectoryProvider.init(Element) will be called
during initialization and are mandatory.
| Method Summary | |
|---|---|
void |
destroy()
Deprecated. Performs cleanup of any resources used by the provider, such as database connections. |
HashMap |
getGroupMap()
Deprecated. Load a group map containing all groups and their members. |
ProviderPrincipal |
getPrincipalById(String id)
Deprecated. Get a principal from the directory. |
ProviderUserPrincipal |
getUserPrincipalByName(String name)
Deprecated. Get a user principal from the directory. |
ProviderUserPrincipal[] |
getUserPrincipals()
Deprecated. Get all users in the directory. |
ProviderUserPrincipal[] |
getUserPrincipals(String regExp)
Deprecated. Get all users with names that matches a regular expression. |
void |
init(Element config)
Deprecated. Initialize the provider. |
boolean |
isCaseSensitive()
Deprecated. Check if principals are matched cased sensitive or not in the directory. |
| Method Detail |
|---|
void init(Element config)
config - the configuration for this providervoid destroy()
boolean isCaseSensitive()
ProviderUserPrincipal getUserPrincipalByName(String name)
name - The name of the user
null if the principal does not exist
UserDirectoryException - if an error occurred in the providerProviderPrincipal getPrincipalById(String id)
id - The id of the principal
ProviderUserPrincipal or null if the principal does not exist
UserDirectoryException - if an error occurred in the providerProviderUserPrincipal[] getUserPrincipals()
UserDirectoryException - if an error occurred in the providerProviderUserPrincipal[] getUserPrincipals(String regExp)
regExp - A regular expression, using the java.util.regex syntax
IllegalArgumentException - if the regular expression is invalid
UserDirectoryException - if an error occurred in the provider
UnsupportedOperationException - if the provider doesn't support regexp searchesHashMap getGroupMap()
UserDirectoryException - if an error occurred in the provider
UnsupportedOperationException - if the provider doesn't support groups
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||