public class OdfMetadataRestrictionRule extends Object implements OdfRestrictionRule
| Modifier and Type | Field and Description |
|---|---|
private ContentHelper |
_contentHelper |
private String |
_metadataPath |
private String |
_value |
| Constructor and Description |
|---|
OdfMetadataRestrictionRule(ContentHelper contentHelper,
String metadataPath,
String value)
Constructor for rule relating to the value of a metadata
|
| 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 ContentHelper _contentHelper
private final String _metadataPath
public OdfMetadataRestrictionRule(ContentHelper contentHelper, String metadataPath, String value)
contentHelper - The content helper componentmetadataPath - The path of metadatavalue - The metadata valuepublic Expression getExpression()
OdfRestrictionRulegetExpression in interface OdfRestrictionRulepublic boolean contains(Program program)
OdfRestrictionRulecontains in interface OdfRestrictionRuleprogram - The programtrue If the program is part of this restrictionpublic boolean hasOrgunitRestrictions()
OdfRestrictionRulehasOrgunitRestrictions in interface OdfRestrictionRule