Class LazyLoadedOption
java.lang.Object
com.atlassian.jira.issue.customfields.option.LazyLoadedOption
- All Implemented Interfaces:
Option
,SimpleOption<Option>
,Comparable<Option>
-
Constructor Summary
ConstructorsConstructorDescriptionLazyLoadedOption
(org.ofbiz.core.entity.GenericValue gv, OptionsManager optionsManager, FieldConfigManager fieldManager) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Return a list of options that exist under this option (i.e.Get the disabled status.org.ofbiz.core.entity.GenericValue
The ID of the option or null if it currently does not have one.Get related CustomField's FieldConfig.getValue()
The current value of the option.int
hashCode()
retrieveAllChildren
(List<Option> listToAddTo) Deprecated.void
setDisabled
(Boolean disabled) void
setSequence
(Long sequence) void
void
store()
toString()
-
Constructor Details
-
LazyLoadedOption
public LazyLoadedOption(org.ofbiz.core.entity.GenericValue gv, OptionsManager optionsManager, FieldConfigManager fieldManager)
-
-
Method Details
-
getRelatedCustomField
Description copied from interface:Option
Get related CustomField's FieldConfig.- Specified by:
getRelatedCustomField
in interfaceOption
- Returns:
- FieldConfig of a CustomField
-
getParentOption
- Specified by:
getParentOption
in interfaceOption
-
getParentOptionId
- Specified by:
getParentOptionId
in interfaceOption
-
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 interfaceOption
- Specified by:
getChildOptions
in interfaceSimpleOption<Option>
- Returns:
- the list of options that exist under this option. An empty list is returned when such options exist.
-
retrieveAllChildren
Deprecated.- Specified by:
retrieveAllChildren
in interfaceOption
- Parameters:
listToAddTo
- the list to add the options to- Returns:
- a list of all descendant options
-
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 interfaceOption
- Specified by:
getOptionId
in interfaceSimpleOption<Option>
- Returns:
- the ID of the option or null if it does not have one.
-
getSequence
- Specified by:
getSequence
in interfaceOption
-
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 interfaceOption
- Specified by:
getValue
in interfaceSimpleOption<Option>
- Returns:
- the value of the option.
-
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 interfaceOption
-
setValue
-
setSequence
- Specified by:
setSequence
in interfaceOption
-
setDisabled
- Specified by:
setDisabled
in interfaceOption
-
store
public void store() -
getGenericValue
public org.ofbiz.core.entity.GenericValue getGenericValue()- Specified by:
getGenericValue
in interfaceOption
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Option>
-
equals
-
hashCode
public int hashCode() -
toString
-