public class LdapServiceMock extends LdapServiceImpl
serviceContext| Constructor and Description |
|---|
LdapServiceMock() |
| Modifier and Type | Method and Description |
|---|---|
FaxToMailUser |
authenticateUser(String login,
String password)
Authenticate and update ldap user.
|
protected FaxToMailUser |
getFakeFaxToMailUser() |
FaxToMailUser |
getUserBean(String userTopiaId)
Return user for given user id.
|
FaxToMailUser |
getUserFromPrincipal(String principal)
Retreive user from principal and updated user database instance.
|
void |
updateLdapData()
Update all user and group from ldap.
|
getGroupCompleteName, updateUserFormLdapgetApplicationConfig, getClientService, getConfigurationService, getDecoratorService, getEmailService, getMailFolderService, getNow, getPersistenceContext, getReferentielService, newService, setServiceContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetServiceContextprotected FaxToMailUser getFakeFaxToMailUser()
public void updateLdapData()
LdapServiceImplupdateLdapData in interface LdapServiceupdateLdapData in class LdapServiceImplpublic FaxToMailUser getUserBean(String userTopiaId)
LdapServiceImplgetUserBean in interface LdapServicegetUserBean in class LdapServiceImpluserTopiaId - userTopiaIdpublic FaxToMailUser authenticateUser(String login, String password) throws AuthenticationException
LdapServiceImplauthenticateUser in interface LdapServiceauthenticateUser in class LdapServiceImpllogin - loginpassword - passwordAuthenticationException - if authentication failspublic FaxToMailUser getUserFromPrincipal(String principal) throws AuthenticationException
LdapServiceImplgetUserFromPrincipal in interface LdapServicegetUserFromPrincipal in class LdapServiceImplprincipal - user principal (without domain)AuthenticationException - is user can't be found in ldapCopyright © 2014 CodeLutin. All rights reserved.