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)
OdfRestrictionRulecontains in interface OdfRestrictionRuleprogram - The programtrue If the program is part of this restrictionpublic Expression getExpression()
OdfRestrictionRulegetExpression in interface OdfRestrictionRulepublic boolean hasOrgunitRestrictions()
OdfRestrictionRulehasOrgunitRestrictions in interface OdfRestrictionRule