@Controller @RequestMapping(value="/plugin/importwizard") public class ImportWizardController extends AbstractWizardController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
ImportWizardController(UploadWizardPage uploadWizardPage,
OptionsWizardPage optionsWizardPage,
PackageWizardPage packageWizardPage,
ValidationResultWizardPage validationResultWizardPage,
ImportResultsWizardPage importResultsWizardPage,
DataService dataService,
org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper,
UserAccountService userAccountService,
ImportServiceFactory importServiceFactory,
FileStore fileStore,
FileRepositoryCollectionFactory fileRepositoryCollectionFactory,
ImportRunService importRunService,
ExecutorService executorService,
org.molgenis.auth.GroupAuthorityFactory groupAuthorityFactory) |
ImportWizardController(UploadWizardPage uploadWizardPage,
OptionsWizardPage optionsWizardPage,
PackageWizardPage packageWizardPage,
ValidationResultWizardPage validationResultWizardPage,
ImportResultsWizardPage importResultsWizardPage,
DataService dataService,
org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper,
UserAccountService userAccountService,
ImportServiceFactory importServiceFactory,
FileStore fileStore,
FileRepositoryCollectionFactory fileRepositoryCollectionFactory,
ImportRunService importRunService,
org.molgenis.auth.GroupAuthorityFactory groupAuthorityFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupEntityClassPermissions(String groupId,
org.springframework.web.context.request.WebRequest webRequest) |
protected Wizard |
createWizard() |
Permissions |
getGroupEntityClassPermissions(String groupId,
org.springframework.web.context.request.WebRequest webRequest) |
org.springframework.http.ResponseEntity<String> |
importFile(javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile file,
String entityTypeId,
String packageId,
String action,
Boolean notify)
Imports entities present in the submitted file
|
org.springframework.http.ResponseEntity<String> |
importFileByUrl(javax.servlet.http.HttpServletRequest request,
String url,
String entityTypeId,
String packageId,
String action,
Boolean notify)
Imports entities present in the submitted file
|
getJavascripts, getStylesheets, init, next, onInit, previous, restart, wizardgetId, getPluginSettings, getUripublic static final String ID
public static final String URI
@Autowired public ImportWizardController(UploadWizardPage uploadWizardPage, OptionsWizardPage optionsWizardPage, PackageWizardPage packageWizardPage, ValidationResultWizardPage validationResultWizardPage, ImportResultsWizardPage importResultsWizardPage, DataService dataService, org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper, UserAccountService userAccountService, ImportServiceFactory importServiceFactory, FileStore fileStore, FileRepositoryCollectionFactory fileRepositoryCollectionFactory, ImportRunService importRunService, org.molgenis.auth.GroupAuthorityFactory groupAuthorityFactory)
public ImportWizardController(UploadWizardPage uploadWizardPage, OptionsWizardPage optionsWizardPage, PackageWizardPage packageWizardPage, ValidationResultWizardPage validationResultWizardPage, ImportResultsWizardPage importResultsWizardPage, DataService dataService, org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper grantedAuthoritiesMapper, UserAccountService userAccountService, ImportServiceFactory importServiceFactory, FileStore fileStore, FileRepositoryCollectionFactory fileRepositoryCollectionFactory, ImportRunService importRunService, ExecutorService executorService, org.molgenis.auth.GroupAuthorityFactory groupAuthorityFactory)
protected Wizard createWizard()
createWizard in class AbstractWizardController@GetMapping(value="/entityclass/group/{groupId}")
@ResponseBody
public Permissions getGroupEntityClassPermissions(@PathVariable
String groupId,
org.springframework.web.context.request.WebRequest webRequest)
@PostMapping(value="/add/entityclass/group")
@ResponseStatus(value=OK)
public void addGroupEntityClassPermissions(@RequestParam
String groupId,
org.springframework.web.context.request.WebRequest webRequest)
@PostMapping(value="/importByUrl") @ResponseBody public org.springframework.http.ResponseEntity<String> importFileByUrl(javax.servlet.http.HttpServletRequest request, @RequestParam(value="url") String url, @RequestParam(value="entityTypeId",required=false) String entityTypeId, @RequestParam(value="packageId",required=false) String packageId, @RequestParam(value="action",required=false) String action, @RequestParam(value="notify",required=false) Boolean notify) throws IOException, URISyntaxException
url - URL from which a file is downloadedIOExceptionURISyntaxException@PostMapping(value="/importFile") public org.springframework.http.ResponseEntity<String> importFile(javax.servlet.http.HttpServletRequest request, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile file, @RequestParam(value="entityTypeId",required=false) String entityTypeId, @RequestParam(value="packageId",required=false) String packageId, @RequestParam(value="action",required=false) String action, @RequestParam(value="notify",required=false) Boolean notify) throws IOException, URISyntaxException
file - File containing entities. Can be VCF, VCF.gz, or EMXentityTypeId - Only for VCF and VCF.gz. If set, uses this ID for the table name. Is ignored when uploading EMXpackageId - Only for VCF and VCF.gz. If set, places the VCF under the provided package. Is ignored when uploading EMX. If not set, uses the default package 'base'. Throws an error when the supplied package does not existaction - Specifies the import method. Supported: ADD, ADD_UPDATEnotify - Should admin be notified when the import fails?IOExceptionURISyntaxExceptionCopyright © 2017. All rights reserved.