public class DefaultFilter extends Object implements EventFilter
EventFilter
that passes only events emitted from nodes with a Fedora
JCR type, or properties attached to them, except in the case of a node
removal. In that case, since we cannot test the node for its types, we assume
that any non-JCR namespaced node is fair game.Constructor and Description |
---|
DefaultFilter()
Default constructor.
|
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. |
protected static Collection<String> |
getMixinTypes(javax.jcr.observation.Event event) |
public DefaultFilter()
public 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
session
- the sessionpublic boolean apply(javax.jcr.observation.Event event)
apply
in interface com.google.common.base.Predicate<javax.jcr.observation.Event>
protected static Collection<String> getMixinTypes(javax.jcr.observation.Event event) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
Copyright © 2013–2015 DuraSpace, Inc.. All rights reserved.