@Controller @RequestMapping(value="/plugin/protocolviewer") public class ProtocolViewerController extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
KEY_ACTION_DOWNLOAD |
static String |
KEY_ACTION_ORDER |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
ProtocolViewerController(ProtocolViewerService protocolViewerService,
MolgenisSettings molgenisSettings,
SearchService searchService) |
getId, getUripublic static final String ID
public static final String URI
public static final String KEY_ACTION_DOWNLOAD
public static final String KEY_ACTION_ORDER
@Autowired public ProtocolViewerController(ProtocolViewerService protocolViewerService, MolgenisSettings molgenisSettings, SearchService searchService)
@RequestMapping(method=GET) public String init(org.springframework.ui.Model model)
@RequestMapping(value="/selection/{catalogId}",
method=GET)
@ResponseBody
public org.molgenis.omx.protocolviewer.ProtocolViewerController.SelectedItemsResponse getSelection(@PathVariable
Integer catalogId,
@RequestParam(required=false)
Integer start,
@RequestParam(required=false)
Integer end,
@RequestParam(value="excludes[]",required=false)
String[] excludedItems)
throws UnknownStudyDefinitionException,
UnknownCatalogException
@RequestMapping(value="/download/{catalogId}",
method=GET)
public void downloadSelection(javax.servlet.http.HttpServletResponse response,
@PathVariable
Integer catalogId)
throws IOException,
UnknownCatalogException
IOExceptionUnknownCatalogException@RequestMapping(value="/cart/add/{catalogId}",
method=POST)
@ResponseStatus(value=OK)
public void addToCart(@RequestBody
org.molgenis.omx.protocolviewer.ProtocolViewerController.CartUpdateRequest cartUpdateRequest,
@PathVariable
Integer catalogId)
throws UnknownCatalogException,
UnknownStudyDefinitionException
@RequestMapping(value="/cart/remove/{catalogId}",
method=POST)
@ResponseStatus(value=OK)
public void removeFromCart(@RequestBody
org.molgenis.omx.protocolviewer.ProtocolViewerController.CartUpdateRequest cartUpdateRequest,
@PathVariable
Integer catalogId)
throws UnknownCatalogException,
UnknownStudyDefinitionException
@RequestMapping(value="/order",
method=GET)
public String getOrderDataForm()
@RequestMapping(value="/order",
method=POST,
headers="Content-Type=multipart/form-data")
@ResponseStatus(value=NO_CONTENT)
public void orderData(@RequestParam
Integer catalogId,
@RequestParam
String name,
@RequestParam
javax.servlet.http.Part file)
throws IOException,
javax.mail.MessagingException,
UnknownCatalogException,
UnknownStudyDefinitionException
IOExceptionjavax.mail.MessagingExceptionUnknownCatalogExceptionUnknownStudyDefinitionException@RequestMapping(value="/orders",
method=GET)
@ResponseBody
public org.molgenis.omx.protocolviewer.ProtocolViewerController.StudyDefinitionsResponse getOrders()
@RequestMapping(value="/orders/view",
method=GET)
public String getOrdersForm()
@RequestMapping(value="/orders/{orderId}/view",
method=GET)
public org.springframework.web.servlet.ModelAndView getOrderDetailsForm(@NotNull@PathVariable
Integer orderId)
throws UnknownStudyDefinitionException
UnknownStudyDefinitionException@ExceptionHandler(value={UnknownCatalogException.class,UnknownStudyDefinitionException.class,java.io.IOException.class,javax.mail.MessagingException.class,java.lang.RuntimeException.class})
@ResponseStatus(value=INTERNAL_SERVER_ERROR)
@ResponseBody
public ErrorMessageResponse handleException(Exception e)
@RequestMapping(value="/items",
method=POST)
@ResponseBody
public SearchResult getItemsFromIndex(@RequestBody
Map<String,Object> request)
@RequestMapping(value="/search",
method=POST)
@ResponseBody
public SearchResult searchItems(@RequestBody
Map<String,Object> request)
Copyright © 2014. All Rights Reserved.