Package org.opencms.db.storage.policy
Class CmsStoragePolicyContext
java.lang.Object
org.opencms.db.storage.policy.CmsStoragePolicyContext
Context for evaluating the storage policy for binary content.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsStoragePolicyContext(byte[] content) Creates a new storage policy context without a resource.CmsStoragePolicyContext(byte[] content, CmsResource resource) Creates a new storage policy context. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the binary content.Returns the resource.
-
Constructor Details
-
CmsStoragePolicyContext
Creates a new storage policy context without a resource.- Parameters:
content- the binary content
-
CmsStoragePolicyContext
Creates a new storage policy context.- Parameters:
content- the binary contentresource- the resource
-
-
Method Details
-
getContent
Returns the binary content.- Returns:
- the binary content
-
getResource
Returns the resource.- Returns:
- the resource
-