Search in sources :

Example 26 with Request

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

the class RelateSearchList 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(RELATION_SOURCE_PARAM), uir.getRequestArgument(RELATION_TARGET_PARAM), uir.getRequestArgument(RELATION_TYPE_PARAM));
    } else {
        search_or_list(q.getStorage(), uir, null, null, null);
    }
}
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 27 with Request

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

the class BlobCreateUpdate 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 28 with Request

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

the class AuthoritiesVocabulariesInitialize method run.

@Override
public void run(Object in, String[] tail) throws UIException {
    Request q = (Request) in;
    initializeVocab(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 29 with Request

use of org.collectionspace.chain.csp.webui.main.Request 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)

Example 30 with Request

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

the class VocabulariesDelete 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 : 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