public class TransactionalDocumentSafeServiceImpl extends NonTransactionalDocumentSafeServiceImpl implements TransactionalDocumentSafeService
| Modifier and Type | Field and Description |
|---|---|
static String |
CURRENT_TRANSACTION_DATA |
documentSafeService| Constructor and Description |
|---|
TransactionalDocumentSafeServiceImpl(RequestMemoryContext requestMemoryContext,
DocumentSafeService documentSafeService) |
| 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
|
static DSDocument |
modifyTxDocument(DSDocument dsDocument,
TxID txid) |
static DocumentFQN |
modifyTxDocumentName(DocumentFQN origName,
TxID txid) |
static DocumentFQN |
modifyTxMetaDocumentName(DocumentFQN origName,
TxID txid) |
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, userExistsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateUser, destroyUser, nonTxListInbox, userExistspublic static final String CURRENT_TRANSACTION_DATA
public TransactionalDocumentSafeServiceImpl(RequestMemoryContext requestMemoryContext, DocumentSafeService documentSafeService)
public void beginTransaction(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth)
beginTransaction in interface TransactionalDocumentSafeServicepublic void txStoreDocument(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DSDocument dsDocument)
TransactionalDocumentSafeServicetxStoreDocument in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddsDocument - data and metadata and FQN to be storedpublic DSDocument txReadDocument(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth, DocumentFQN documentFQN)
TransactionalDocumentSafeServicetxReadDocument in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentFQN - file to be readpublic void txDeleteDocument(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentFQN documentFQN)
TransactionalDocumentSafeServicetxDeleteDocument in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentFQN - file to be deletedpublic TxBucketContentFQN txListDocuments(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth, DocumentDirectoryFQN documentDirectoryFQN, de.adorsys.dfs.connection.api.types.ListRecursiveFlag recursiveFlag)
TransactionalDocumentSafeServicetxListDocuments in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentDirectoryFQN - folder to listrecursiveFlag - flag, to search deep or notpublic TxDocumentFQNVersion getVersion(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth, DocumentFQN documentFQN)
TransactionalDocumentSafeServicegetVersion in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentFQN - the document, the version is requested forpublic boolean txDocumentExists(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentFQN documentFQN)
TransactionalDocumentSafeServicetxDocumentExists in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentFQN - name of the filepublic void txDeleteFolder(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
DocumentDirectoryFQN documentDirectoryFQN)
TransactionalDocumentSafeServicetxDeleteFolder in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentDirectoryFQN - name of the directorypublic void endTransaction(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth)
TransactionalDocumentSafeServiceendTransaction in interface TransactionalDocumentSafeServiceuserIDAuth - user and passwordpublic void txMoveDocumentToInboxOfUser(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth,
org.adorsys.docusafe.service.api.types.UserID receiverUserID,
DocumentFQN sourceDocumentFQN,
DocumentFQN destDocumentFQN,
MoveType moveType)
TransactionalDocumentSafeServicetxMoveDocumentToInboxOfUser in interface TransactionalDocumentSafeServiceuserIDAuth - 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 userspublic DSDocument txMoveDocumentFromInbox(org.adorsys.docusafe.service.api.types.UserIDAuth userIDAuth, DocumentFQN source, DocumentFQN destination)
TransactionalDocumentSafeServicetxMoveDocumentFromInbox in interface TransactionalDocumentSafeServiceuserIDAuth - user and passwordsource - file path in the inboxdestination - file path in the tx spacepublic static DSDocument modifyTxDocument(DSDocument dsDocument, TxID txid)
public static DocumentFQN modifyTxDocumentName(DocumentFQN origName, TxID txid)
public static DocumentFQN modifyTxMetaDocumentName(DocumentFQN origName, TxID txid)
Copyright © 2019. All rights reserved.