@Override public Servers listServers(int pageSize, int pageNumber, OrderBy orderBy, Filter filter) { orderBy.validate(ORDER_BY_PARAMETERS); filter.validate(FILTER_PARAMETERS); return httpClient.get( "server/server", Servers.class, filter.concatenateParameters( new Param(Param.PAGE_SIZE, pageSize), new Param(Param.PAGE_NUMBER, pageNumber), new Param(Param.ORDER_BY, orderBy.concatenateParameters()))); }
@Override public AntiAffinityRules listAntiAffinityRules( int pageSize, int pageNumber, OrderBy orderBy, Filter filter) { orderBy.validate(RULES_ORDER_BY_PARAMETERS); filter.validate(RULES_FILTER_PARAMETERS); return httpClient.get( "server/antiAffinityRule", AntiAffinityRules.class, filter.concatenateParameters( new Param(Param.PAGE_SIZE, pageSize), new Param(Param.PAGE_NUMBER, pageNumber), new Param(Param.ORDER_BY, orderBy.concatenateParameters()))); }