lumis.portal.serialization
Class FileCopyTransactionObserver

Package class diagram package FileCopyTransactionObserver
java.lang.Object
  extended by lumis.portal.serialization.FileCopyTransactionObserver
All Implemented Interfaces:
ITransactionObserver

public class FileCopyTransactionObserver
extends Object
implements ITransactionObserver

Implementation of ITransactionObserver that performs a file copy operation that can be rolled back. The file copy operation will be executed only at the first transaction´s commit and/or rollback.

Since:
4.0.8

Constructor Summary
FileCopyTransactionObserver(SessionConfig sessionConfig, String sourceFilePath, IDirectory sourceDirectory, String destinationFilePath, PortalContext.RelativePathType destinationRelativePathType, ITransaction transaction)
           
FileCopyTransactionObserver(SessionConfig sessionConfig, String sourceFilePath, PortalContext.RelativePathType sourceRelativePathType, String destinationFilePath, PortalContext.RelativePathType destinationRelativePathType, ITransaction transaction)
           
 
Method Summary
 void afterCommit()
          Called by the observed transaction just after the commit operation.
 void afterRollback()
          Called by the observed transaction just after the rollback operation.
 boolean beforeCommit()
          Called by the observed transaction just before the commit operation.
 void beforeRollback()
          Called by the observed transaction just before the rollback operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCopyTransactionObserver

public FileCopyTransactionObserver(SessionConfig sessionConfig,
                                   String sourceFilePath,
                                   PortalContext.RelativePathType sourceRelativePathType,
                                   String destinationFilePath,
                                   PortalContext.RelativePathType destinationRelativePathType,
                                   ITransaction transaction)

FileCopyTransactionObserver

public FileCopyTransactionObserver(SessionConfig sessionConfig,
                                   String sourceFilePath,
                                   IDirectory sourceDirectory,
                                   String destinationFilePath,
                                   PortalContext.RelativePathType destinationRelativePathType,
                                   ITransaction transaction)
Method Detail

beforeCommit

public boolean beforeCommit()
                     throws PortalException
Description copied from interface: ITransactionObserver
Called by the observed transaction just before the commit operation.

Specified by:
beforeCommit in interface ITransactionObserver
Returns:
true to indicate success; false to indicate fail, and cause the transaction to cancel commiting.
Throws:
PortalException

afterCommit

public void afterCommit()
                 throws PortalException
Description copied from interface: ITransactionObserver
Called by the observed transaction just after the commit operation.

Specified by:
afterCommit in interface ITransactionObserver
Throws:
PortalException

beforeRollback

public void beforeRollback()
                    throws PortalException
Description copied from interface: ITransactionObserver
Called by the observed transaction just before the rollback operation.

Specified by:
beforeRollback in interface ITransactionObserver
Throws:
PortalException

afterRollback

public void afterRollback()
                   throws PortalException
Description copied from interface: ITransactionObserver
Called by the observed transaction just after the rollback operation.

Specified by:
afterRollback in interface ITransactionObserver
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.