40 lines
885 B
Java
40 lines
885 B
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.common.workspacetaskexecutor;
|
|
|
|
import org.gcube.common.workspacetaskexecutor.shared.ItemNotExecutable;
|
|
|
|
|
|
/**
|
|
* The Interface ConfigurableTask.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Apr 26, 2018
|
|
* @param <I> the generic type
|
|
*/
|
|
public interface ConfigurableTask<I> {
|
|
|
|
|
|
/**
|
|
* Removes the task config.
|
|
*
|
|
* @param workspaceItemId the workspace item id
|
|
* @return the boolean
|
|
* @throws ItemNotExecutable the item not executable
|
|
* @throws Exception the exception
|
|
*/
|
|
Boolean removeTaskConfig(String workspaceItemId) throws ItemNotExecutable, Exception;
|
|
|
|
|
|
/**
|
|
* Adds the task config.
|
|
*
|
|
* @param config the config
|
|
* @return the boolean
|
|
* @throws ItemNotExecutable the item not executable
|
|
* @throws Exception the exception
|
|
*/
|
|
Boolean addTaskConfig(I config) throws ItemNotExecutable, Exception;
|
|
}
|