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(String sourceFilePath, IDirectory sourceDirectory, String destinationFilePath, IPortalBaseFolder destinationRelativePathType)
           
FileCopyTransactionObserver(String sourceFilePath, IPortalBaseFolder sourceRelativePathType, String destinationFilePath, IPortalBaseFolder destinationRelativePathType)
           
 
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(String sourceFilePath,
                                   IPortalBaseFolder sourceRelativePathType,
                                   String destinationFilePath,
                                   IPortalBaseFolder destinationRelativePathType)

FileCopyTransactionObserver

public FileCopyTransactionObserver(String sourceFilePath,
                                   IDirectory sourceDirectory,
                                   String destinationFilePath,
                                   IPortalBaseFolder destinationRelativePathType)
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  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.