Package org.mycore.access.facts.model
Interface MCRCondition
- All Known Subinterfaces:
MCRCombinedCondition
,MCRFactComputable<F>
,MCRFactCondition<F>
- All Known Implementing Classes:
MCRAbstractCombinedCondition
,MCRAbstractCondition
,MCRAbstractFactCondition
,MCRAndCondition
,MCRCategoryCondition
,MCRCreatedByCondition
,MCRIPCondition
,MCRMODSCollectionCondition
,MCRMODSEmbargoCondition
,MCRMODSGenreCondition
,MCRNotCondition
,MCROrCondition
,MCRPIHasRegisteredCondition
,MCRRegExCondition
,MCRRoleCondition
,MCRStateCondition
,MCRStringCondition
,MCRUserCondition
public interface MCRCondition
This interface represents a rule of the fact-based access system.
It is specified in the rules.xml file.
Sub interfaces are
MCRCombinedCondition
, which is used to build a boolean algebra (and, or, not, ...)
and MCRFactCondition
, which validates existing facts or creates new ones.
New rules need to be registered in mycore.properties as follows:
MCR.Access.Facts.Condition.{type}={class}
e.g. MCR.Access.Facts.Condition.ip=org.mycore.access.facts.condition.fact.MCRIPCondition- Author:
- Robert Stephan
-
Method Summary
Modifier and TypeMethodDescriptionThis is primary for rules.xml debugging purposesgetType()
the type of the ruleboolean
isDebug()
boolean
matches
(MCRFactsHolder facts) void
void
setDebug
(boolean b)