Search in sources :

Example 1 with FilterByUnits

use of info.xiancloud.apidoc.handler.filter.FilterByUnits in project xian by happyyangyuan.

the class CustomizedMdApidocUnit method getFilter.

@Override
protected IUnitFilter getFilter(UnitRequest msg) {
    IUnitFilter filter = new FilterByUnits();
    String unitFilter = msg.getString("unitFilter");
    if (!StringUtil.isEmpty(unitFilter)) {
        String[] fullNameArr = unitFilter.split(",");
        filter.setValues(Arrays.asList(fullNameArr));
    }
    return filter;
}
Also used : FilterByUnits(info.xiancloud.apidoc.handler.filter.FilterByUnits) IUnitFilter(info.xiancloud.apidoc.handler.filter.IUnitFilter)

Aggregations

FilterByUnits (info.xiancloud.apidoc.handler.filter.FilterByUnits)1 IUnitFilter (info.xiancloud.apidoc.handler.filter.IUnitFilter)1