|
|
|
@ -42,6 +42,7 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|
|
|
|
@JsonIgnoreProperties
|
|
|
|
|
private List<TaskParameter> listParameters; // optional
|
|
|
|
|
private String configurationKey;
|
|
|
|
|
private String owner;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Instantiates a new task configuration.
|
|
|
|
@ -56,19 +57,21 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|
|
|
|
* @param configurationKey the configuration key
|
|
|
|
|
* @param taskId the task id
|
|
|
|
|
* @param taskDescription the task description
|
|
|
|
|
* @param owner the owner
|
|
|
|
|
* @param scope the scope
|
|
|
|
|
* @param maskedToken the token
|
|
|
|
|
* @param workspaceItemId the workspace item id
|
|
|
|
|
* @param listParameters the map parameters
|
|
|
|
|
*/
|
|
|
|
|
public TaskConfiguration(
|
|
|
|
|
String configurationKey, String taskId, String taskDescription, String scope,
|
|
|
|
|
String configurationKey, String taskId, String taskDescription, String owner, String scope,
|
|
|
|
|
String maskedToken, String workspaceItemId,
|
|
|
|
|
List<TaskParameter> listParameters) {
|
|
|
|
|
|
|
|
|
|
setConfigurationKey(configurationKey);
|
|
|
|
|
this.taskId = taskId;
|
|
|
|
|
this.taskDescription = taskDescription;
|
|
|
|
|
this.owner = owner;
|
|
|
|
|
this.scope = scope;
|
|
|
|
|
this.maskedToken = maskedToken;
|
|
|
|
|
this.workspaceItemId = workspaceItemId;
|
|
|
|
@ -77,6 +80,8 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the scope.
|
|
|
|
|
*
|
|
|
|
|
* @return the scope
|
|
|
|
|
*/
|
|
|
|
|
public String getScope() {
|
|
|
|
@ -86,6 +91,8 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the scope.
|
|
|
|
|
*
|
|
|
|
|
* @param scope the scope to set
|
|
|
|
|
*/
|
|
|
|
|
public void setScope(String scope) {
|
|
|
|
@ -106,17 +113,24 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|
|
|
|
return configurationKey;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* (non-Javadoc)
|
|
|
|
|
* @see org.gcube.common.workspacetaskexecutor.shared.BaseTaskConfiguration#
|
|
|
|
|
* setAccessKey(java.lang.String)
|
|
|
|
|
/**
|
|
|
|
|
* Sets the configuration key.
|
|
|
|
|
*
|
|
|
|
|
* @param configurationKey the new configuration key
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void setConfigurationKey(String configurationKey) {
|
|
|
|
|
|
|
|
|
|
this.configurationKey = configurationKey;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
|
* @see org.gcube.common.workspacetaskexecutor.shared.BaseTaskConfiguration#getOwner()
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public String getOwner() {
|
|
|
|
|
|
|
|
|
|
return owner;
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
* (non-Javadoc)
|
|
|
|
|
* @see org.gcube.common.workspacetaskexecutor.TaskConfiguration#getTaskId()
|
|
|
|
@ -149,6 +163,8 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the list parameters.
|
|
|
|
|
*
|
|
|
|
|
* @return the listParameters
|
|
|
|
|
*/
|
|
|
|
|
public List<TaskParameter> getListParameters() {
|
|
|
|
@ -158,6 +174,8 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the list parameters.
|
|
|
|
|
*
|
|
|
|
|
* @param listParameters the listParameters to set
|
|
|
|
|
*/
|
|
|
|
|
public void setListParameters(List<TaskParameter> listParameters) {
|
|
|
|
@ -218,6 +236,8 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the masked token.
|
|
|
|
|
*
|
|
|
|
|
* @return the maskedToken
|
|
|
|
|
*/
|
|
|
|
|
public String getMaskedToken() {
|
|
|
|
@ -227,6 +247,8 @@ public class TaskConfiguration implements BaseTaskConfiguration, Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the masked token.
|
|
|
|
|
*
|
|
|
|
|
* @param maskedToken the maskedToken to set
|
|
|
|
|
*/
|
|
|
|
|
public void setMaskedToken(String maskedToken) {
|
|
|
|
|