org.jboss.system.server.profileservice.repository.clustered.sync
Class AbstractContentMetadataMutatorAction<T extends SynchronizationActionContext>

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.clustered.sync.AbstractSynchronizationAction<T>
      extended by org.jboss.system.server.profileservice.repository.clustered.sync.AbstractContentMetadataMutatorAction<T>
All Implemented Interfaces:
SynchronizationAction<T>, TwoPhaseCommitAction<T>
Direct Known Subclasses:
AbstractLocalContentChangeAction, DirectoryTimestampUpdateAction

public abstract class AbstractContentMetadataMutatorAction<T extends SynchronizationActionContext>
extends AbstractSynchronizationAction<T>

Base class for SynchronizationAction implementations that mutate the RepositoryContentMetadata as part of their function.

Version:
$Revision: $
Author:
Brian Stansberry

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.system.server.profileservice.repository.clustered.sync.AbstractSynchronizationAction
AbstractSynchronizationAction.State
 
Constructor Summary
protected AbstractContentMetadataMutatorAction(T context, ContentModification modification)
          Create a new AbstractContentMetadataMutatorAction.
 
Method Summary
protected  void rollbackContentMetadata()
           
protected  void updateContentMetadata()
           
 
Methods inherited from class org.jboss.system.server.profileservice.repository.clustered.sync.AbstractSynchronizationAction
cancel, commit, complete, doCancel, doCommit, doComplete, doPrepare, doRollbackFromCancelled, doRollbackFromComplete, doRollbackFromOpen, doRollbackFromPrepared, doRollbackFromRollbackOnly, getContext, getMarkedRemovedItem, getRepositoryContentModification, getState, isCancelled, isComplete, prepare, rollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractContentMetadataMutatorAction

protected AbstractContentMetadataMutatorAction(T context,
                                               ContentModification modification)
Create a new AbstractContentMetadataMutatorAction.

Parameters:
context - the overall context of the modification
modification - the modification
Method Detail

updateContentMetadata

protected void updateContentMetadata()

rollbackContentMetadata

protected void rollbackContentMetadata()


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.