Package org.opencms.db.storage.policy
Class CmsStoragePolicyEngine.AndRule
java.lang.Object
org.opencms.db.storage.policy.CmsStoragePolicyEngine.AndRule
- All Implemented Interfaces:
CmsStoragePolicyEngine.StorageRule
- Enclosing class:
CmsStoragePolicyEngine
public static class CmsStoragePolicyEngine.AndRule
extends Object
implements CmsStoragePolicyEngine.StorageRule
A rule implementation that combines multiple rules using a logical AND operation.
-
Constructor Summary
ConstructorsConstructorDescriptionAndRule(CmsStoragePolicyEngine.StorageRule... rules) Creates a new AND-rule. -
Method Summary
Modifier and TypeMethodDescriptionEvaluates if the content should be stored in the external storage.
-
Constructor Details
-
AndRule
Creates a new AND-rule.- Parameters:
rules- the rules to combine
-
-
Method Details
-
shouldStoreOffloaded
Description copied from interface:CmsStoragePolicyEngine.StorageRuleEvaluates if the content should be stored in the external storage.- Specified by:
shouldStoreOffloadedin interfaceCmsStoragePolicyEngine.StorageRule- Parameters:
context- the storage policy context- Returns:
Boolean.TRUEif it should be offloaded,Boolean.FALSEif it should stay local, ornullif the rule does not apply.- See Also:
-