use of org.collectionspace.csp.api.ui.UIRequest in project application by collectionspace.
the class AuthoritiesVocabulariesSearchList method run.
@Override
public void run(Object in, String[] tail) throws UIException {
if (tail.length > 0) {
throw new UIException("Illegal search specified. Tail: " + r.getWebURL() + "/" + StringUtils.join(tail, "/"));
}
Request q = (Request) in;
UIRequest uir = q.getUIRequest();
if (search) {
searchtype(q.getStorage(), uir, uir.getRequestArgument(SEARCH_QUERY_PARAM), uir.getRequestArgument(PAGE_SIZE_PARAM), uir.getRequestArgument(PAGE_NUM_PARAM));
} else {
searchtype(q.getStorage(), uir, null, uir.getRequestArgument(PAGE_SIZE_PARAM), uir.getRequestArgument(PAGE_NUM_PARAM));
}
}
Aggregations