Class CmsStoredContentInfo

java.lang.Object
org.opencms.file.CmsStoredContentInfo

public class CmsStoredContentInfo extends Object
Describes where the binary content for a VFS resource is stored without loading the content bytes.

  • Constructor Details

    • CmsStoredContentInfo

      public CmsStoredContentInfo(CmsResource resource, String storage, String hash, long length)
      Creates a new stored content info instance.

      Parameters:
      resource - the resource
      storage - the storage identifier
      hash - the content hash
      length - the content length
  • Method Details

    • getHash

      public String getHash()
      Returns the content hash.

      Returns:
      the content hash
    • getLength

      public long getLength()
      Returns the content length.

      Returns:
      the content length
    • getResource

      Returns the resource.

      Returns:
      the resource
    • getStorage

      public String getStorage()
      Returns the storage identifier.

      Returns:
      the storage identifier
    • isExternallyStored

      public boolean isExternallyStored()
      Returns if the content is externally stored.

      Returns:
      true if the content is externally stored
    • isStoredIn

      public boolean isStoredIn(String storage)
      Returns if the content is stored in the given storage backend.

      Parameters:
      storage - the storage identifier
      Returns:
      true if the content is stored in the given storage backend