Added Task Name
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/workspace-task-executor-library@167727 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
07f7184e8e
commit
fd9aa5ab58
|
@ -22,6 +22,14 @@ public interface BaseTaskConfiguration {
|
|||
*/
|
||||
String getTaskId();
|
||||
|
||||
|
||||
/**
|
||||
* Gets the task name.
|
||||
*
|
||||
* @return the task name
|
||||
*/
|
||||
String getTaskName();
|
||||
|
||||
/**
|
||||
* Gets the workspace item id where execute the Task.
|
||||
*
|
||||
|
|
|
@ -30,6 +30,7 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
*/
|
||||
private static final long serialVersionUID = -3380573762288127547L;
|
||||
private String taskId;
|
||||
private String taskName;
|
||||
@JsonIgnoreProperties
|
||||
private String taskDescription; // optional
|
||||
/*
|
||||
|
@ -44,6 +45,7 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
private String configurationKey;
|
||||
private String owner;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new task configuration.
|
||||
*/
|
||||
|
@ -56,6 +58,7 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
*
|
||||
* @param configurationKey the configuration key
|
||||
* @param taskId the task id
|
||||
* @param taskName the task name
|
||||
* @param taskDescription the task description
|
||||
* @param owner the owner
|
||||
* @param scope the scope
|
||||
|
@ -64,12 +67,13 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
* @param listParameters the map parameters
|
||||
*/
|
||||
public TaskConfiguration(
|
||||
String configurationKey, String taskId, String taskDescription, String owner, String scope,
|
||||
String configurationKey, String taskId, String taskName, String taskDescription, String owner, String scope,
|
||||
String maskedToken, String workspaceItemId,
|
||||
List<TaskParameter> listParameters) {
|
||||
|
||||
setConfigurationKey(configurationKey);
|
||||
this.taskId = taskId;
|
||||
this.taskName = taskName;
|
||||
this.taskDescription = taskDescription;
|
||||
this.owner = owner;
|
||||
this.scope = scope;
|
||||
|
@ -255,6 +259,25 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return the taskName
|
||||
*/
|
||||
public String getTaskName() {
|
||||
|
||||
return taskName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param taskName the taskName to set
|
||||
*/
|
||||
public void setTaskName(String taskName) {
|
||||
|
||||
this.taskName = taskName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the masked token.
|
||||
*
|
||||
|
@ -274,6 +297,8 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("TaskConfiguration [taskId=");
|
||||
builder.append(taskId);
|
||||
builder.append(", taskName=");
|
||||
builder.append(taskName);
|
||||
builder.append(", taskDescription=");
|
||||
builder.append(taskDescription);
|
||||
builder.append(", scope=");
|
||||
|
@ -292,5 +317,4 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|||
return builder.toString();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue