public class OdfOrRestrictionRule extends Object implements OdfRestrictionRule
Modifier and Type | Field and Description |
---|---|
private Collection<OdfRestrictionRule> |
_rules |
Constructor and Description |
---|
OdfOrRestrictionRule(Collection<OdfRestrictionRule> rules)
Or restriction rule constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Program program)
Determines if this program is part of this restriction
|
Expression |
getExpression()
Translate the restriction into an expression that can be used for repository query.
|
boolean |
hasOrgunitRestrictions()
Indicate if this restriction is related to orgunit
|
private final Collection<OdfRestrictionRule> _rules
public OdfOrRestrictionRule(Collection<OdfRestrictionRule> rules)
rules
- The list of rules on which a "or" operator must be appliedpublic boolean contains(Program program)
OdfRestrictionRule
contains
in interface OdfRestrictionRule
program
- The programtrue
If the program is part of this restrictionpublic Expression getExpression()
OdfRestrictionRule
getExpression
in interface OdfRestrictionRule
public boolean hasOrgunitRestrictions()
OdfRestrictionRule
hasOrgunitRestrictions
in interface OdfRestrictionRule