Package org.cyclos.impl.storage
-
Interface Summary Interface Description SaveStoredFileContentAction StoredFileContentActioncontaining the metadata of a new stored content.StoredFileContentAction This interface represents a pending action made through theStoredFileContentManagerthat must be either confirmed or canceled.StoredFileContentManager Custom interface for the management ofStoredFile's contents.
You can create a new implementation of this interface and configure it in the cyclos.properties if you want to use your own storage different from those offered out of the box: database, file and Amazon S3.
This interface is not intended to be used directly from the services, instead the services will interact through theStoredFileHandler.StoredFileHandler Handler used to manageStoredFileentities and its content. -
Class Summary Class Description AmazonS3StoredFileContentManagerImpl Manager implementation using Amazon Simple Storage Service (Amazon S3) to store the file's content.
This implementation use as metadata the following String: bucketName/keyDbStoredFileContentManagerImpl Implementation using the database to store the contents of theStoredFileentities.
This implementation uses theStoredFile's id as metadata.DelayedSaveStoredFileContentAction Instances of this class means actions that does nothing until are confirmed.DelayedStoredFileContentAction Instances of this class means actions that does nothing until are confirmedFsStoredFileContentManagerImpl Manager implementation using the file system to store the file's content.GoogleCloudStoredFileContentManagerImpl Manager implementation using Google Cloud Storage to store the file's content.
This implementation use as metadata the following String: bucketName/keyNoOpStoredFileContentAction In case of database implementation the actions are automatically confirmed/canceled according to the transaction status.
Important: Instances of this class are ignored in theStoredFileTransactionEndListener.addFor(StoredFileContentAction)method.StoredFileContentManagerFactoryBean A component which registers theStoredFileHandleron the application contextStoredFileHandlerImpl StoredFileTransactionEndListener Listener used to confirm/cancel aStoredFileContentActionaccording to the transaction commit/rollback.
In case of transaction rollback the actions are processed in inverse order to ensure the correct cancelation.