public interface TransactionalDocumentSafeService extends NonTransactionalDocumentSafeService
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth) |
void |
endTransaction(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth)
Commits the running transaction and all its changes.
|
TxDocumentFQNVersion |
getVersion(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentFQN documentFQN)
returns the Version number of the Document or throws a FileNotFoundException
|
void |
txDeleteDocument(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentFQN documentFQN)
Deletes a single file
|
void |
txDeleteFolder(org.adorsys.docusafe.service.api.types.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(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentFQN documentFQN)
Checks the existance of a file
|
TxBucketContentFQN |
txListDocuments(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentDirectoryFQN documentDirectoryFQN,
de.adorsys.dfs.connection.api.types.ListRecursiveFlag recursiveFlag)
Seeks all Files and Folders starting from a given root.
|
DSDocument |
txMoveDocumentFromInbox(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentFQN source,
DocumentFQN destination)
After this call, the file is copied from the inbox to the user tx space.
|
void |
txMoveDocumentToInboxOfUser(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
org.adorsys.docusafe.service.api.types.UserID receiverUserID,
DocumentFQN sourceDocumentFQN,
DocumentFQN destDocumentFQN,
MoveType moveType)
After this call, the file is copied or moved to the new user.
|
DSDocument |
txReadDocument(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentFQN documentFQN)
Reads the content of a document
|
void |
txStoreDocument(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DSDocument dsDocument)
writes byted to a file and stores the given Metadata with that file
|
createUser, destroyUser, nonTxListInbox, userExistsvoid beginTransaction(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth)
void txStoreDocument(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DSDocument dsDocument)
userIDAuth - user and passworddsDocument - data and metadata and FQN to be storedDSDocument txReadDocument(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth, DocumentFQN documentFQN)
userIDAuth - user and passworddocumentFQN - file to be readvoid txDeleteDocument(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentFQN documentFQN)
userIDAuth - user and passworddocumentFQN - file to be deletedTxBucketContentFQN txListDocuments(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth, DocumentDirectoryFQN documentDirectoryFQN, de.adorsys.dfs.connection.api.types.ListRecursiveFlag recursiveFlag)
userIDAuth - user and passworddocumentDirectoryFQN - folder to listrecursiveFlag - flag, to search deep or notTxDocumentFQNVersion getVersion(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth, DocumentFQN documentFQN)
userIDAuth - user and passworddocumentFQN - the document, the version is requested forboolean txDocumentExists(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentFQN documentFQN)
userIDAuth - user and passworddocumentFQN - name of the filevoid txDeleteFolder(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentDirectoryFQN documentDirectoryFQN)
userIDAuth - user and passworddocumentDirectoryFQN - name of the directoryvoid endTransaction(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth)
userIDAuth - user and passwordvoid txMoveDocumentToInboxOfUser(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
org.adorsys.docusafe.service.api.types.UserID receiverUserID,
DocumentFQN sourceDocumentFQN,
DocumentFQN destDocumentFQN,
MoveType moveType)
userIDAuth - user and passwordreceiverUserID - the new owner of the documentsourceDocumentFQN - the path of the file of the userdestDocumentFQN - the new path of the file for the new owner in its inboxmoveType - move oder keep_copy. keep_copy means, the file exists for both usersDSDocument txMoveDocumentFromInbox(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth, DocumentFQN source, DocumentFQN destination)
userIDAuth - user and passwordsource - file path in the inboxdestination - file path in the tx spaceCopyright © 2019. All rights reserved.