Interface DecoratedTaskDefinition<T extends TaskContainer>

    • Method Detail

      • 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