public class TransactionalDocumentSafeServiceImpl extends NonTransactionalDocumentSafeServiceImpl implements TransactionalDocumentSafeService
| Modifier and Type | Field and Description |
|---|---|
static String |
CURRENT_TRANSACTION_DATA |
documentSafeService, requestMemoryContext| Constructor and Description |
|---|
TransactionalDocumentSafeServiceImpl(RequestMemoryContext requestMemoryContext,
DocumentSafeService documentSafeService) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction(UserIDAuth userIDAuth) |
void |
endTransaction(UserIDAuth userIDAuth)
Commits the running transaction and all its changes.
|
org.adorsys.encobject.types.PublicKeyJWK |
findPublicEncryptionKey(UserID userID) |
static DSDocument |
modifyTxDocument(DSDocument dsDocument,
TxID txid) |
static DocumentFQN |
modifyTxDocumentName(DocumentFQN origName,
TxID txid) |
static DocumentFQN |
modifyTxMetaDocumentName(DocumentFQN origName,
TxID txid) |
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
|
BucketContentFQN |
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, grantAccessToNonTxFolder, nonTxDeleteDocument, nonTxDeleteFolder, nonTxDocumentExists, nonTxDocumentExists, nonTxListDocuments, nonTxReadDocument, nonTxReadDocument, nonTxStoreDocument, nonTxStoreDocument, userExistsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateUser, destroyUser, grantAccessToNonTxFolder, nonTxDeleteDocument, nonTxDeleteFolder, nonTxDocumentExists, nonTxDocumentExists, nonTxListDocuments, nonTxReadDocument, nonTxReadDocument, nonTxStoreDocument, nonTxStoreDocument, userExistspublic static final String CURRENT_TRANSACTION_DATA
public TransactionalDocumentSafeServiceImpl(RequestMemoryContext requestMemoryContext, DocumentSafeService documentSafeService)
public void beginTransaction(UserIDAuth userIDAuth)
beginTransaction in interface TransactionalDocumentSafeServicepublic void txStoreDocument(UserIDAuth userIDAuth, DSDocument dsDocument)
TransactionalDocumentSafeServicetxStoreDocument in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddsDocument - data and metadata and FQN to be storedpublic DSDocument txReadDocument(UserIDAuth userIDAuth, DocumentFQN documentFQN)
TransactionalDocumentSafeServicetxReadDocument in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentFQN - file to be readpublic void txDeleteDocument(UserIDAuth userIDAuth, DocumentFQN documentFQN)
TransactionalDocumentSafeServicetxDeleteDocument in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentFQN - file to be deletedpublic BucketContentFQN txListDocuments(UserIDAuth userIDAuth, DocumentDirectoryFQN documentDirectoryFQN, org.adorsys.encobject.types.ListRecursiveFlag recursiveFlag)
TransactionalDocumentSafeServicetxListDocuments in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentDirectoryFQN - folder to listrecursiveFlag - flag, to search deep or notpublic boolean txDocumentExists(UserIDAuth userIDAuth, DocumentFQN documentFQN)
TransactionalDocumentSafeServicetxDocumentExists in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentFQN - name of the filepublic void txDeleteFolder(UserIDAuth userIDAuth, DocumentDirectoryFQN documentDirectoryFQN)
TransactionalDocumentSafeServicetxDeleteFolder in interface TransactionalDocumentSafeServiceuserIDAuth - user and passworddocumentDirectoryFQN - name of the directorypublic void transferFromNonTxToTx(UserIDAuth userIDAuth, DocumentFQN nonTxFQN, DocumentFQN txFQN)
TransactionalDocumentSafeServicetransferFromNonTxToTx in interface TransactionalDocumentSafeServiceuserIDAuth - 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)public void endTransaction(UserIDAuth userIDAuth)
TransactionalDocumentSafeServiceendTransaction in interface TransactionalDocumentSafeServiceuserIDAuth - user and passwordpublic static DSDocument modifyTxDocument(DSDocument dsDocument, TxID txid)
public static DocumentFQN modifyTxDocumentName(DocumentFQN origName, TxID txid)
public static DocumentFQN modifyTxMetaDocumentName(DocumentFQN origName, TxID txid)
public org.adorsys.encobject.types.PublicKeyJWK findPublicEncryptionKey(UserID userID)
findPublicEncryptionKey in interface NonTransactionalDocumentSafeServicefindPublicEncryptionKey in class NonTransactionalDocumentSafeServiceImplCopyright © 2018. All rights reserved.