Class WorkflowOption

java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.WorkflowOption

@Entity public class WorkflowOption extends PersistentObject
Description of possible options, which can be set as "Dynamic Processing Parameters" in Job Orders created using the owning Workflow
Author:
Dr. Thomas Bassler
  • Constructor Details

    • WorkflowOption

      public WorkflowOption()
  • Method Details

    • getWorkflow

      public Workflow getWorkflow()
      Gets the owning workflow
      Returns:
      the workflow
    • setWorkflow

      public void setWorkflow(Workflow workflow)
      Sets the owning workflow
      Parameters:
      workflow - the workflow to set
    • getName

      public String getName()
      Gets the option name
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the option name
      Parameters:
      name - the name to set
    • getDescription

      public String getDescription()
      Gets the option description
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets the option description
      Parameters:
      description - the description to set
    • getType

      Gets the option type
      Returns:
      the type
    • setType

      public void setType(WorkflowOption.WorkflowOptionType type)
      Sets the option type
      Parameters:
      type - the type to set
    • getDefaultValue

      public String getDefaultValue()
      Gets the default value for the option
      Returns:
      the default value if set, null otherwise
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
      Sets the default value for the option
      Parameters:
      defaultValue - the default value to set
    • getValueRange

      public List<String> getValueRange()
      Gets the available option values
      Returns:
      the value range (empty list if not specified)
    • setValueRange

      public void setValueRange(List<String> valueRange)
      Sets the available option values
      Parameters:
      valueRange - the value range to set
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class PersistentObject
    • equals

      public boolean equals(Object obj)
      Description copied from class: PersistentObject
      Test equality of persistent objects based on their unique ID.
      Overrides:
      equals in class PersistentObject
      Parameters:
      obj - the object to compare this object to
      Returns:
      true, if obj is a persistent object and has the same ID, false otherwise
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object