Class OdfOrgunitRestrictionRule
java.lang.Object
org.ametys.plugins.odfweb.restrictions.rules.OdfOrgunitRestrictionRule
- All Implemented Interfaces:
OdfRestrictionRule
This implementation of
OdfRestrictionRule
restricts ODF to a orgunit and their child orgunits-
Constructor Summary
ConstructorDescriptionOdfOrgunitRestrictionRule
(RootOrgUnitProvider ouProvider, String orgUnitId) Constructor for ODF rule restriction on a orgunit -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if this program is part of this restrictionTranslate the restriction into an expression that can be used for repository query.boolean
Indicate if this restriction is related to orgunit
-
Constructor Details
-
OdfOrgunitRestrictionRule
Constructor for ODF rule restriction on a orgunit- Parameters:
ouProvider
- The orgunits providerorgUnitId
- The id of orgunit
-
-
Method Details
-
getExpression
Description copied from interface:OdfRestrictionRule
Translate the restriction into an expression that can be used for repository query.- Specified by:
getExpression
in interfaceOdfRestrictionRule
- Returns:
- The restriction expression
-
contains
Description copied from interface:OdfRestrictionRule
Determines if this program is part of this restriction- Specified by:
contains
in interfaceOdfRestrictionRule
- Parameters:
program
- The program- Returns:
true
If the program is part of this restriction
-
hasOrgunitRestrictions
Description copied from interface:OdfRestrictionRule
Indicate if this restriction is related to orgunit- Specified by:
hasOrgunitRestrictions
in interfaceOdfRestrictionRule
- Returns:
- true if it is the case
-