Enhancement on Project Activity #11690
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/workspace-task-executor-library@167321 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f966114e8f
commit
23a7289c78
|
@ -35,6 +35,7 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
* The encrypted VRE Token of the user in the VRE where submit the
|
||||
* computation
|
||||
*/
|
||||
private String scope;
|
||||
private String maskedToken;
|
||||
private String workspaceItemId;
|
||||
@JsonIgnoreProperties
|
||||
|
@ -51,32 +52,46 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
/**
|
||||
* Instantiates a new task configuration.
|
||||
*
|
||||
* @param configurationKey
|
||||
* the configuration key
|
||||
* @param taskId
|
||||
* the task id
|
||||
* @param taskDescription
|
||||
* the task description
|
||||
* @param maskedToken
|
||||
* the token
|
||||
* @param workspaceItemId
|
||||
* the workspace item id
|
||||
* @param mapParameters
|
||||
* the map parameters
|
||||
* @param configurationKey the configuration key
|
||||
* @param taskId the task id
|
||||
* @param taskDescription the task description
|
||||
* @param scope the scope
|
||||
* @param maskedToken the token
|
||||
* @param workspaceItemId the workspace item id
|
||||
* @param mapParameters the map parameters
|
||||
*/
|
||||
public TaskConfiguration(
|
||||
String configurationKey, String taskId, String taskDescription,
|
||||
String configurationKey, String taskId, String taskDescription, String scope,
|
||||
String maskedToken, String workspaceItemId,
|
||||
Map<String, String> mapParameters) {
|
||||
|
||||
setConfigurationKey(configurationKey);
|
||||
this.taskId = taskId;
|
||||
this.taskDescription = taskDescription;
|
||||
this.scope = scope;
|
||||
this.maskedToken = maskedToken;
|
||||
this.workspaceItemId = workspaceItemId;
|
||||
this.mapParameters = mapParameters;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the scope
|
||||
*/
|
||||
public String getScope() {
|
||||
|
||||
return scope;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param scope the scope to set
|
||||
*/
|
||||
public void setScope(String scope) {
|
||||
|
||||
this.scope = scope;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.gcube.common.workspacetaskexecutor.shared.BaseTaskConfiguration#
|
||||
|
@ -219,8 +234,7 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
this.maskedToken = maskedToken;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
|
@ -231,7 +245,9 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
builder.append(taskId);
|
||||
builder.append(", taskDescription=");
|
||||
builder.append(taskDescription);
|
||||
builder.append(", token=");
|
||||
builder.append(", scope=");
|
||||
builder.append(scope);
|
||||
builder.append(", maskedToken=");
|
||||
builder.append(maskedToken);
|
||||
builder.append(", workspaceItemId=");
|
||||
builder.append(workspaceItemId);
|
||||
|
@ -242,4 +258,6 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
builder.append("]");
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -220,7 +220,7 @@ public class TestDataMinerTaskExecutor {
|
|||
public static TaskConfiguration createDummyConfiguration(int index){
|
||||
Map<String, String> mapParameters = new HashMap<String, String>();
|
||||
mapParameters.put("publiclink", "this is the public link "+index);
|
||||
return new TaskConfiguration(index+"", UUID.randomUUID().toString(), null, "my token", WORKSPACE_FOLDER_ID, mapParameters);
|
||||
return new TaskConfiguration(index+"", UUID.randomUUID().toString(), null, SCOPE, "my token", WORKSPACE_FOLDER_ID, mapParameters);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue