Package org.cyclos.impl.storage
Class NoOpStoredFileContentAction
- java.lang.Object
-
- org.cyclos.impl.storage.NoOpStoredFileContentAction
-
- All Implemented Interfaces:
SaveStoredFileContentAction,StoredFileContentAction
public class NoOpStoredFileContentAction extends Object implements SaveStoredFileContentAction
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidconfirm()Stringkey()Return unique String representing the new stored content (commonly a string representation of the metadata).Objectmetadata()The metadata format depends on the content manager's implementation.
-
-
-
Method Detail
-
cancel
public void cancel()
- Specified by:
cancelin interfaceStoredFileContentAction
-
confirm
public void confirm()
- Specified by:
confirmin interfaceStoredFileContentAction
-
key
public String key()
Description copied from interface:SaveStoredFileContentActionReturn unique String representing the new stored content (commonly a string representation of the metadata).- Specified by:
keyin interfaceSaveStoredFileContentAction
-
metadata
public Object metadata()
Description copied from interface:SaveStoredFileContentActionThe metadata format depends on the content manager's implementation.- Specified by:
metadatain interfaceSaveStoredFileContentAction
-
-