Class CmsStoragePolicyContext

java.lang.Object
org.opencms.db.storage.policy.CmsStoragePolicyContext

public class CmsStoragePolicyContext extends Object
Context for evaluating the storage policy for binary content.
  • Constructor Details

    • CmsStoragePolicyContext

      public CmsStoragePolicyContext(byte[] content)
      Creates a new storage policy context without a resource.
      Parameters:
      content - the binary content
    • CmsStoragePolicyContext

      public CmsStoragePolicyContext(byte[] content, CmsResource resource)
      Creates a new storage policy context.
      Parameters:
      content - the binary content
      resource - the resource
  • Method Details

    • getContent

      public byte[] getContent()
      Returns the binary content.
      Returns:
      the binary content
    • getResource

      Returns the resource.
      Returns:
      the resource