public interface TransactionalDocumentSafeService extends NonTransactionalDocumentSafeService
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction(UserIDAuth userIDAuth) |
void |
endTransaction(UserIDAuth userIDAuth)
Commits the running transaction and all its changes.
|
TxDocumentFQNVersion |
getVersion(UserIDAuth userIDAuth,
DocumentFQN documentFQN)
returns the Version number of the Document or throws a FileNotFoundException
|
void |
transferFromNonTxToTx(UserIDAuth userIDAuth,
DocumentFQN nonTxFQN,
DocumentFQN txFQN)
Gets a file from the nonTx Context and stores it in the tx Context.
|
void |
txDeleteDocument(UserIDAuth userIDAuth,
DocumentFQN documentFQN)
Deletes a single file
|
void |
txDeleteFolder(UserIDAuth userIDAuth,
DocumentDirectoryFQN documentDirectoryFQN)
All files in this folder und folders below this folder will be deleted
Actually folders do not exist unless they contain a file or folder that eventually contains a file
|
boolean |
txDocumentExists(UserIDAuth userIDAuth,
DocumentFQN documentFQN)
Checks the existance of a file
|
TxBucketContentFQN |
txListDocuments(UserIDAuth userIDAuth,
DocumentDirectoryFQN documentDirectoryFQN,
org.adorsys.encobject.types.ListRecursiveFlag recursiveFlag)
Seeks all Files and Folders starting from a given root.
|
DSDocument |
txReadDocument(UserIDAuth userIDAuth,
DocumentFQN documentFQN)
Reads the content of a document
|
void |
txStoreDocument(UserIDAuth userIDAuth,
DSDocument dsDocument)
writes byted to a file and stores the given Metadata with that file
|
createUser, destroyUser, findPublicEncryptionKey, grantAccessToNonTxFolder, nonTxDeleteDocument, nonTxDeleteFolder, nonTxDocumentExists, nonTxDocumentExists, nonTxListDocuments, nonTxReadDocument, nonTxReadDocument, nonTxStoreDocument, nonTxStoreDocument, userExistsvoid beginTransaction(UserIDAuth userIDAuth)
void txStoreDocument(UserIDAuth userIDAuth, DSDocument dsDocument)
userIDAuth - user and passworddsDocument - data and metadata and FQN to be storedDSDocument txReadDocument(UserIDAuth userIDAuth, DocumentFQN documentFQN)
userIDAuth - user and passworddocumentFQN - file to be readvoid txDeleteDocument(UserIDAuth userIDAuth, DocumentFQN documentFQN)
userIDAuth - user and passworddocumentFQN - file to be deletedTxBucketContentFQN txListDocuments(UserIDAuth userIDAuth, DocumentDirectoryFQN documentDirectoryFQN, org.adorsys.encobject.types.ListRecursiveFlag recursiveFlag)
userIDAuth - user and passworddocumentDirectoryFQN - folder to listrecursiveFlag - flag, to search deep or notTxDocumentFQNVersion getVersion(UserIDAuth userIDAuth, DocumentFQN documentFQN)
userIDAuth - user and passworddocumentFQN - the document, the version is requested forboolean txDocumentExists(UserIDAuth userIDAuth, DocumentFQN documentFQN)
userIDAuth - user and passworddocumentFQN - name of the filevoid txDeleteFolder(UserIDAuth userIDAuth, DocumentDirectoryFQN documentDirectoryFQN)
userIDAuth - user and passworddocumentDirectoryFQN - name of the directoryvoid transferFromNonTxToTx(UserIDAuth userIDAuth, DocumentFQN nonTxFQN, DocumentFQN txFQN)
userIDAuth - user and passwordnonTxFQN - name of the file in the non transactional context (e.g. source)txFQN - name of the file in the transactional context (e.g. destination)void endTransaction(UserIDAuth userIDAuth)
userIDAuth - user and passwordCopyright © 2019. All rights reserved.