Class AzureSubmissionDataStorageService
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.CayenneService
-
- com.avoka.fc.core.service.storage.AbstractSubmissionDataStorageService
-
- com.avoka.fc.core.service.storage.DatabaseSubmissionDataStorageService
-
- com.avoka.fc.core.service.storage.CloudSubmissionDataStorageService
-
- com.avoka.fc.core.service.storage.AzureSubmissionDataStorageService
-
- All Implemented Interfaces:
IServiceDefinitionAware
,ISubmissionDataStorageService
public class AzureSubmissionDataStorageService extends CloudSubmissionDataStorageService
Provides an Azure Submission Data Storage Service which stores submission data, binary PDF receipts and file attachments to the Azure blob storage facility. Utilise both local and Azure key vault encryption options.- Since:
- 20.5.0
-
-
Field Summary
-
Fields inherited from class com.avoka.fc.core.service.storage.CloudSubmissionDataStorageService
ENCRYPTION_MODE_LOCAL
-
Fields inherited from class com.avoka.fc.core.service.storage.DatabaseSubmissionDataStorageService
SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description AzureSubmissionDataStorageService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deleteData(String uri)
Delete data from store.protected void
deleteData(String uri, Submission submission)
Delete data from store.protected byte[]
getData(String uri)
Retrieve data from store.protected ISubmissionDataEncryptor
getDataEncryptor()
protected void
postData(String uri, byte[] data)
Post data to store.-
Methods inherited from class com.avoka.fc.core.service.storage.CloudSubmissionDataStorageService
createAndLogException, deleteAttachmentData, deleteSubmissionData, getAttachment, getAttachmentsEncoding, getEncryptionMode, getReceiptPdfEncoding, getServiceNameAndVersion, getSignatureReceipt, getSubmissionHistoryXmlEncoding, getSubmissionReceipt, getSubmissionXmlEncoding, initializeCryptoDataKey, setEncryptionMode, storeAttachment, storeSignatureReceipt, storeSubmissionReceipt
-
Methods inherited from class com.avoka.fc.core.service.storage.DatabaseSubmissionDataStorageService
getSubmissionHistoryXml, getSubmissionXml, storeSubmissionAndHistoryXml, storeSubmissionHistoryXml, storeSubmissionXml
-
Methods inherited from class com.avoka.fc.core.service.storage.AbstractSubmissionDataStorageService
decodeData, decryptText, encodeData, encryptText, getErrorLogService, getServiceDefinition, hasExternalizeStorage, refetchEntity, setAttachmentsEncoding, setDataEncryptor, setReceiptPdfEncoding, setServiceDefinition, setSubmissionHistoryXmlEncoding, setSubmissionXmlEncoding
-
Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
-
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
-
-
-
Method Detail
-
postData
protected void postData(String uri, byte[] data) throws IOException
Post data to store.- Specified by:
postData
in classCloudSubmissionDataStorageService
- Parameters:
uri
- the uri of the data (required)data
- the data to be stored (optional)- Throws:
IOException
-
deleteData
protected void deleteData(String uri)
Delete data from store.- Specified by:
deleteData
in classCloudSubmissionDataStorageService
- Parameters:
uri
- the uri of the stored data (required)
-
deleteData
protected void deleteData(String uri, Submission submission)
Delete data from store.- Specified by:
deleteData
in classCloudSubmissionDataStorageService
- Parameters:
uri
- the uri of the stored data (required)submission
- the submission associated with the data
-
getData
protected byte[] getData(String uri)
Retrieve data from store.- Specified by:
getData
in classCloudSubmissionDataStorageService
- Parameters:
uri
- the uri of the stored data (required)- Returns:
- a byte array of the stored data
-
getDataEncryptor
protected ISubmissionDataEncryptor getDataEncryptor()
- Overrides:
getDataEncryptor
in classAbstractSubmissionDataStorageService
- Returns:
- the submission data encryptor
-
-