Interface FieldLayout
- All Known Subinterfaces:
EditableDefaultFieldLayout
,EditableFieldLayout
- All Known Implementing Classes:
EditableDefaultFieldLayoutImpl
,EditableFieldLayoutImpl
,FieldLayoutImpl
,MockFieldLayout
@PublicApi
public interface FieldLayout
NOTE: This is referred to as Field Configuration in the UI.
-
Method Summary
Modifier and TypeMethodDescriptionThe 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.org.ofbiz.core.entity.GenericValue
The generic value which represents this field configuration.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.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.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) Deprecated.boolean
Returns true if this is the default FieldLayout.boolean
isFieldHidden
(String fieldId) Checks if a field is hidden in this field configuration.
-
Method Details
-
getId
Long getId()The id of the field configuration.- Returns:
- the id
-
getName
String getName()The name of the field configuration- Returns:
- the name
-
getDescription
String getDescription()The description of the field configuration.- Returns:
- the description
-
getFieldLayoutItems
List<FieldLayoutItem> getFieldLayoutItems()A list of field layout item of this field configuration.- Returns:
- a list of field layout items of this field configuration.
-
getGenericValue
org.ofbiz.core.entity.GenericValue getGenericValue()The generic value which represents this field configuration.- Returns:
- the generic value
-
getFieldLayoutItem
Returns the field layout item for a given orderable field, if this orderable field is part of this field configuration.- 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
Returns the field layout item for a given field if, if this field is part of this field configuration.- Parameters:
fieldId
- the id of the field.- Returns:
- the field layout item if this field is part of this field configuration, otherwise null.
-
getVisibleLayoutItems
List<FieldLayoutItem> getVisibleLayoutItems(ApplicationUser remoteUser, Project project, List<String> issueTypes) Deprecated.UsegetVisibleLayoutItems(com.atlassian.jira.project.Project, java.util.List)
instead. Since v6.2.Returns all visible field layout items (system fields and custom fields) for a given project and issue type(s).- 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).
-
getVisibleLayoutItems
Returns all visible field layout items (system fields and custom fields) for a given project and issue type(s).- 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).
-
getVisibleCustomFieldLayoutItems
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).- 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
Returns all hidden fields (system fields and custom fields) for a given project and issue type(s).- 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).
-
getRequiredFieldLayoutItems
Returns the list of required fields for an issue type in a project.- Parameters:
project
- the projectissueTypes
- the issue type.- Returns:
- the list of required fields. System fields and custom fields.
-
isFieldHidden
Checks if a field is hidden in this field configuration.- Parameters:
fieldId
- the field id.- Returns:
- true if the field is hidden, otherwise false.
-
getRendererTypeForField
Returns the render type for a given field in this field configuration.- Parameters:
fieldId
- the id of the field.- Returns:
- the type of the renderer e.g. DefaultTextRenderer.RENDERER_TYPE ("jira-text-renderer")
-
isDefault
boolean isDefault()Returns true if this is the default FieldLayout. This means that the "type" field holds "value".- Returns:
- true if this is the default FieldLayout.
-
getVisibleLayoutItems(com.atlassian.jira.project.Project, java.util.List)
instead.