[Bug #12269] Fixing key parameter for type FILE<
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/ws-task-executor-widget@169987 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ae2c07e812
commit
c5b72d3a0a
|
@ -1,6 +1,7 @@
|
|||
<ReleaseNotes>
|
||||
<Changeset component="org.gcube.portlets-widgets.ws-task-executor-widget.0-1-0"
|
||||
date="2018-05-08">
|
||||
date="2018-07-30">
|
||||
<Change>[Bug #12269] Fixing key parameter for type FILE</Change>
|
||||
<Change>first release</Change>
|
||||
</Changeset>
|
||||
</ReleaseNotes>
|
||||
|
|
|
@ -281,13 +281,14 @@ public abstract class CreateTaskConfigurationView extends Composite {
|
|||
for (TaskParameter operator : taskOperator.getInputOperators()) {
|
||||
addedPublicLink = false;
|
||||
if(!wsItem.isFolder()){
|
||||
//IF ITEM IS A FILE ISTANCING ITS FIRST FILE PARAMETER OCCURED (IF IT EXISTS) WIHT THE PUBLIC LINK OF THE ITEM
|
||||
//IF ITEM IS A FILE THEN I'M ISTANCING ITS FIRST FILE PARAMETER OCCURED (IF IT EXISTS) WITH THE PUBLIC LINK OF THE ITEM
|
||||
if(operator.getType().getType().equals("FILE")){
|
||||
countFileParameter++;
|
||||
if(countFileParameter==1){
|
||||
List<String> pLink = new ArrayList<String>(1);
|
||||
pLink.add(wsItem.getPublicLink());
|
||||
appendCustomField("publicLink", pLink, operator.getType().getType(), false);
|
||||
String publicLinkParamName = operator.getKey()!=null? operator.getKey():"publicLink";
|
||||
appendCustomField(publicLinkParamName, pLink, operator.getType().getType(), false);
|
||||
addedPublicLink = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue