Interface ResourceEntry.OperationalStrategy

Enclosing interface:
ResourceEntry

public static interface ResourceEntry.OperationalStrategy
A Operational Strategy type for the supplied ResourceEntry. This performs the operations on the underlying ResourceEntry.
  • Method Details

    • doIsOriginalContent

      default boolean doIsOriginalContent(ResourceEntry entry)
      Returns true if the content is the original content.
      Parameters:
      entry - the ResourceEntry
      Returns:
      true if the content is original
    • doIsOriginalReversePaths

      default boolean doIsOriginalReversePaths(ResourceEntry entry)
      Returns true if the content is the original content.
      Parameters:
      entry - the ResourceEntry
      Returns:
      true if the content is original
    • doFindResourceId

      default Optional<ResourceId> doFindResourceId(ResourceEntry entry)
      Finds the ResourceId for the ResourceEntry.
      Returns:
      the Optional<ResourceId> containing a ResourceId, or empty value
    • doLink

      default boolean doLink(ResourceEntry entry, Path toLink)
      Specifies how the ResourceEntry unlinks from the whole view of the snapshot.
      Parameters:
      entry - the entry
      toLink - the path to unlink
      Returns:
      true if the linking was successful, false otherwise
    • doUnlink

      default boolean doUnlink(ResourceEntry entry, Path toUnlink)
      Specifies how the ResourceEntry unlinks from the whole view of the snapshot.
      Parameters:
      entry - the entry
      toUnlink - the path to unlink
      Returns:
      true if the unlinking was successful, false otherwise
    • doUpdateResourceContents

      default ResourceContents doUpdateResourceContents(ResourceEntry resourceEntry)
      Specifies how the ResourceEntry updates contents.
    • doFindResourceContents

      default Optional<ResourceContents> doFindResourceContents(ResourceEntry entry)
      Specifies how the ResourceEntry loads contents.
      Parameters:
      entry - the entry
      Returns:
      the ReadableByteChannel
    • doGetReversePathsImmutable

      default Set<Path> doGetReversePathsImmutable(ResourceEntry entry)
      Gets the immutable reverse links from the ResourceEntry
      Parameters:
      entry - the entry
      Returns:
      a Set<Path> indicating the reverse linkags of this ResourceEntry
    • doDelete

      default boolean doDelete(ResourceEntry entry)
      Performs the operation to clear this entry and return it to nascent state.
      Parameters:
      entry - the entry to clear