org.apache.cayenne

## Interface DataChannelFilter

-     public interface DataChannelFilter

  An interface of a filter that allows to intercept DataChannel operations. Filters allow to implement chains of custom processors around a DataChannel, that can be used for security, monitoring, business logic, providing context to lifecycle event listeners, etc.
  Since:
    3.1

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `init(DataChannel channel)`
    `QueryResponse` | `onQuery(ObjectContext originatingContext, Query query, DataChannelFilterChain filterChain)`
    `GraphDiff` | `onSync(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelFilterChain filterChain)`

- - ### Method Detail

    - #### init

          void init(DataChannel channel)

    - #### onQuery

          QueryResponse onQuery(ObjectContext originatingContext,
                                Query query,
                                DataChannelFilterChain filterChain)

    - #### onSync

          GraphDiff onSync(ObjectContext originatingContext,
                           GraphDiff changes,
                           int syncType,
                           DataChannelFilterChain filterChain)

Copyright © 2001–2018 Apache Cayenne. All rights reserved.