Class TransactionImpl
java.lang.Object
org.apache.jackrabbit.vault.fs.impl.TransactionImpl
- All Implemented Interfaces:
VaultFsTransaction
Provides transactional brackets around a write back transaction to
the Vault filesystem. A transaction is always needed due to the fact that
several jcr files could belong to the same artifact.
This is only used from Vault CLI but not during package import which uses the
Importer instead.
TODO: check all vault operations!-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.jackrabbit.vault.fs.api.VaultFsTransaction
VaultFsTransaction.Info, VaultFsTransaction.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(String path, VaultInputSource input) commit()Commits the transaction and uploads all modifications to the repository.voidbooleanvoidvoidmodify(VaultFile file, VaultInputSource input) voidsetVerbose(boolean verbose)
-
Constructor Details
-
TransactionImpl
-
-
Method Details
-
getAutoSave
-
isVerbose
public boolean isVerbose()- Specified by:
isVerbosein interfaceVaultFsTransaction
-
setVerbose
public void setVerbose(boolean verbose) - Specified by:
setVerbosein interfaceVaultFsTransaction
-
delete
- Specified by:
deletein interfaceVaultFsTransaction- Throws:
IOException
-
modify
- Specified by:
modifyin interfaceVaultFsTransaction- Throws:
IOException
-
add
public VaultFileOutput add(String path, VaultInputSource input) throws IOException, RepositoryException - Specified by:
addin interfaceVaultFsTransaction- Throws:
IOExceptionRepositoryException
-
mkdir
- Specified by:
mkdirin interfaceVaultFsTransaction- Throws:
IOExceptionRepositoryException
-
commit
Description copied from interface:VaultFsTransactionCommits the transaction and uploads all modifications to the repository.- Specified by:
commitin interfaceVaultFsTransaction- Returns:
- a list of modifications
- Throws:
RepositoryException- if a repository error occursIOException- if an I/O error occurs
-