lib/api.route.handler.js
function getFilters(resourceName, adapterName, operation) {
    var filterConfig = injector.loadModule('filterConfig');
    var filters = { before: [], after: [] };

    if (!filterConfig) { return filters; }

    var levels = [resourceName, adapterName, operation, 'before'];
    filters.before = (traverseFilters(filterConfig, levels, 0) || []).map(function (name) {
        return injector.loadModule(name + 'Filter');
    });

    levels = [resourceName, adapterName, operation, 'after'];
    filters.after = (traverseFilters(filterConfig, levels, 0) || []).map(function (name) {
        return injector.loadModule(name + 'Filter');
    });

    return filters;
}
function getFilters(resourceName, adapterName, operation) {
    var filterConfig = injector.loadModule('filterConfig');
    var filters = { before: [], after: [] };

    if (!filterConfig) { return filters; }

    var levels = [resourceName, adapterName, operation, 'before'];
    filters.before = (traverseFilters(filterConfig, levels, 0) || []).map(function (name) {
        return injector.loadModule(name + 'Filter');
    });

    levels = [resourceName, adapterName, operation, 'after'];
    filters.after = (traverseFilters(filterConfig, levels, 0) || []).map(function (name) {
        return injector.loadModule(name + 'Filter');
    });

    return filters;
}
function getFilters ( resourceName , adapterName , operation ) { var filterConfig = injector . loadModule ( 'filterConfig' ) ; var filters = { before : [ ] , after : [ ] } ; if ( ! filterConfig ) { return filters ; } var levels = [ resourceName , adapterName , operation , 'before' ] ; filters . before = ( traverseFilters ( filterConfig , levels , 0 ) || [ ] ) . map ( function ( name ) { return injector . loadModule ( name + 'Filter' ) ; } ) ; levels = [ resourceName , adapterName , operation , 'after' ] ; filters . after = ( traverseFilters ( filterConfig , levels , 0 ) || [ ] ) . map ( function ( name ) { return injector . loadModule ( name + 'Filter' ) ; } ) ; return filters ; }
Get before and after filters based on the current request and the filter config
@param resourceName
@param adapterName
@param operation
@returns {{}}
Get before and after filters based on the current request and the filter config