|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.orchestranetworks.service.directory.Directory
com.orchestranetworks.service.directory.DirectoryDefault
Default internal implementation of directory that is delivered with EBX.Platform.
DirectoryFactory| 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)
Returns the encrypted string corresponding to the "clear" password specified. |
List |
getAllSpecificRoles()
Returns all specific roles defined by this directory. |
List |
getAllUserReferences()
Returns all users defined by this directory. |
static DirectoryDefault |
getInstance(Repository aRepository)
Returns the default internal directory instance that is delivered with EBX.Platform. |
List |
getProfiles(ProfileListContext aProfileContext)
Returns the profiles according the context specified. |
List |
getRolesForUser(UserReference userReference)
Returns the specific roles of the user specified. |
String |
getUserEmail(UserReference aUserReference)
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.orchestranetworks.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 EBX.Platform repository.
Exceptionpublic static String encryptString(String s)
public List getAllSpecificRoles()
List of Role instances.public List getAllUserReferences()
List of UserReference instances.public List getRolesForUser(UserReference userReference)
Rolepublic boolean isUserDefined(UserReference aUserReference)
Directorytrue if the user specified actually exists in this
directory.
isUserDefined in class DirectoryDirectoryHandler.isProfileDefined(Profile)public boolean isSpecificRoleDefined(Role aRole)
Directorytrue if the specific role specified actually exists in this
directory.
isSpecificRoleDefined in class DirectoryDirectoryHandler.isProfileDefined(Profile)
public UserReference authenticateUserFromLoginPassword(String aLogin,
String aPassword)
Directory
authenticateUserFromLoginPassword in class Directorynull if login does not exist or password is incorrect.
public boolean isUserInRole(UserReference ref,
Role aRole)
Directorytrue 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 DirectoryDirectoryHandler.isProfileIncluded(Profile, Profile)public String getUserEmail(UserReference aUserReference)
Directorynull if it is unknown.
Default implementation of this method returns always null.
getUserEmail in class Directorypublic List getProfiles(ProfileListContext aProfileContext)
DirectoryPostconditions: 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 DirectoryList of profiles
public String displaySpecificRole(Role aSpecificRole,
Locale aLocale)
DirectoryAny 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 DirectoryDirectoryHandler.displayProfile(Profile, Locale)
public String displayUser(UserReference aUserReference,
Locale aLocale)
DirectoryAny 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 DirectoryDirectoryHandler.displayProfile(Profile, Locale)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.5.2 [0601:0004]
Copyright Orchestra Networks 2000-2008. All rights reserved.