Class SplitPersonCleanupBootstrapBean
- java.lang.Object
-
- org.springframework.extensions.surf.util.AbstractLifecycleBean
-
- org.alfresco.repo.security.person.SplitPersonCleanupBootstrapBean
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener
public class SplitPersonCleanupBootstrapBean extends org.springframework.extensions.surf.util.AbstractLifecycleBeanRemove all duplicate users that have previously been split and had guids added to the uid. This been should be wired up into a custom bootstrap process- Author:
- Andy Hind
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Loglog
-
Constructor Summary
Constructors Constructor Description SplitPersonCleanupBootstrapBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)protected voidonBootstrap(org.springframework.context.ApplicationEvent event)protected voidonShutdown(org.springframework.context.ApplicationEvent event)protected intremovePeopleWithGUIDBasedIds()Can have uid+GUID or uid + "(" + GUID + ")"voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetPersonService(PersonService personService)voidsetTransactionService(TransactionService transactionService)
-
-
-
Method Detail
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setPersonService
public void setPersonService(PersonService personService)
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
-
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
- Specified by:
onBootstrapin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
removePeopleWithGUIDBasedIds
protected int removePeopleWithGUIDBasedIds()
Can have uid+GUID or uid + "(" + GUID + ")"- Returns:
- int
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event)
- Specified by:
onShutdownin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
main
public static void main(java.lang.String[] args)
-
-