com.dtolabs.rundeck.plugins.storage
Interface StorageConverterPlugin

All Known Implementing Classes:
StorageTimestamperConverter

public interface StorageConverterPlugin

Plugin to convert storage resource data


Method Summary
 HasInputStream createResource(Path path, ResourceMetaBuilder resourceMetaBuilder, HasInputStream hasInputStream)
          Convert a resource during create operation and return a new data stream, or null to pass the data without changing.
 HasInputStream readResource(Path path, ResourceMetaBuilder resourceMetaBuilder, HasInputStream hasInputStream)
          Convert a resource during read operation and return a new data stream, or null to pass the data without changing.
 HasInputStream updateResource(Path path, ResourceMetaBuilder resourceMetaBuilder, HasInputStream hasInputStream)
          Convert a resource during update operation and return a new data stream, or null to pass the data without changing.
 

Method Detail

readResource

HasInputStream readResource(Path path,
                            ResourceMetaBuilder resourceMetaBuilder,
                            HasInputStream hasInputStream)
Convert a resource during read operation and return a new data stream, or null to pass the data without changing.

Parameters:
path - input path
resourceMetaBuilder - builder to modify metadata
hasInputStream - accessor for underlying data stream
Returns:
new data stream, or null

createResource

HasInputStream createResource(Path path,
                              ResourceMetaBuilder resourceMetaBuilder,
                              HasInputStream hasInputStream)
Convert a resource during create operation and return a new data stream, or null to pass the data without changing.

Parameters:
path - input path
resourceMetaBuilder - builder to modify metadata
hasInputStream - accessor for underlying data stream
Returns:
new data stream, or null

updateResource

HasInputStream updateResource(Path path,
                              ResourceMetaBuilder resourceMetaBuilder,
                              HasInputStream hasInputStream)
Convert a resource during update operation and return a new data stream, or null to pass the data without changing.

Parameters:
path - input path
resourceMetaBuilder - builder to modify metadata
hasInputStream - accessor for underlying data stream
Returns:
new data stream, or null