public class FileCopyTransactionObserver extends Object implements ITransactionObserver
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.Constructor and Description |
---|
FileCopyTransactionObserver(String sourceFilePath,
IDirectory sourceDirectory,
String destinationFilePath,
IPortalBaseFolder destinationRelativePathType) |
Modifier and Type | Method and Description |
---|---|
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.
|
public FileCopyTransactionObserver(String sourceFilePath, IDirectory sourceDirectory, String destinationFilePath, IPortalBaseFolder destinationRelativePathType)
public boolean beforeCommit() throws PortalException
ITransactionObserver
beforeCommit
in interface ITransactionObserver
PortalException
public void afterCommit() throws PortalException
ITransactionObserver
afterCommit
in interface ITransactionObserver
PortalException
public void beforeRollback() throws PortalException
ITransactionObserver
beforeRollback
in interface ITransactionObserver
PortalException
public void afterRollback() throws PortalException
ITransactionObserver
afterRollback
in interface ITransactionObserver
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.