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