Class LazyLoadedOption

java.lang.Object
com.atlassian.jira.issue.customfields.option.LazyLoadedOption
All Implemented Interfaces:
Option, SimpleOption<Option>, Comparable<Option>

public class LazyLoadedOption extends Object implements Option, Comparable<Option>
  • Constructor Details

  • Method Details

    • getRelatedCustomField

      public FieldConfig getRelatedCustomField()
      Description copied from interface: Option
      Get related CustomField's FieldConfig.
      Specified by:
      getRelatedCustomField in interface Option
      Returns:
      FieldConfig of a CustomField
    • getParentOption

      public Option getParentOption()
      Specified by:
      getParentOption in interface Option
    • getParentOptionId

      @Nullable public Long getParentOptionId()
      Specified by:
      getParentOptionId in interface Option
    • getChildOptions

      @Nonnull public List<Option> getChildOptions()
      Description copied from interface: Option
      Return a list of options that exist under this option (i.e. its children).

      NOTE: This method is here is keep the API checker happy (JRADEV-23901).

      Specified by:
      getChildOptions in interface Option
      Specified by:
      getChildOptions in interface SimpleOption<Option>
      Returns:
      the list of options that exist under this option. An empty list is returned when such options exist.
    • retrieveAllChildren

      @Deprecated public List<Option> retrieveAllChildren(@Nullable List<Option> listToAddTo)
      Deprecated.
      Specified by:
      retrieveAllChildren in interface Option
      Parameters:
      listToAddTo - the list to add the options to
      Returns:
      a list of all descendant options
    • getOptionId

      @Nullable public Long getOptionId()
      Description copied from interface: Option
      The ID of the option or null if it currently does not have one.

      NOTE: This method is here is keep the API checker happy (see JRADEV-23901).

      Specified by:
      getOptionId in interface Option
      Specified by:
      getOptionId in interface SimpleOption<Option>
      Returns:
      the ID of the option or null if it does not have one.
    • getSequence

      public Long getSequence()
      Specified by:
      getSequence in interface Option
    • getValue

      public String getValue()
      Description copied from interface: Option
      The current value of the option. This is the option displayed to the user.

      NOTE: This method is here is keep the API checker happy (JRADEV-23901).

      Specified by:
      getValue in interface Option
      Specified by:
      getValue in interface SimpleOption<Option>
      Returns:
      the value of the option.
    • getDisabled

      public Boolean getDisabled()
      Description copied from interface: Option
      Get the disabled status. A disabled option will is not available to be assigned to this associated custom field, It remains valid historically and for searching with.
      Specified by:
      getDisabled in interface Option
    • setValue

      public void setValue(String value)
      Specified by:
      setValue in interface Option
    • setSequence

      public void setSequence(Long sequence)
      Specified by:
      setSequence in interface Option
    • setDisabled

      public void setDisabled(Boolean disabled)
      Specified by:
      setDisabled in interface Option
    • store

      public void store()
      Specified by:
      store in interface Option
    • getGenericValue

      public org.ofbiz.core.entity.GenericValue getGenericValue()
      Specified by:
      getGenericValue in interface Option
    • compareTo

      public int compareTo(@Nonnull Option o)
      Specified by:
      compareTo in interface Comparable<Option>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object