Class OdfMetadataRestrictionRule
java.lang.Object
org.ametys.plugins.odfweb.restrictions.rules.OdfMetadataRestrictionRule
- All Implemented Interfaces:
OdfRestrictionRule
Metadata restriction rule
-
Constructor Summary
ConstructorsConstructorDescriptionOdfMetadataRestrictionRule(String metadataPath, String untypedValue) Constructor for rule relating to the value of a metadata -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if this program is part of this restrictionTranslate the restriction into an expression that can be used for repository query.booleanIndicate if this restriction is related to orgunit
-
Constructor Details
-
OdfMetadataRestrictionRule
Constructor for rule relating to the value of a metadata- Parameters:
metadataPath- The path of metadatauntypedValue- The metadata untyped value
-
-
Method Details
-
getExpression
Description copied from interface:OdfRestrictionRuleTranslate the restriction into an expression that can be used for repository query.- Specified by:
getExpressionin interfaceOdfRestrictionRule- Returns:
- The restriction expression
-
contains
Description copied from interface:OdfRestrictionRuleDetermines if this program is part of this restriction- Specified by:
containsin interfaceOdfRestrictionRule- Parameters:
program- The program- Returns:
trueIf the program is part of this restriction
-
hasOrgunitRestrictions
Description copied from interface:OdfRestrictionRuleIndicate if this restriction is related to orgunit- Specified by:
hasOrgunitRestrictionsin interfaceOdfRestrictionRule- Returns:
- true if it is the case
-