|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softwareag.mdm.service.directory.Directory
Defines the users' directory that is used by webMethods MDM for user authentication and roles management.
DirectoryFactory
Constructor Summary | |
Directory()
|
Method Summary | |
UserReference |
authenticateUserFromArray(Object[] args)
Authenticates a user by an open array. |
UserReference |
authenticateUserFromHttpRequest(HttpServletRequest request)
Authenticates a user for the purpose of a single sign-on policy. |
abstract UserReference |
authenticateUserFromLoginPassword(String aLogin,
String aPassword)
Authenticates a user by its login and password. |
String |
displayBuiltInRole(Role aBuiltInRole,
Locale aLocale)
Returns a label for the built-in role specified. |
String |
displaySpecificRole(Role aSpecificRole,
Locale aLocale)
Returns a label for the specific role specified. |
String |
displayUser(UserReference aUserReference,
Locale aLocale)
Returns a label for the user specified. |
abstract List |
getProfiles(ProfileListContext aProfileContext)
Returns the profiles according the context specified. |
String |
getUserEmail(UserReference aUserReference)
Returns the e-mail address of the user specified, null if it is unknown.
|
boolean |
isRoleStrictlyIncluded(Role aRole,
Role anotherRole)
Returns true when aRole is included
in anotherRole .
|
abstract boolean |
isSpecificRoleDefined(Role aSpecificRole)
Returns true if the specific role specified actually exists in this
directory. |
abstract boolean |
isUserDefined(UserReference aUserReference)
Returns true if the user specified actually exists in this
directory. |
abstract boolean |
isUserInRole(UserReference aUser,
Role aRole)
Returns true if the user has the role specified.
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Directory()
Method Detail |
public abstract UserReference authenticateUserFromLoginPassword(String aLogin, String aPassword)
null
if login does not exist or password is incorrect.public UserReference authenticateUserFromHttpRequest(HttpServletRequest request) throws AuthenticationException
If the implementation of this method does not return null
, the user enters directly into
Manager session (he does not have to submit its login and password).
More precisely, this method is called each time an initial HTTP request is sent to the Manager:
null
, the login/password page is returned
as HTTP response.
The default implementation of this method always returns null
.
This method shall be overridden if a single sign-on behaviour is needed.
null
if authentication features are not provided in the request
(in which case a login/password is asked to user).
AuthenticationException
- if authentication cannot complete.public UserReference authenticateUserFromArray(Object[] args)
The default implementation of this method always returns null
.
null
no user can be authenticated.public abstract boolean isUserDefined(UserReference aUserReference)
true
if the user specified actually exists in this
directory.
DirectoryHandler.isProfileDefined(Profile)
public abstract boolean isSpecificRoleDefined(Role aSpecificRole)
true
if the specific role specified actually exists in this
directory.
DirectoryHandler.isProfileDefined(Profile)
public abstract boolean isUserInRole(UserReference aUser, Role aRole)
true
if the user has the role specified.
The method must return false
if the user does not exist.
The following built-in roles are not passed to this method because their meaning does not depend on a specific directory:
DirectoryHandler.isProfileIncluded(Profile, Profile)
public boolean isRoleStrictlyIncluded(Role aRole, Role anotherRole)
true
when aRole
is included
in anotherRole
.
Default implementation of this method returns false
.
It should be overriden if role inclusion is somehow implemented in the
underlying directory.
DirectoryHandler.isProfileIncluded(Profile, Profile)
public abstract List getProfiles(ProfileListContext aProfileContext)
Postconditions: The profiles to return have some restrictions :
ProfileListContext.isForDefiningPermission()
),
the list must not contain the ADMINISTRATOR built-in role.
ProfileListContext.isForSelectingBranchOwner()()
and ProfileListContext.isForSelectingInstanceOwner()
),
the list must not contain the built-in roles OWNER and DISTRIBUTOR.
List
of profiles
public String getUserEmail(UserReference aUserReference)
null
if it is unknown.
Default implementation of this method returns always null
.
public String displayUser(UserReference aUserReference, Locale aLocale)
Any implementation of this method must handle the case where the user does not exist any more in the directory (because it has been deleted). In this case it is expected that this method returns a particular label that indicates that the user specified is unknown.
Default implementation of this method displays user id string (it adds the "unknown" word if user is not defined).
DirectoryHandler.displayProfile(Profile, Locale)
public String displayBuiltInRole(Role aBuiltInRole, Locale aLocale)
Default implementation of this method returns a localized label.
DirectoryHandler.displayProfile(Profile, Locale)
public String displaySpecificRole(Role aSpecificRole, Locale aLocale)
Any implementation of this method should handle the case where the role does not exist any more in the directory (because it has been deleted). In this case it is expected that this method returns a particular label that indicates that the role specified is unknown.
Default implementation of this method uses role name.
DirectoryHandler.displayProfile(Profile, 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.