Interface DecoratedTaskDefinition<T extends TaskContainer>

All Superinterfaces:
EntityWithOid, ImmutableEntityWithOid, PluginKeyProvider, Serializable, TaskDefinition, TaskIdentifier
All Known Implementing Classes:
DecoratedTaskDefinitionImpl

@PublicApi public interface DecoratedTaskDefinition<T extends TaskContainer> extends TaskDefinition
A definition of one decorated configuration of a TaskType
Since:
5.10
  • Method Details

    • isValid

      boolean isValid()
      Validate this Task Definition by checking whether it is linked to a taskModuleDescriptor.
      Returns:
      whether this DecoratedTaskDefinition is valid.
    • getName

      @NotNull @NotNull String getName()
      Retrieve the name of this task.
      Returns:
      the name of this task. If the name is not defined in the TaskModuleDescriptor, the plugin key will be used.
    • getTaskContainer

      @NotNull T getTaskContainer()
      Retrieve the entity for which this task belongs.
      Returns:
      the entity that contains this task definition.
    • getJsonObject

      @NotNull @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Retrieve a JSON representation of this task definition.
      Returns:
      a JSON representation of this task definition.
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException