Search in sources :

Example 11 with UIRequest

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));
    }
}
Also used : UIRequest(org.collectionspace.csp.api.ui.UIRequest) Request(org.collectionspace.chain.csp.webui.main.Request) UIException(org.collectionspace.csp.api.ui.UIException) UIRequest(org.collectionspace.csp.api.ui.UIRequest)

Aggregations

UIRequest (org.collectionspace.csp.api.ui.UIRequest)11 Request (org.collectionspace.chain.csp.webui.main.Request)7 JSONObject (org.json.JSONObject)5 UIException (org.collectionspace.csp.api.ui.UIException)4 UISession (org.collectionspace.csp.api.ui.UISession)3 JSONException (org.json.JSONException)3 HttpSession (javax.servlet.http.HttpSession)1 CSPDependencyException (org.collectionspace.csp.api.core.CSPDependencyException)1 CSPRequestCache (org.collectionspace.csp.api.core.CSPRequestCache)1 ExistException (org.collectionspace.csp.api.persistence.ExistException)1 Storage (org.collectionspace.csp.api.persistence.Storage)1 UnauthorizedException (org.collectionspace.csp.api.persistence.UnauthorizedException)1 UnderlyingStorageException (org.collectionspace.csp.api.persistence.UnderlyingStorageException)1 UnimplementedException (org.collectionspace.csp.api.persistence.UnimplementedException)1 RequestCache (org.collectionspace.csp.helper.core.RequestCache)1 StructuredDateFormatException (org.collectionspace.services.structureddate.StructuredDateFormatException)1 StructuredDateInternal (org.collectionspace.services.structureddate.StructuredDateInternal)1