Search in sources :

Example 16 with Request

use of org.collectionspace.chain.csp.webui.main.Request in project application by collectionspace.

the class UserDetailsSearchList method run.

public void run(Object in, String[] tail) throws UIException {
    Request q = (Request) in;
    UIRequest uir = q.getUIRequest();
    if (search) {
        search_or_list(q.getStorage(), uir, uir.getRequestArgument(SEARCH_QUERY_PARAM), uir.getRequestArgument(PAGE_SIZE_PARAM), uir.getRequestArgument(PAGE_NUM_PARAM));
    } else {
        search_or_list(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) UIRequest(org.collectionspace.csp.api.ui.UIRequest)

Example 17 with Request

use of org.collectionspace.chain.csp.webui.main.Request in project application by collectionspace.

the class UserRolesCreate method run.

public void run(Object in, String[] tail) throws UIException {
    Request q = (Request) in;
    store_set(q.getStorage(), q.getUIRequest(), StringUtils.join(tail, "/"));
}
Also used : UIRequest(org.collectionspace.csp.api.ui.UIRequest) Request(org.collectionspace.chain.csp.webui.main.Request)

Example 18 with Request

use of org.collectionspace.chain.csp.webui.main.Request in project application by collectionspace.

the class UserRolesDelete method run.

public void run(Object in, String[] tail) throws UIException {
    Request q = (Request) in;
    store_delete(q.getStorage(), q.getUIRequest(), StringUtils.join(tail, "/"));
}
Also used : Request(org.collectionspace.chain.csp.webui.main.Request) UIRequest(org.collectionspace.csp.api.ui.UIRequest)

Example 19 with Request

use of org.collectionspace.chain.csp.webui.main.Request in project application by collectionspace.

the class UserRolesSearchList method run.

public void run(Object in, String[] tail) throws UIException {
    Request q = (Request) in;
    UIRequest uir = q.getUIRequest();
    if (search) {
        search_or_list(q.getStorage(), uir, uir.getRequestArgument(SEARCH_QUERY_PARAM), uir.getRequestArgument(PAGE_SIZE_PARAM), uir.getRequestArgument(PAGE_NUM_PARAM));
    } else {
        search_or_list(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) UIRequest(org.collectionspace.csp.api.ui.UIRequest)

Example 20 with Request

use of org.collectionspace.chain.csp.webui.main.Request in project application by collectionspace.

the class VocabulariesCreateUpdate method run.

public void run(Object in, String[] tail) throws UIException {
    Request q = (Request) in;
    store_set(q.getStorage(), q.getUIRequest(), StringUtils.join(tail, "/"));
}
Also used : UIRequest(org.collectionspace.csp.api.ui.UIRequest) Request(org.collectionspace.chain.csp.webui.main.Request)

Aggregations

Request (org.collectionspace.chain.csp.webui.main.Request)36 UIRequest (org.collectionspace.csp.api.ui.UIRequest)34 JSONObject (org.json.JSONObject)5 CacheTermList (org.collectionspace.chain.csp.webui.nuispec.CacheTermList)2 UIException (org.collectionspace.csp.api.ui.UIException)2 UISession (org.collectionspace.csp.api.ui.UISession)1 StructuredDateFormatException (org.collectionspace.services.structureddate.StructuredDateFormatException)1 StructuredDateInternal (org.collectionspace.services.structureddate.StructuredDateInternal)1 JSONException (org.json.JSONException)1