|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.bc.gov.webade.user.provider.legacy.LegacyProviderProxy
| Field Summary |
| Fields inherited from interface ca.bc.gov.webade.user.provider.WebADEUserProvider |
PROVIDER_CLASS_NAME, PROVIDER_ENABLED, WEBADE_USER_PROVIDER_SUBTYPE |
| Constructor Summary | |
LegacyProviderProxy(UserInfoProvider provider)
Proxy constructor, with legacy provider object to wrap around. |
|
| Method Summary | |
UserSearchQuery |
createUserSearchQuery(UserTypeCode userType)
Returns a UserSearchQuery metadata object for the given user type code. |
java.util.List |
findUsers(UserCredentials requestingUserCredentials,
UserSearchQuery query)
Returns the user information of the users from the LDAP directory matching the given search criteria. |
java.lang.String |
getSourceDirectoryForUserType(UserTypeCode userType)
Returns the source directory for the given user type if it is supported by this provider. |
java.lang.String[] |
getSupportedSourceDirectories()
|
UserTypeCode[] |
getSupportedUserTypes()
|
WebADEUserInfo |
getUser(UserCredentials requestingUserCredentials,
UserCredentials targetUserCredentials)
Returns the user information from the LDAP directory hosting the user identified by the given credentials. |
UserTypeCode |
getUserTypeForSourceDirectory(java.lang.String sourceDirectory)
Returns the user type for the given source directory if it is supported by this provider. |
boolean |
handlesSourceDirectory(java.lang.String sourceDirectory)
Returns true if the given sourceDirectory is one of the ones supported by this provider. |
boolean |
handlesUserType(UserTypeCode userType)
Returns true if the given user type is one of the ones supported by this provider. |
void |
init(java.util.Properties properties)
Initializes the provider using the given preference set. |
GUID[] |
isUserInGroups(UserCredentials requestingUserCredentials,
UserCredentials targetUserCredentials,
GUID[] groupGuids)
Checks to see if the user is a member of the groups identified by the given array of GUID values. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LegacyProviderProxy(UserInfoProvider provider)
provider - The legacy provider to provide a proxy for.| Method Detail |
public void init(java.util.Properties properties)
throws WebADEUserProviderException
WebADEUserProvider
init in interface WebADEUserProviderproperties - Configuration settings for the user info provider hosting user
information for this WebADE application.
WebADEUserProviderException - Thrown if the configuration settings are not properly
configured (Missing parameters, etc).WebADEUserProvider.init(java.util.Properties)public boolean handlesSourceDirectory(java.lang.String sourceDirectory)
WebADEUserProvider
handlesSourceDirectory in interface WebADEUserProvidersourceDirectory - The target sourceDirectory name.
WebADEUserProvider.handlesSourceDirectory(java.lang.String)public boolean handlesUserType(UserTypeCode userType)
WebADEUserProvider
handlesUserType in interface WebADEUserProvideruserType - The target user type.
WebADEUserProvider.handlesUserType(ca.bc.gov.webade.user.UserTypeCode)public java.lang.String getSourceDirectoryForUserType(UserTypeCode userType)
WebADEUserProvider
getSourceDirectoryForUserType in interface WebADEUserProvideruserType - The target user type.
WebADEUserProvider.getSourceDirectoryForUserType(ca.bc.gov.webade.user.UserTypeCode)public UserTypeCode getUserTypeForSourceDirectory(java.lang.String sourceDirectory)
WebADEUserProvider
getUserTypeForSourceDirectory in interface WebADEUserProvidersourceDirectory - The target sourceDirectory name.
WebADEUserProvider.getUserTypeForSourceDirectory(java.lang.String)public java.lang.String[] getSupportedSourceDirectories()
getSupportedSourceDirectories in interface WebADEUserProviderWebADEUserProvider.getSupportedSourceDirectories()public UserTypeCode[] getSupportedUserTypes()
getSupportedUserTypes in interface WebADEUserProviderWebADEUserProvider.getSupportedUserTypes()
public WebADEUserInfo getUser(UserCredentials requestingUserCredentials,
UserCredentials targetUserCredentials)
throws WebADEUserProviderException
WebADEUserProvider
getUser in interface WebADEUserProviderrequestingUserCredentials - The requesting user's credentials.targetUserCredentials - The user's credentials to look up.
WebADEUserProviderException - Thrown if a connection cannot be made to the application's
LDAP directories or an error occurs.WebADEUserProvider.getUser(ca.bc.gov.webade.user.UserCredentials,
ca.bc.gov.webade.user.UserCredentials)
public GUID[] isUserInGroups(UserCredentials requestingUserCredentials,
UserCredentials targetUserCredentials,
GUID[] groupGuids)
throws WebADEUserProviderException
WebADEUserProvider
isUserInGroups in interface WebADEUserProviderrequestingUserCredentials - The requesting user's credentials.targetUserCredentials - The user's credentials to look up.groupGuids - The unique GUID values of the target groups.
WebADEUserProviderException - Thrown if ant of the groups are not found or an error occurs
while processing the request.WebADEUserProvider.isUserInGroups(ca.bc.gov.webade.user.UserCredentials,
ca.bc.gov.webade.user.UserCredentials, ca.bc.gov.webade.user.GUID[])
public UserSearchQuery createUserSearchQuery(UserTypeCode userType)
throws WebADEUserProviderException
WebADEUserProvider
createUserSearchQuery in interface WebADEUserProvideruserType - The user type to create a query object for.
WebADEUserProviderException - Thrown if searching for the given user type is not supported.WebADEUserProvider.createUserSearchQuery(ca.bc.gov.webade.user.UserTypeCode)
public java.util.List findUsers(UserCredentials requestingUserCredentials,
UserSearchQuery query)
throws WebADEUserProviderException
WebADEUserProvider
findUsers in interface WebADEUserProviderrequestingUserCredentials - The requesting user's credentials.query - The user search query containing the search parameters.
WebADEUserProviderException - Thrown if a connection cannot be made to the application's
LDAP directories or an error occurs.WebADEUserProvider.findUsers(ca.bc.gov.webade.user.UserCredentials, ca.bc.gov.webade.user.search.UserSearchQuery)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||