org.alfresco.repo.security.sync
Class ChainingUserRegistrySynchronizer.BaseBatchProcessWorker

java.lang.Object
  extended by org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.BaseBatchProcessWorker
All Implemented Interfaces:
BatchProcessor.BatchProcessWorker
Enclosing class:
ChainingUserRegistrySynchronizer

protected abstract class ChainingUserRegistrySynchronizer.BaseBatchProcessWorker
extends java.lang.Object
implements BatchProcessor.BatchProcessWorker


Constructor Summary
protected ChainingUserRegistrySynchronizer.BaseBatchProcessWorker()
           
 
Method Summary
 void afterProcess()
          Callback to allow thread cleanup after the work entries have been processed.
 void beforeProcess()
          Callback to allow thread initialization before the work entries are processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.repo.batch.BatchProcessor.BatchProcessWorker
getIdentifier, process
 

Constructor Detail

ChainingUserRegistrySynchronizer.BaseBatchProcessWorker

protected ChainingUserRegistrySynchronizer.BaseBatchProcessWorker()
Method Detail

beforeProcess

public final void beforeProcess()
                         throws java.lang.Throwable
Description copied from interface: BatchProcessor.BatchProcessWorker
Callback to allow thread initialization before the work entries are processed. Typically, this will include authenticating as a valid user and disbling or enabling any system flags that might affect the entry processing.

Specified by:
beforeProcess in interface BatchProcessor.BatchProcessWorker
Throws:
java.lang.Throwable

afterProcess

public final void afterProcess()
                        throws java.lang.Throwable
Description copied from interface: BatchProcessor.BatchProcessWorker
Callback to allow thread cleanup after the work entries have been processed. Typically, this will involve cleanup of authentication and resetting any system flags previously set.

This call is made regardless of the outcome of the entry processing.

Specified by:
afterProcess in interface BatchProcessor.BatchProcessWorker
Throws:
java.lang.Throwable


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.