public class UpgradePasswordHashWorker extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Class and Description |
|---|---|
static class |
UpgradePasswordHashWorker.UpgradePasswordHashJob
A scheduled job that checks and upgrades users passwords to the system's preferred encoding.
|
static class |
UpgradePasswordHashWorker.UpgradePasswordHashWorkResult
Thread-safe helper class to carry the job progress information.
|
| Constructor and Description |
|---|
UpgradePasswordHashWorker() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
UpgradePasswordHashWorker.UpgradePasswordHashWorkResult |
execute()
Performs the work, including logging details of progress.
|
boolean |
processPasswordHash(Map<org.alfresco.service.namespace.QName,Serializable> properties)
Processes the user properties, re-hashing the password, if required.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Set the application context for event publishing during batch processing
|
void |
setAuthenticationDao(MutableAuthenticationDao authenticationDao) |
void |
setBatchSize(int batchSize)
Sets the number of users to process at one time.
|
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setCompositePasswordEncoder(CompositePasswordEncoder passwordEncoder) |
void |
setJobLockService(JobLockService jobLockService) |
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setPatchDAO(PatchDAO patchDAO) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setQueryRange(int queryRange)
Sets the number of users to retrieve from the repository in each query.
|
void |
setThreadCount(int threadCount)
Sets the number of threads to use to process users.
|
void |
setTransactionService(TransactionService transactionService) |
public void setJobLockService(JobLockService jobLockService)
public void setTransactionService(TransactionService transactionService)
public void setAuthenticationDao(MutableAuthenticationDao authenticationDao)
public void setCompositePasswordEncoder(CompositePasswordEncoder passwordEncoder)
public void setPatchDAO(PatchDAO patchDAO)
public void setNodeDAO(NodeDAO nodeDAO)
public void setQnameDAO(QNameDAO qnameDAO)
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void setQueryRange(int queryRange)
queryRange - The query rangepublic void setThreadCount(int threadCount)
threadCount - Number of threadspublic void setBatchSize(int batchSize)
batchSize - The batch sizepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic UpgradePasswordHashWorker.UpgradePasswordHashWorkResult execute()
public boolean processPasswordHash(Map<org.alfresco.service.namespace.QName,Serializable> properties)
properties - The properties for the user.Copyright © 2005–2018 Alfresco Software. All rights reserved.