|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softwareag.mdm.service.directory.DirectoryHandler
An instance of this class holds and wraps the current specific directory implementation so as to add preprocessing and post verifications to the directory methods' implementations. It has also additional methods.
The current directory of a repository is returned by the static
method getInstance(Repository)
.
A normal use of webMethods MDM APIs does not require to access to this class since authentication and permissions management are transparent from the developer point of view (they are "container-managed"). However this class may be useful when Master Data Management has specific functional dependencies on the directory (for example a service needs all the users defined or it has to display a specific profile).
Method Summary | |
UserReference |
authenticateUserFromArray(Object[] args)
|
UserReference |
authenticateUserFromHttpRequest(HttpServletRequest request)
|
UserReference |
authenticateUserFromLoginPassword(String aLogin,
String aPassword)
|
String |
displayBuiltInRole(Role aBuiltInRole,
Locale aLocale)
|
String |
displayProfile(Profile aProfile,
Locale aLocale)
Returns a label for the profile specified. |
String |
displaySpecificRole(Role aSpecificRole,
Locale aLocale)
|
String |
displayUser(UserReference aUserReference,
Locale aLocale)
|
Directory |
getDirectoryImplementation()
Returns the underlying implementation of the directory. |
static DirectoryHandler |
getInstance(Repository aRepository)
Returns the directory instance that is associated with the repository specified. |
List |
getProfiles(ProfileListContext aProfileContext)
|
String |
getUserEmail(UserReference aUserReference)
|
boolean |
isProfileDefined(Profile aProfile)
Returns true if the profile specified is defined in the
directory.
|
boolean |
isProfileIncluded(Profile aProfile,
Profile anotherProfile)
Returns true when aProfile is equals to
or included in anotherProfile .
|
boolean |
isRoleStrictlyIncluded(Role aRole,
Role anotherRole)
|
boolean |
isSpecificRoleDefined(Role aSpecificRole)
|
boolean |
isUserDefined(UserReference aUserReference)
|
boolean |
isUserInRole(UserReference aUser,
Role aRole)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static DirectoryHandler getInstance(Repository aRepository) throws Exception
Warning: a normal use of webMethods MDM APIs does not require to access to this class since authentication and permissions management are transparent from the developer point of view (they are "container-managed"). However this class may be useful when Master Data Management has specific functional dependencies on the directory (for example a service needs all the users defined or it has to display a specific profile).
Exception
getDirectoryImplementation()
public UserReference authenticateUserFromLoginPassword(String aLogin, String aPassword)
Directory.authenticateUserFromLoginPassword(String, String)
public UserReference authenticateUserFromHttpRequest(HttpServletRequest request) throws AuthenticationException
AuthenticationException
Directory.authenticateUserFromHttpRequest(HttpServletRequest)
public UserReference authenticateUserFromArray(Object[] args)
Directory.authenticateUserFromArray(Object[])
public boolean isProfileDefined(Profile aProfile)
true
if the profile specified is defined in the
directory.
The implementation of this method does the following:
isUserDefined(UserReference)
;true
;isSpecificRoleDefined(Role)
.
public boolean isUserDefined(UserReference aUserReference)
Directory.isUserDefined(UserReference)
public boolean isSpecificRoleDefined(Role aSpecificRole)
Directory.isSpecificRoleDefined(Role)
public boolean isProfileIncluded(Profile aProfile, Profile anotherProfile)
true
when aProfile
is equals to
or included in anotherProfile
.
The implementation of this method returns true
:
aProfile
references a user U
, and:
anotherProfile
references the same user,
anotherProfile
is a role and user U
has this role
(this calls method isUserInRole(UserReference, Role)
).
aProfile
references a role R
, and:
anotherProfile
references the same role,
anotherProfile
is a role and role R
is, included
in anotherProfile
(this calls method isRoleStrictlyIncluded(Role, Role)
).
public boolean isRoleStrictlyIncluded(Role aRole, Role anotherRole)
Directory.isRoleStrictlyIncluded(Role, Role)
public boolean isUserInRole(UserReference aUser, Role aRole)
Directory.isUserInRole(UserReference, Role)
public List getProfiles(ProfileListContext aProfileContext)
DirectoryException
- If the list returned by the directory implementation has incorrect elements.Directory.getProfiles(ProfileListContext)
public String getUserEmail(UserReference aUserReference)
Directory.getUserEmail(UserReference)
public String displayProfile(Profile aProfile, Locale aLocale)
The implementation of this method does the following:
displayUser(UserReference, Locale)
;displayBuiltInRole(Role, Locale)
;displaySpecificRole(Role, Locale)
.
public String displaySpecificRole(Role aSpecificRole, Locale aLocale)
Directory.displaySpecificRole(Role, Locale)
public String displayUser(UserReference aUserReference, Locale aLocale)
Directory.displayUser(UserReference, Locale)
public Directory getDirectoryImplementation()
public String displayBuiltInRole(Role aBuiltInRole, Locale aLocale)
Directory.displayBuiltInRole(Role, Locale)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.