Class MCRIPCondition
java.lang.Object
org.mycore.access.facts.condition.MCRAbstractCondition
org.mycore.access.facts.condition.fact.MCRAbstractFactCondition<MCRIpAddressFact>
org.mycore.access.facts.condition.fact.MCRIPCondition
- All Implemented Interfaces:
MCRCondition
,MCRFactComputable<MCRIpAddressFact>
,MCRFactCondition<MCRIpAddressFact>
This condition checks if the current user has an IP of the specified IP range.
Example:
<ip>192.168.0.0/255.255.0.0</ip>
Please specify IP ranges with the full netmask.
- Author:
- Robert Stephan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeFact
(MCRFactsHolder facts) Implementors are responsible to store the facts holder in the fact set if applicablevoid
implementors of this method should call super.parse(xml) to bind the XML element to the conditionvoid
setDefaultIP
(String ip) Methods inherited from class org.mycore.access.facts.condition.fact.MCRAbstractFactCondition
getFactName, getTerm, matches, setFactName, setTerm
Methods inherited from class org.mycore.access.facts.condition.MCRAbstractCondition
getBoundElement, getType, isDebug, setDebug
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mycore.access.facts.model.MCRCondition
getBoundElement, getType, isDebug, setDebug
-
Constructor Details
-
MCRIPCondition
public MCRIPCondition()
-
-
Method Details
-
parse
Description copied from class:MCRAbstractFactCondition
implementors of this method should call super.parse(xml) to bind the XML element to the condition- Specified by:
parse
in interfaceMCRCondition
- Overrides:
parse
in classMCRAbstractFactCondition<MCRIpAddressFact>
-
computeFact
Description copied from interface:MCRFactComputable
Implementors are responsible to store the facts holder in the fact set if applicable- Parameters:
facts
- - the facts holder containing already retrieved facts- Returns:
-
setDefaultIP
-