@Controller @RequestMapping(value="/plugin/gaflistimporter") @Scope(value="request") public class GafListImporterController extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID |
static java.lang.String |
KEY_GAF_LIST_DATASET_IDENTIFIER |
static java.lang.String |
KEY_GAF_LIST_PROTOCOL_NAME |
static java.lang.String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
GafListImporterController(GafListFileImporterService gafListFileImporter,
MolgenisSettings molgenisSettings) |
| Modifier and Type | Method and Description |
|---|---|
ErrorMessageResponse |
handleThrowable(java.lang.Throwable t) |
java.lang.String |
importGAFList(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model) |
java.lang.String |
importGAFList(org.springframework.ui.Model model) |
java.lang.String |
init(org.springframework.ui.Model model) |
java.lang.String |
validateGAFList(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile csvFile,
org.springframework.ui.Model model) |
java.lang.String |
validateGAFList(org.springframework.ui.Model model) |
getId, getUripublic static final java.lang.String ID
public static final java.lang.String URI
public static final java.lang.String KEY_GAF_LIST_PROTOCOL_NAME
public static final java.lang.String KEY_GAF_LIST_DATASET_IDENTIFIER
@Autowired public GafListImporterController(GafListFileImporterService gafListFileImporter, MolgenisSettings molgenisSettings)
@RequestMapping(method=GET)
@PreAuthorize(value="hasAnyRole(\'ROLE_SU\')")
public java.lang.String init(org.springframework.ui.Model model)
throws java.lang.Exception
java.lang.Exception@RequestMapping(method=GET,
value="/validate")
@PreAuthorize(value="hasAnyRole(\'ROLE_SU\')")
public java.lang.String validateGAFList(org.springframework.ui.Model model)
throws java.lang.Exception
java.lang.Exception@RequestMapping(method=GET,
value="/import")
@PreAuthorize(value="hasAnyRole(\'ROLE_SU\')")
public java.lang.String importGAFList(org.springframework.ui.Model model)
throws java.lang.Exception
java.lang.Exception@RequestMapping(method=POST,
value="/validate")
@PreAuthorize(value="hasAnyRole(\'ROLE_SU\')")
public java.lang.String validateGAFList(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="csvFile")
org.springframework.web.multipart.MultipartFile csvFile,
org.springframework.ui.Model model)
throws java.io.IOException,
ValueConverterException,
javax.mail.MessagingException,
java.lang.Exception
java.io.IOExceptionValueConverterExceptionjavax.mail.MessagingExceptionjava.lang.Exception@RequestMapping(method=POST,
value="/import")
@PreAuthorize(value="hasAnyRole(\'ROLE_SU\')")
public java.lang.String importGAFList(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model)
throws java.io.IOException,
ValueConverterException,
javax.mail.MessagingException,
java.lang.Exception
java.io.IOExceptionValueConverterExceptionjavax.mail.MessagingExceptionjava.lang.Exception@ExceptionHandler(value=java.lang.Throwable.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessageResponse handleThrowable(java.lang.Throwable t)
Copyright © 2014. All Rights Reserved.