|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.fields.layout.field.MockFieldLayout
public class MockFieldLayout
Simple mock implementation of FieldLayout
.
Constructor Summary | |
---|---|
MockFieldLayout()
|
Method Summary | |
---|---|
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). |
List<Field> |
getHiddenFields(com.atlassian.crowd.embedded.api.User remoteUser,
org.ofbiz.core.entity.GenericValue project,
List<String> issueTypeIds)
|
List<Field> |
getHiddenFields(com.atlassian.crowd.embedded.api.User remoteUser,
Project project,
List<String> issueTypeIds)
|
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(com.atlassian.crowd.embedded.api.User remoteUser,
org.ofbiz.core.entity.GenericValue project,
List<String> issueTypes)
|
List<FieldLayoutItem> |
getVisibleLayoutItems(com.atlassian.crowd.embedded.api.User 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). |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MockFieldLayout()
Method Detail |
---|
public Long getId()
FieldLayout
getId
in interface FieldLayout
public MockFieldLayout setId(Long id)
public String getName()
FieldLayout
getName
in interface FieldLayout
public MockFieldLayout setName(String name)
public String getDescription()
FieldLayout
getDescription
in interface FieldLayout
public MockFieldLayout setDescription(String description)
public List<FieldLayoutItem> getFieldLayoutItems()
FieldLayout
getFieldLayoutItems
in interface FieldLayout
public org.ofbiz.core.entity.GenericValue getGenericValue()
FieldLayout
getGenericValue
in interface FieldLayout
public FieldLayoutItem getFieldLayoutItem(OrderableField orderableField)
FieldLayout
getFieldLayoutItem
in interface FieldLayout
orderableField
- the orderable field to find in this field configuration.
public FieldLayoutItem getFieldLayoutItem(String fieldId)
FieldLayout
getFieldLayoutItem
in interface FieldLayout
fieldId
- the id of the field.
public MockFieldLayoutItem addFieldLayoutItem(OrderableField orderableField)
public List<FieldLayoutItem> getVisibleLayoutItems(com.atlassian.crowd.embedded.api.User remoteUser, Project project, List<String> issueTypes)
FieldLayout
getVisibleLayoutItems
in interface FieldLayout
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.
public List<FieldLayoutItem> getVisibleLayoutItems(com.atlassian.crowd.embedded.api.User remoteUser, org.ofbiz.core.entity.GenericValue project, List<String> issueTypes)
public List<FieldLayoutItem> getVisibleCustomFieldLayoutItems(Project project, List<String> issueTypes)
FieldLayout
getVisibleCustomFieldLayoutItems
in interface FieldLayout
project
- The project contextissueTypes
- The Issue Types for context
public List<Field> getHiddenFields(Project project, List<String> issueTypeIds)
FieldLayout
getHiddenFields
in interface FieldLayout
project
- the projectissueTypeIds
- issueTypes a list of issue types to use when checking for HIDDEN CUSTOM FIELDS.
public List<Field> getHiddenFields(com.atlassian.crowd.embedded.api.User remoteUser, org.ofbiz.core.entity.GenericValue project, List<String> issueTypeIds)
getHiddenFields
in interface FieldLayout
public List<Field> getHiddenFields(com.atlassian.crowd.embedded.api.User remoteUser, Project project, List<String> issueTypeIds)
getHiddenFields
in interface FieldLayout
public List<FieldLayoutItem> getRequiredFieldLayoutItems(Project project, List<String> issueTypes)
FieldLayout
getRequiredFieldLayoutItems
in interface FieldLayout
project
- the projectissueTypes
- the issue type.
public boolean isFieldHidden(String fieldId)
FieldLayout
isFieldHidden
in interface FieldLayout
fieldId
- the field id.
public String getRendererTypeForField(String fieldId)
FieldLayout
getRendererTypeForField
in interface FieldLayout
fieldId
- the id of the field.
DefaultTextRenderer.RENDERER_TYPE
public boolean isDefault()
FieldLayout
isDefault
in interface FieldLayout
public MockFieldLayout setDefault(boolean defaultLayout)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |