Class FieldLayoutImpl
java.lang.Object
com.atlassian.jira.issue.fields.screen.AbstractGVBean
com.atlassian.jira.issue.fields.layout.field.FieldLayoutImpl
- All Implemented Interfaces:
FieldLayout
- Direct Known Subclasses:
EditableDefaultFieldLayoutImpl
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldLayoutImpl(org.ofbiz.core.entity.GenericValue genericValue, List<FieldLayoutItem> fieldLayoutItems) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe description of the field configuration.getFieldLayoutItem(OrderableField orderableField) Returns the field layout item for a given orderable field, if this orderable field is part of this field configuration.getFieldLayoutItem(String fieldId) Returns the field layout item for a given field if, if this field is part of this field configuration.A list of field layout item of this field configuration.protected FieldManagerprotected HackyFieldRendererRegistrygetHiddenFields(Project project, List<String> issueTypeIds) Returns all hidden fields (system fields and custom fields) for a given project and issue type(s).getId()The id of the field configuration.protected List<FieldLayoutItem> getName()The name of the field configurationgetRendererTypeForField(String fieldId) Returns the render type for a given field in this field configuration.getRequiredFieldLayoutItems(Project project, List<String> issueTypes) Returns the list of required fields for an issue type in a project.getType()getVisibleCustomFieldLayoutItems(Project project, List<String> issueTypes) Returns the list of Custom Fields in this Field Layout that are both visible and applicable to the given context (of project and Issue types).getVisibleLayoutItems(Project project, List<String> issueTypes) Returns all visible field layout items (system fields and custom fields) for a given project and issue type(s).getVisibleLayoutItems(ApplicationUser remoteUser, Project project, List<String> issueTypes) Returns all visible field layout items (system fields and custom fields) for a given project and issue type(s).inthashCode()protected voidinit()booleanReturns true if this is the default FieldLayout.booleanisFieldHidden(String fieldId) Checks if a field is hidden in this field configuration.protected voidprotected voidsetInternalDescription(String description) protected voidsetInternalName(String name) Methods inherited from class com.atlassian.jira.issue.fields.screen.AbstractGVBean
getGenericValue, isModified, setGenericValue, setModified, updateGVMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.issue.fields.layout.field.FieldLayout
getGenericValue
-
Field Details
-
fieldLayoutItemByFieldId
-
-
Constructor Details
-
FieldLayoutImpl
public FieldLayoutImpl(org.ofbiz.core.entity.GenericValue genericValue, List<FieldLayoutItem> fieldLayoutItems)
-
-
Method Details
-
init
protected void init()- Specified by:
initin classAbstractGVBean
-
getId
Description copied from interface:FieldLayoutThe id of the field configuration.- Specified by:
getIdin interfaceFieldLayout- Returns:
- the id
-
getName
Description copied from interface:FieldLayoutThe name of the field configuration- Specified by:
getNamein interfaceFieldLayout- Returns:
- the name
-
getDescription
Description copied from interface:FieldLayoutThe description of the field configuration.- Specified by:
getDescriptionin interfaceFieldLayout- Returns:
- the description
-
getType
-
isDefault
public boolean isDefault()Description copied from interface:FieldLayoutReturns true if this is the default FieldLayout. This means that the "type" field holds "value".- Specified by:
isDefaultin interfaceFieldLayout- Returns:
- true if this is the default FieldLayout.
-
setId
-
setInternalName
-
setInternalDescription
-
getFieldLayoutItems
Description copied from interface:FieldLayoutA list of field layout item of this field configuration.- Specified by:
getFieldLayoutItemsin interfaceFieldLayout- Returns:
- a list of field layout items of this field configuration.
-
getFieldLayoutItem
Description copied from interface:FieldLayoutReturns the field layout item for a given orderable field, if this orderable field is part of this field configuration.- Specified by:
getFieldLayoutItemin interfaceFieldLayout- Parameters:
orderableField- the orderable field to find in this field configuration.- Returns:
- the field layout item if this field is part of this field configuration, otherwise null.
-
getFieldLayoutItem
Description copied from interface:FieldLayoutReturns the field layout item for a given field if, if this field is part of this field configuration.- Specified by:
getFieldLayoutItemin interfaceFieldLayout- Parameters:
fieldId- the id of the field.- Returns:
- the field layout item if this field is part of this field configuration, otherwise null.
-
getVisibleLayoutItems
Description copied from interface:FieldLayoutReturns all visible field layout items (system fields and custom fields) for a given project and issue type(s).- Specified by:
getVisibleLayoutItemsin interfaceFieldLayout- Parameters:
project- the projectissueTypes- a list of issue types to use when checking for VISIBLE CUSTOM FIELDS.- Returns:
- all visible field layout items for the given project and it's issue type(s).
-
getVisibleLayoutItems
public List<FieldLayoutItem> getVisibleLayoutItems(ApplicationUser remoteUser, Project project, List<String> issueTypes) Description copied from interface:FieldLayoutReturns all visible field layout items (system fields and custom fields) for a given project and issue type(s).- Specified by:
getVisibleLayoutItemsin interfaceFieldLayout- Parameters:
remoteUser- the user TODO: User is not used! We should remove it!project- the projectissueTypes- a list of issue types to use when checking for VISIBLE CUSTOM FIELDS.- Returns:
- all visible field layout items for the given project and it's issue type(s).
-
getVisibleCustomFieldLayoutItems
public List<FieldLayoutItem> getVisibleCustomFieldLayoutItems(Project project, List<String> issueTypes) Description copied from interface:FieldLayoutReturns the list of Custom Fields in this Field Layout that are both visible and applicable to the given context (of project and Issue types).- Specified by:
getVisibleCustomFieldLayoutItemsin interfaceFieldLayout- Parameters:
project- The project contextissueTypes- The Issue Types for context- Returns:
- the list of visible Custom Fields applicable to the given context (of project and Issue types).
-
getHiddenFields
Description copied from interface:FieldLayoutReturns all hidden fields (system fields and custom fields) for a given project and issue type(s).- Specified by:
getHiddenFieldsin interfaceFieldLayout- Parameters:
project- the projectissueTypeIds- issueTypes a list of issue types to use when checking for HIDDEN CUSTOM FIELDS.- Returns:
- all hidden fields (system fields and custom fields).
-
getFieldManager
-
getHackyFieldRendererRegistry
-
getRequiredFieldLayoutItems
Description copied from interface:FieldLayoutReturns the list of required fields for an issue type in a project.- Specified by:
getRequiredFieldLayoutItemsin interfaceFieldLayout- Parameters:
project- the projectissueTypes- the issue type.- Returns:
- the list of required fields. System fields and custom fields.
-
isFieldHidden
Description copied from interface:FieldLayoutChecks if a field is hidden in this field configuration.- Specified by:
isFieldHiddenin interfaceFieldLayout- Parameters:
fieldId- the field id.- Returns:
- true if the field is hidden, otherwise false.
-
getRendererTypeForField
Description copied from interface:FieldLayoutReturns the render type for a given field in this field configuration.- Specified by:
getRendererTypeForFieldin interfaceFieldLayout- Parameters:
fieldId- the id of the field.- Returns:
- the type of the renderer e.g. DefaultTextRenderer.RENDERER_TYPE ("jira-text-renderer")
-
equals
-
hashCode
public int hashCode() -
getInternalList
-