|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.fields.screen.AbstractGVBean
com.atlassian.jira.issue.fields.layout.field.FieldLayoutImpl
public class FieldLayoutImpl
| Constructor Summary | |
|---|---|
FieldLayoutImpl(org.ofbiz.core.entity.GenericValue genericValue,
List<FieldLayoutItem> fieldLayoutItems)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
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. |
protected FieldManager |
getFieldManager()
|
protected HackyFieldRendererRegistry |
getHackyFieldRendererRegistry()
|
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. |
protected List<FieldLayoutItem> |
getInternalList()
|
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. |
String |
getType()
|
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,
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 |
isDefault()
Returns true if this is the default FieldLayout. |
boolean |
isFieldHidden(String fieldId)
Checks if a field is hidden in this field configuration. |
protected void |
setId(Long id)
|
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, valuesEqual |
| 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 |
| Constructor Detail |
|---|
public FieldLayoutImpl(org.ofbiz.core.entity.GenericValue genericValue,
List<FieldLayoutItem> fieldLayoutItems)
| Method Detail |
|---|
protected void init()
init in class AbstractGVBeanpublic Long getId()
FieldLayout
getId in interface FieldLayoutpublic String getName()
FieldLayout
getName in interface FieldLayoutpublic String getDescription()
FieldLayout
getDescription in interface FieldLayoutpublic String getType()
public boolean isDefault()
FieldLayout
isDefault in interface FieldLayoutprotected void setId(Long id)
protected void setInternalName(String name)
protected void setInternalDescription(String description)
public List<FieldLayoutItem> getFieldLayoutItems()
FieldLayout
getFieldLayoutItems in interface FieldLayoutpublic FieldLayoutItem getFieldLayoutItem(OrderableField orderableField)
FieldLayout
getFieldLayoutItem in interface FieldLayoutorderableField - the orderable field to find in this field configuration.
public FieldLayoutItem getFieldLayoutItem(String fieldId)
FieldLayout
getFieldLayoutItem in interface FieldLayoutfieldId - the id of the field.
public List<FieldLayoutItem> getVisibleLayoutItems(com.atlassian.crowd.embedded.api.User remoteUser,
Project project,
List<String> issueTypes)
FieldLayout
getVisibleLayoutItems 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> getVisibleCustomFieldLayoutItems(Project project,
List<String> issueTypes)
FieldLayout
getVisibleCustomFieldLayoutItems in interface FieldLayoutproject - The project contextissueTypes - The Issue Types for context
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<Field> getHiddenFields(Project project,
List<String> issueTypeIds)
FieldLayout
getHiddenFields in interface FieldLayoutproject - the projectissueTypeIds - issueTypes a list of issue types to use when checking for HIDDEN CUSTOM FIELDS.
protected FieldManager getFieldManager()
protected HackyFieldRendererRegistry getHackyFieldRendererRegistry()
public List<FieldLayoutItem> getRequiredFieldLayoutItems(Project project,
List<String> issueTypes)
FieldLayout
getRequiredFieldLayoutItems in interface FieldLayoutproject - the projectissueTypes - the issue type.
public boolean isFieldHidden(String fieldId)
FieldLayout
isFieldHidden in interface FieldLayoutfieldId - the field id.
public String getRendererTypeForField(String fieldId)
FieldLayout
getRendererTypeForField in interface FieldLayoutfieldId - the id of the field.
DefaultTextRenderer.RENDERER_TYPEpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectprotected List<FieldLayoutItem> getInternalList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||