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);
}
}
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, "/"));
}
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, "/"));
}
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));
}
}
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, "/"));
}
Aggregations