ref 8819: Extend The Algorithms Importer to Manage Many Processes as Black Boxes
https://support.d4science.org/issues/8819 Updated the support for Processes as Black Boxes git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@150456 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7a61bafdcf
commit
ecbf7a137d
|
@ -132,6 +132,8 @@ public class ProjectBuilder {
|
|||
}
|
||||
|
||||
private void createMainCodeIfRequest() throws StatAlgoImporterServiceException {
|
||||
if (project.getProjectConfig() != null && project.getProjectConfig().getProjectSupport() != null
|
||||
&& project.getProjectConfig().getProjectSupport() instanceof ProjectSupportBlackBox) {
|
||||
if (project.getMainCode() != null && project.getMainCode().getItemDescription() != null) {
|
||||
ItemDescription mainCodeItemDescription = project.getMainCode().getItemDescription();
|
||||
if (mainCodeItemDescription.getId() != null && !mainCodeItemDescription.getId().isEmpty()) {
|
||||
|
@ -139,11 +141,12 @@ public class ProjectBuilder {
|
|||
filesStorage.deleteItemOnFolder(serviceCredentials.getUserName(), mainCodeItemDescription.getId());
|
||||
}
|
||||
}
|
||||
|
||||
MainGenerator mainGenerator = new MainGenerator();
|
||||
mainGenerator.createMain(serviceCredentials, project);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void repackageProjectPackage() throws StatAlgoImporterServiceException {
|
||||
List<String> idsToExclude = new ArrayList<String>();
|
||||
idsToExclude.add(backupFolderId);
|
||||
|
|
Loading…
Reference in New Issue