public class DefaultMutableAuthenticationDao extends java.lang.Object implements MutableAuthenticationDao
| Constructor and Description |
|---|
DefaultMutableAuthenticationDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
createUser(java.lang.String userName,
char[] rawPassword)
Create a user with the given userName and password
|
void |
deleteUser(java.lang.String userName)
Delete a user.
|
boolean |
getAccountExpires(java.lang.String userName)
Does the account expire?
|
java.util.Date |
getAccountExpiryDate(java.lang.String userName)
Get the date when this account expires.
|
boolean |
getAccountHasExpired(java.lang.String userName)
Has the account expired?
|
boolean |
getAccountlocked(java.lang.String userName)
Is the account locked?
|
boolean |
getCredentialsExpire(java.lang.String userName)
Do the credentials for the user expire?
|
java.util.Date |
getCredentialsExpiryDate(java.lang.String userName)
Get the date when the credentials/password expire.
|
boolean |
getCredentialsHaveExpired(java.lang.String userName)
Have the credentials for the user expired?
|
boolean |
getEnabled(java.lang.String userName)
Getter for user enabled
|
boolean |
getLocked(java.lang.String userName)
Check if the account is locked
|
java.lang.String |
getMD4HashedPassword(java.lang.String userName)
Get the MD4 password hash
|
java.lang.Object |
getSalt(net.sf.acegisecurity.UserDetails user) |
net.sf.acegisecurity.UserDetails |
loadUserByUsername(java.lang.String arg0) |
void |
setAccountExpires(java.lang.String userName,
boolean expires)
Set if the account should expire
|
void |
setAccountExpiryDate(java.lang.String userName,
java.util.Date exipryDate)
Set the date on which the account expires
|
void |
setAllowCreateUser(boolean allowCreateUser) |
void |
setAllowDeleteUser(boolean allowDeleteUser) |
void |
setAllowGetAccountExpiryDate(boolean allowGetAccountExpiryDate) |
void |
setAllowGetAccountHasExpired(boolean allowGetAccountHasExpired) |
void |
setAllowGetAccountLocked(boolean allowGetAccountLocked) |
void |
setAllowGetCredentialsExpire(boolean allowGetCredentialsExpire) |
void |
setAllowGetCredentialsExpiryDate(boolean allowGetCredentialsExpiryDate) |
void |
setAllowGetCredentialsHaveExpired(boolean allowGetCredentialsHaveExpired) |
void |
setAllowGetEnabled(boolean allowGetEnabled) |
void |
setAllowSetAccountExpires(boolean allowSetAccountExpires) |
void |
setAllowSetAccountExpiryDate(boolean allowSetAccountExpiryDate) |
void |
setAllowSetAccountLocked(boolean allowSetAccountLocked) |
void |
setAllowSetCredentialsExpire(boolean allowSetCredentialsExpire) |
void |
setAllowSetCredentialsExpiryDate(boolean allowSetCredentialsExpiryDate) |
void |
setAllowSetEnabled(boolean allowSetEnabled) |
void |
setAllowUpdateUser(boolean allowUpdateUser) |
void |
setCredentialsExpire(java.lang.String userName,
boolean expires)
Set if the password expires.
|
void |
setCredentialsExpiryDate(java.lang.String userName,
java.util.Date exipryDate)
Set the date when credentials expire.
|
void |
setEnabled(java.lang.String userName,
boolean enabled)
Enable/disable a user.
|
void |
setLocked(java.lang.String userName,
boolean locked)
Set if the account is locked.
|
void |
updateUser(java.lang.String userName,
char[] rawPassword)
Update a user's password.
|
boolean |
userExists(java.lang.String userName)
Check is a user exists.
|
public void createUser(java.lang.String userName,
char[] rawPassword)
throws org.alfresco.repo.security.authentication.AuthenticationException
createUser in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic void updateUser(java.lang.String userName,
char[] rawPassword)
throws org.alfresco.repo.security.authentication.AuthenticationException
updateUser in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic void deleteUser(java.lang.String userName)
throws org.alfresco.repo.security.authentication.AuthenticationException
deleteUser in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic boolean userExists(java.lang.String userName)
userExists in interface MutableAuthenticationDaopublic void setEnabled(java.lang.String userName,
boolean enabled)
setEnabled in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic boolean getEnabled(java.lang.String userName)
getEnabled in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic void setAccountExpires(java.lang.String userName,
boolean expires)
setAccountExpires in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic boolean getAccountExpires(java.lang.String userName)
getAccountExpires in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic boolean getAccountHasExpired(java.lang.String userName)
getAccountHasExpired in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic void setCredentialsExpire(java.lang.String userName,
boolean expires)
setCredentialsExpire in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic boolean getCredentialsExpire(java.lang.String userName)
getCredentialsExpire in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic boolean getCredentialsHaveExpired(java.lang.String userName)
getCredentialsHaveExpired in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic void setLocked(java.lang.String userName,
boolean locked)
setLocked in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic boolean getLocked(java.lang.String userName)
getLocked in interface MutableAuthenticationDaouserName - the usernameorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic boolean getAccountlocked(java.lang.String userName)
MutableAuthenticationDaogetAccountlocked in interface MutableAuthenticationDaoDefaultMutableAuthenticationDao.getLocked(String)public void setAccountExpiryDate(java.lang.String userName,
java.util.Date exipryDate)
setAccountExpiryDate in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic java.util.Date getAccountExpiryDate(java.lang.String userName)
getAccountExpiryDate in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic void setCredentialsExpiryDate(java.lang.String userName,
java.util.Date exipryDate)
setCredentialsExpiryDate in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic java.util.Date getCredentialsExpiryDate(java.lang.String userName)
getCredentialsExpiryDate in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - if the the operation is not allowedpublic java.lang.String getMD4HashedPassword(java.lang.String userName)
MutableAuthenticationDaogetMD4HashedPassword in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - alwayspublic net.sf.acegisecurity.UserDetails loadUserByUsername(java.lang.String arg0)
throws net.sf.acegisecurity.providers.dao.UsernameNotFoundException,
org.springframework.dao.DataAccessException
loadUserByUsername in interface net.sf.acegisecurity.providers.dao.AuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - alwaysnet.sf.acegisecurity.providers.dao.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionpublic java.lang.Object getSalt(net.sf.acegisecurity.UserDetails user)
getSalt in interface net.sf.acegisecurity.providers.dao.SaltSourceorg.alfresco.error.AlfrescoRuntimeException - alwayspublic void setAllowCreateUser(boolean allowCreateUser)
public void setAllowDeleteUser(boolean allowDeleteUser)
public void setAllowGetAccountExpiryDate(boolean allowGetAccountExpiryDate)
public void setAllowGetAccountHasExpired(boolean allowGetAccountHasExpired)
public void setAllowGetAccountLocked(boolean allowGetAccountLocked)
public void setAllowGetCredentialsExpire(boolean allowGetCredentialsExpire)
public void setAllowGetCredentialsExpiryDate(boolean allowGetCredentialsExpiryDate)
public void setAllowGetCredentialsHaveExpired(boolean allowGetCredentialsHaveExpired)
public void setAllowGetEnabled(boolean allowGetEnabled)
public void setAllowSetAccountExpires(boolean allowSetAccountExpires)
public void setAllowSetAccountExpiryDate(boolean allowSetAccountExpiryDate)
public void setAllowSetAccountLocked(boolean allowSetAccountLocked)
public void setAllowSetCredentialsExpire(boolean allowSetCredentialsExpire)
public void setAllowSetCredentialsExpiryDate(boolean allowSetCredentialsExpiryDate)
public void setAllowSetEnabled(boolean allowSetEnabled)
public void setAllowUpdateUser(boolean allowUpdateUser)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.