public class MockFieldLayout extends Object implements FieldLayout
FieldLayout.| Constructor and Description |
|---|
MockFieldLayout() |
| Modifier and Type | Method and Description |
|---|---|
MockFieldLayoutItem |
addFieldLayoutItem(OrderableField orderableField) |
String |
getDescription()
The description of the field configuration.
|
FieldLayoutItem |
getFieldLayoutItem(OrderableField orderableField)
Returns the field layout item for a given orderable field, if this orderable field is part of this field configuration.
|
FieldLayoutItem |
getFieldLayoutItem(String fieldId)
Returns the field layout item for a given field if, if this field is part of this field configuration.
|
List<FieldLayoutItem> |
getFieldLayoutItems()
A list of field layout item of this field configuration.
|
org.ofbiz.core.entity.GenericValue |
getGenericValue()
The generic value which represents this field configuration.
|
List<Field> |
getHiddenFields(Project project,
List<String> issueTypeIds)
Returns all hidden fields (system fields and custom fields) for a given project and issue type(s).
|
Long |
getId()
The id of the field configuration.
|
String |
getName()
The name of the field configuration
|
String |
getRendererTypeForField(String fieldId)
Returns the render type for a given field in this field configuration.
|
List<FieldLayoutItem> |
getRequiredFieldLayoutItems(Project project,
List<String> issueTypes)
Returns the list of required fields for an issue type in a project.
|
List<FieldLayoutItem> |
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).
|
List<FieldLayoutItem> |
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).
|
List<FieldLayoutItem> |
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).
|
boolean |
isDefault()
Returns true if this is the default FieldLayout.
|
boolean |
isFieldHidden(String fieldId)
Checks if a field is hidden in this field configuration.
|
MockFieldLayout |
setDefault(boolean defaultLayout) |
MockFieldLayout |
setDescription(String description) |
MockFieldLayout |
setId(Long id) |
MockFieldLayout |
setName(String name) |
String |
toString() |
public Long getId()
FieldLayoutgetId in interface FieldLayoutpublic MockFieldLayout setId(Long id)
public String getName()
FieldLayoutgetName in interface FieldLayoutpublic MockFieldLayout setName(String name)
public String getDescription()
FieldLayoutgetDescription in interface FieldLayoutpublic MockFieldLayout setDescription(String description)
public List<FieldLayoutItem> getFieldLayoutItems()
FieldLayoutgetFieldLayoutItems in interface FieldLayoutpublic org.ofbiz.core.entity.GenericValue getGenericValue()
FieldLayoutgetGenericValue in interface FieldLayoutpublic FieldLayoutItem getFieldLayoutItem(OrderableField orderableField)
FieldLayoutgetFieldLayoutItem in interface FieldLayoutorderableField - the orderable field to find in this field configuration.public FieldLayoutItem getFieldLayoutItem(String fieldId)
FieldLayoutgetFieldLayoutItem in interface FieldLayoutfieldId - the id of the field.public MockFieldLayoutItem addFieldLayoutItem(OrderableField orderableField)
public List<FieldLayoutItem> getVisibleLayoutItems(ApplicationUser remoteUser, Project project, List<String> issueTypes)
FieldLayoutgetVisibleLayoutItems in interface FieldLayoutremoteUser - 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.public List<FieldLayoutItem> getVisibleLayoutItems(Project project, List<String> issueTypes)
FieldLayoutgetVisibleLayoutItems in interface FieldLayoutproject - the projectissueTypes - a list of issue types to use when checking for VISIBLE CUSTOM FIELDS.public List<FieldLayoutItem> getVisibleCustomFieldLayoutItems(Project project, List<String> issueTypes)
FieldLayoutgetVisibleCustomFieldLayoutItems in interface FieldLayoutproject - The project contextissueTypes - The Issue Types for contextpublic List<Field> getHiddenFields(Project project, List<String> issueTypeIds)
FieldLayoutgetHiddenFields in interface FieldLayoutproject - the projectissueTypeIds - issueTypes a list of issue types to use when checking for HIDDEN CUSTOM FIELDS.public List<FieldLayoutItem> getRequiredFieldLayoutItems(Project project, List<String> issueTypes)
FieldLayoutgetRequiredFieldLayoutItems in interface FieldLayoutproject - the projectissueTypes - the issue type.public boolean isFieldHidden(String fieldId)
FieldLayoutisFieldHidden in interface FieldLayoutfieldId - the field id.public String getRendererTypeForField(String fieldId)
FieldLayoutgetRendererTypeForField in interface FieldLayoutfieldId - the id of the field.public boolean isDefault()
FieldLayoutisDefault in interface FieldLayoutpublic MockFieldLayout setDefault(boolean defaultLayout)
Copyright © 2002-2018 Atlassian. All Rights Reserved.