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