Class StorageTimestamperConverter

  • All Implemented Interfaces:
    StorageConverterPlugin

    public class StorageTimestamperConverter
    extends java.lang.Object
    implements StorageConverterPlugin
    StorageTimestamperConverter sets modification and creation timestamp metadata for updated/created resources.
    Since:
    2014-03-16
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.rundeck.storage.api.HasInputStream createResource​(org.rundeck.storage.api.Path path, ResourceMetaBuilder resourceMetaBuilder, org.rundeck.storage.api.HasInputStream hasInputStream)
      Convert a resource during create operation and return a new data stream, or null to pass the data without changing.
      org.rundeck.storage.api.HasInputStream readResource​(org.rundeck.storage.api.Path path, ResourceMetaBuilder resourceMetaBuilder, org.rundeck.storage.api.HasInputStream hasInputStream)
      Convert a resource during read operation and return a new data stream, or null to pass the data without changing.
      org.rundeck.storage.api.HasInputStream updateResource​(org.rundeck.storage.api.Path path, ResourceMetaBuilder resourceMetaBuilder, org.rundeck.storage.api.HasInputStream hasInputStream)
      Convert a resource during update operation and return a new data stream, or null to pass the data without changing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StorageTimestamperConverter

        public StorageTimestamperConverter()
    • Method Detail

      • readResource

        public org.rundeck.storage.api.HasInputStream readResource​(org.rundeck.storage.api.Path path,
                                                                   ResourceMetaBuilder resourceMetaBuilder,
                                                                   org.rundeck.storage.api.HasInputStream hasInputStream)
        Description copied from interface: StorageConverterPlugin
        Convert a resource during read operation and return a new data stream, or null to pass the data without changing.
        Specified by:
        readResource in interface StorageConverterPlugin
        Parameters:
        path - input path
        resourceMetaBuilder - builder to modify metadata
        hasInputStream - accessor for underlying data stream
        Returns:
        new data stream, or null
      • createResource

        public org.rundeck.storage.api.HasInputStream createResource​(org.rundeck.storage.api.Path path,
                                                                     ResourceMetaBuilder resourceMetaBuilder,
                                                                     org.rundeck.storage.api.HasInputStream hasInputStream)
        Description copied from interface: StorageConverterPlugin
        Convert a resource during create operation and return a new data stream, or null to pass the data without changing.
        Specified by:
        createResource in interface StorageConverterPlugin
        Parameters:
        path - input path
        resourceMetaBuilder - builder to modify metadata
        hasInputStream - accessor for underlying data stream
        Returns:
        new data stream, or null
      • updateResource

        public org.rundeck.storage.api.HasInputStream updateResource​(org.rundeck.storage.api.Path path,
                                                                     ResourceMetaBuilder resourceMetaBuilder,
                                                                     org.rundeck.storage.api.HasInputStream hasInputStream)
        Description copied from interface: StorageConverterPlugin
        Convert a resource during update operation and return a new data stream, or null to pass the data without changing.
        Specified by:
        updateResource in interface StorageConverterPlugin
        Parameters:
        path - input path
        resourceMetaBuilder - builder to modify metadata
        hasInputStream - accessor for underlying data stream
        Returns:
        new data stream, or null