|
|||||||||||
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 com.softwareag.mdm.service.directory.DirectoryDefault
Default internal implementation of directory that is delivered with webMethods MDM.
DirectoryDefaultFactory
Method Summary | |
UserReference |
authenticateUserFromLoginPassword(String aLogin,
String aPassword)
Authenticates a user by its login and password. |
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. |
static String |
encryptString(String s)
|
static DirectoryDefault |
getInstance(Repository aRepository)
Returns the default internal directory instance that is delivered with webMethods MDM. |
List |
getProfiles(ProfileListContext aProfileContext)
Returns the profiles according the context specified. |
List |
getRolesForUser(UserReference userReference)
Returns the user specific roles. |
String |
getUserEmail(UserReference ref)
Returns the e-mail address of the user specified, null if it is unknown.
|
boolean |
isSpecificRoleDefined(Role aRole)
Returns true if the specific role specified actually exists in this
directory. |
boolean |
isUserDefined(UserReference aUserReference)
Returns true if the user specified actually exists in this
directory. |
boolean |
isUserInRole(UserReference ref,
Role aRole)
Returns true if the user has the role specified.
|
Methods inherited from class com.softwareag.mdm.service.directory.Directory |
authenticateUserFromArray, authenticateUserFromHttpRequest, displayBuiltInRole, isRoleStrictlyIncluded |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static DirectoryDefault getInstance(Repository aRepository) throws Exception
Returns null if a specific directory implementation is used.
aRepository
- an webMethods MDM repository.
Exception
public boolean isUserDefined(UserReference aUserReference)
Directory
true
if the user specified actually exists in this
directory.
isUserDefined
in class Directory
DirectoryHandler.isProfileDefined(Profile)
public boolean isSpecificRoleDefined(Role aRole)
Directory
true
if the specific role specified actually exists in this
directory.
isSpecificRoleDefined
in class Directory
DirectoryHandler.isProfileDefined(Profile)
public UserReference authenticateUserFromLoginPassword(String aLogin, String aPassword)
Directory
authenticateUserFromLoginPassword
in class Directory
null
if login does not exist or password is incorrect.public boolean isUserInRole(UserReference ref, Role aRole)
Directory
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:
isUserInRole
in class Directory
DirectoryHandler.isProfileIncluded(Profile, Profile)
public List getRolesForUser(UserReference userReference)
Role
public String getUserEmail(UserReference ref)
Directory
null
if it is unknown.
Default implementation of this method returns always null
.
getUserEmail
in class Directory
public static String encryptString(String s)
public List getProfiles(ProfileListContext aProfileContext)
Directory
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.
getProfiles
in class Directory
List
of profiles
public String displaySpecificRole(Role aSpecificRole, Locale aLocale)
Directory
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.
displaySpecificRole
in class Directory
DirectoryHandler.displayProfile(Profile, Locale)
public String displayUser(UserReference aUserReference, Locale aLocale)
Directory
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).
displayUser
in class Directory
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.