use of org.apache.jackrabbit.spi.commons.EventFilterImpl in project jackrabbit by apache.
the class EventSubscription method setFilters.
/**
* Sets a new list of event filters for this subscription.
*
* @param filters the new filters.
* @throws RepositoryException if the filters array contains a unknown
* implementation of EventFilters.
*/
void setFilters(EventFilter[] filters) throws RepositoryException {
// check type
for (EventFilter filter : filters) {
if (!(filter instanceof EventFilterImpl)) {
throw new RepositoryException("Unknown filter implementation");
}
}
List<EventFilter> tmp = new ArrayList<EventFilter>(Arrays.asList(filters));
this.filters = Collections.unmodifiableList(tmp);
}
Aggregations