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 TypeMethodDescriptionboolean
The 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 FieldManager
protected HackyFieldRendererRegistry
getHiddenFields
(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).int
hashCode()
protected void
init()
boolean
Returns true if this is the default FieldLayout.boolean
isFieldHidden
(String fieldId) Checks if a field is hidden in this field configuration.protected void
protected void
setInternalDescription
(String description) protected void
setInternalName
(String name) Methods inherited from class com.atlassian.jira.issue.fields.screen.AbstractGVBean
getGenericValue, isModified, setGenericValue, setModified, updateGV
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
init
in classAbstractGVBean
-
getId
Description copied from interface:FieldLayout
The id of the field configuration.- Specified by:
getId
in interfaceFieldLayout
- Returns:
- the id
-
getName
Description copied from interface:FieldLayout
The name of the field configuration- Specified by:
getName
in interfaceFieldLayout
- Returns:
- the name
-
getDescription
Description copied from interface:FieldLayout
The description of the field configuration.- Specified by:
getDescription
in interfaceFieldLayout
- Returns:
- the description
-
getType
-
isDefault
public boolean isDefault()Description copied from interface:FieldLayout
Returns true if this is the default FieldLayout. This means that the "type" field holds "value".- Specified by:
isDefault
in interfaceFieldLayout
- Returns:
- true if this is the default FieldLayout.
-
setId
-
setInternalName
-
setInternalDescription
-
getFieldLayoutItems
Description copied from interface:FieldLayout
A list of field layout item of this field configuration.- Specified by:
getFieldLayoutItems
in interfaceFieldLayout
- Returns:
- a list of field layout items of this field configuration.
-
getFieldLayoutItem
Description copied from interface:FieldLayout
Returns the field layout item for a given orderable field, if this orderable field is part of this field configuration.- Specified by:
getFieldLayoutItem
in 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:FieldLayout
Returns the field layout item for a given field if, if this field is part of this field configuration.- Specified by:
getFieldLayoutItem
in 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:FieldLayout
Returns all visible field layout items (system fields and custom fields) for a given project and issue type(s).- Specified by:
getVisibleLayoutItems
in 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:FieldLayout
Returns all visible field layout items (system fields and custom fields) for a given project and issue type(s).- Specified by:
getVisibleLayoutItems
in 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:FieldLayout
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).- Specified by:
getVisibleCustomFieldLayoutItems
in 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:FieldLayout
Returns all hidden fields (system fields and custom fields) for a given project and issue type(s).- Specified by:
getHiddenFields
in 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:FieldLayout
Returns the list of required fields for an issue type in a project.- Specified by:
getRequiredFieldLayoutItems
in interfaceFieldLayout
- Parameters:
project
- the projectissueTypes
- the issue type.- Returns:
- the list of required fields. System fields and custom fields.
-
isFieldHidden
Description copied from interface:FieldLayout
Checks if a field is hidden in this field configuration.- Specified by:
isFieldHidden
in interfaceFieldLayout
- Parameters:
fieldId
- the field id.- Returns:
- true if the field is hidden, otherwise false.
-
getRendererTypeForField
Description copied from interface:FieldLayout
Returns the render type for a given field in this field configuration.- Specified by:
getRendererTypeForField
in 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
-