Class 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.AbstractLifecycleBean
    Remove 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.Log log  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      protected void onBootstrap​(org.springframework.context.ApplicationEvent event)  
      protected void onShutdown​(org.springframework.context.ApplicationEvent event)  
      protected int removePeopleWithGUIDBasedIds()
      Can have uid+GUID or uid + "(" + GUID + ")"
      void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)  
      void setPersonService​(PersonService personService)  
      void setTransactionService​(TransactionService transactionService)  
      • Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean

        getApplicationContext, onApplicationEvent, setApplicationContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        protected static final org.apache.commons.logging.Log log
    • Constructor Detail

      • SplitPersonCleanupBootstrapBean

        public SplitPersonCleanupBootstrapBean()
    • 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:
        onBootstrap in class org.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:
        onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean
      • main

        public static void main​(java.lang.String[] args)