public class SuppressByMixinFilter extends DefaultFilter implements EventFilter
EventFilter
that extends DefaultFilter
to also suppress events
emitted by nodes with a provided set of mixins.Constructor and Description |
---|
SuppressByMixinFilter(Set<String> suppressedMixins) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(javax.jcr.observation.Event event) |
com.google.common.base.Predicate<javax.jcr.observation.Event> |
getFilter(javax.jcr.Session session)
Return a
Predicate with which to filter JCR Event s. |
getMixinTypes
public SuppressByMixinFilter(Set<String> suppressedMixins)
suppressedMixins
- Resources with these mixins will be filtered outpublic com.google.common.base.Predicate<javax.jcr.observation.Event> getFilter(javax.jcr.Session session)
EventFilter
Predicate
with which to filter JCR Event
s.getFilter
in interface EventFilter
getFilter
in class DefaultFilter
session
- the sessionpublic boolean apply(javax.jcr.observation.Event event)
apply
in interface com.google.common.base.Predicate<javax.jcr.observation.Event>
apply
in class DefaultFilter
Copyright © 2013–2015 DuraSpace, Inc.. All rights reserved.