public class OdfAndRestrictionRule extends Object implements OdfRestrictionRule
| Modifier and Type | Field and Description | 
|---|---|
| private Collection<OdfRestrictionRule> | _rules | 
| Constructor and Description | 
|---|
| OdfAndRestrictionRule(Collection<OdfRestrictionRule> rules)And 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 OdfAndRestrictionRule(Collection<OdfRestrictionRule> rules)
rules - The list of rules on which a "and" 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