|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.registry.sync.filtering.ServiceFilter
public class ServiceFilter
Class which stores the filtering rules and checks whether a service matches with one of these rules. If so this service is then ignored in the further processing of the synchronisation process.
There are two different kind of rules. The ones marked with a + are called positive rule. The ones with a - are called negative rule. They are different in their behavior.
If one wants to ignore a service the rule has to be negative, so a negative rule ignores all services which match for the given rule.
A positive rule guarantees that only the services which match this rule are taken into account, all other services are ignored.
The recognition of a rule is done via regular expressions, so to match a phrase, only parts of it are sufficienct enough. E.g. if you want to match mpiz-koeln.mpg.de you can use the whole phrase or just parts of it like mpiz mpiz-koeln mpg.de
The filter rules are case insensitive, so MIPS and mips are the same
Method Summary | |
---|---|
void |
addFilterRule(FilterRuleKeys ruleKey,
String rule)
Adds a new filtering rule. |
static ServiceFilter |
getServiceFilter()
The class is implemented as a singleton so this method returns the only instance |
boolean |
isServiceFiltered(MobyService service)
Returns whether a service was filtered and therefore is not processed any further in the update process. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ServiceFilter getServiceFilter()
public void addFilterRule(FilterRuleKeys ruleKey, String rule)
ruleKey
- the key to which the rule belongsrule
- the patternpublic boolean isServiceFiltered(MobyService service)
service
- the service to check
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |