|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.fields.DefaultFieldManager
Field Summary |
Fields inherited from interface com.atlassian.jira.issue.fields.FieldManager |
CUSTOM_FIELD_PREFIX |
Constructor Summary | |
DefaultFieldManager()
|
Method Summary | |
Set |
getAllAvailableNavigableFields()
Returns a set of Field s that are NOT hidden in AT LEAST ONE project in the system. |
Set |
getAllSearchableFields()
|
Set |
getAvailableCustomFields(User remoteUser,
org.ofbiz.core.entity.GenericValue issue)
Retrieves custom fields in scope for the given issue |
Set |
getAvailableCustomFieldsWithScope(User remoteUser,
List projectIds,
List issueTypes)
Returns a set of CustomField s that are in scope |
Set |
getAvailableNavigableFields(User remoteUser)
Returns a set of Field s that are NOT hidden in AT LEAST ONE project that
the remote user can see (has Permissions.BROWSE permission for). |
Set |
getAvailableNavigableFieldsWithScope(User remoteUser,
List projectIds,
List issueTypes)
Returns a set of Field s that are NOT hidden in AT LEAST ONE project that
the remote user can see (has Permissions.BROWSE permission for). |
ColumnLayoutManager |
getColumnLayoutManager()
Deprecated. Declare your dependency and let PicoContainer resolve it instead |
ConfigurableField |
getConfigurableField(String id)
|
CustomField |
getCustomField(String key)
|
CustomFieldManager |
getCustomFieldManager()
|
Field |
getField(String id)
|
FieldLayoutManager |
getFieldLayoutManager()
Deprecated. Declare your dependency and let PicoContainer resolve it instead |
HideableField |
getHideableField(String id)
|
IssueTypeSystemField |
getIssueTypeSystemField()
|
NavigableField |
getNavigableField(String id)
|
OrderableField |
getOrderableField(String id)
|
Set |
getOrderableFields()
|
ProjectSystemField |
getProjectSystemField()
|
RequirableField |
getRequiredField(String id)
|
Set |
getUnavailableFields()
|
boolean |
isCustomField(Field field)
|
boolean |
isCustomField(String key)
|
protected boolean |
isEnterpriseEdition()
|
boolean |
isFieldHidden(User remoteUser,
Field field)
Determines whether the field is NOT hidden in AT LEAST one FieldLayout that the user can see
(assigned to projects for which the user has the Permissions.BROWSE permission). |
boolean |
isFieldHidden(User remoteUser,
String fieldId)
Determines whether the field with id of fieldId is NOT hidden in AT LEAST one FieldLayout that the user can see
(assigned to projects for which the user has the Permissions.BROWSE permission). |
boolean |
isHideableField(Field field)
|
boolean |
isHideableField(String id)
|
boolean |
isMandatoryField(Field field)
|
boolean |
isMandatoryField(String id)
|
boolean |
isNavigableField(Field field)
|
boolean |
isNavigableField(String id)
|
boolean |
isOrderableField(Field field)
|
boolean |
isOrderableField(String id)
|
boolean |
isRenderableField(Field field)
|
boolean |
isRenderableField(String id)
|
boolean |
isRequirableField(Field field)
|
boolean |
isRequirableField(String id)
|
protected boolean |
isSubTasksOn()
|
boolean |
isTimeTrackingOn()
|
boolean |
isUnscreenableField(Field field)
|
boolean |
isUnscreenableField(String id)
|
protected boolean |
isVotingOn()
|
void |
refresh()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultFieldManager()
Method Detail |
public Field getField(String id)
getField
in interface FieldManager
public Set getAllAvailableNavigableFields() throws FieldException
Field
s that are NOT hidden in AT LEAST ONE project in the system.
NOTE: This method is used in the Admin interface, as admins should be able to configure the
default ColumnLayouts irrespective of their permissions. They should be able to see all fields that
are not hidden in at least one FieldLayout in the system
getAllAvailableNavigableFields
in interface FieldManager
FieldException
- if cannot retrieve the projects the user can see, or if cannot retrieve
the field layouts for the viewable projectspublic Set getAvailableNavigableFields(User remoteUser) throws FieldException
Field
s that are NOT hidden in AT LEAST ONE project that
the remote user can see (has Permissions.BROWSE
permission for).
The returned set of fields contains all custom fields that are not hidden in AT LEAST one FieldLayout that the
user can see.
NOTE: This method is primarily used for configuring user's ColumnLayout, as the user should be able to
add any field (including custom field) to it that they can see in the system. THe scope of custom fields is ignored
here as the user configures the ColumnLayout outside of scope.
getAvailableNavigableFields
in interface FieldManager
remoteUser
-
FieldException
- if cannot retrieve the projects the user can see, or if cannot retrieve
the field layouts for the viewable projectspublic Set getAllSearchableFields()
getAllSearchableFields
in interface FieldManager
public IssueTypeSystemField getIssueTypeSystemField()
getIssueTypeSystemField
in interface FieldManager
public ProjectSystemField getProjectSystemField()
getProjectSystemField
in interface FieldManager
public Set getAvailableNavigableFieldsWithScope(User remoteUser, List projectIds, List issueTypes) throws FieldException
Field
s that are NOT hidden in AT LEAST ONE project that
the remote user can see (has Permissions.BROWSE
permission for).
NOTE: This method is used when actually showing the results (e.g. in Issue Navigator) to determine
if the field (column) should be actually shown.
getAvailableNavigableFieldsWithScope
in interface FieldManager
remoteUser
-
FieldException
- if cannot retrieve the projects the user can see, or if cannot retrieve
the field layouts for the viewable projectspublic Set getAvailableCustomFields(User remoteUser, org.ofbiz.core.entity.GenericValue issue) throws FieldException
getAvailableCustomFields
in interface FieldManager
remoteUser
- issue
-
FieldException
public Set getAvailableCustomFieldsWithScope(User remoteUser, List projectIds, List issueTypes) throws FieldException
CustomField
s that are in scope
getAvailableCustomFieldsWithScope
in interface FieldManager
remoteUser
-
FieldException
- if cannot retrieve the projects the user can see, or if cannot retrieve
the field layouts for the viewable projectspublic boolean isFieldHidden(User remoteUser, String fieldId) throws FieldLayoutStorageException
FieldLayout
that the user can see
(assigned to projects for which the user has the Permissions.BROWSE
permission).
isFieldHidden
in interface FieldManager
remoteUser
- fieldId
-
FieldLayoutStorageException
public boolean isFieldHidden(User remoteUser, Field field) throws FieldLayoutStorageException
FieldLayout
that the user can see
(assigned to projects for which the user has the Permissions.BROWSE
permission).
isFieldHidden
in interface FieldManager
remoteUser
- field
-
FieldLayoutStorageException
public boolean isCustomField(String key)
isCustomField
in interface FieldManager
public boolean isCustomField(Field field)
isCustomField
in interface FieldManager
public CustomField getCustomField(String key)
getCustomField
in interface FieldManager
public boolean isHideableField(String id)
isHideableField
in interface FieldManager
public boolean isHideableField(Field field)
isHideableField
in interface FieldManager
public HideableField getHideableField(String id)
getHideableField
in interface FieldManager
public boolean isOrderableField(String id)
isOrderableField
in interface FieldManager
public boolean isOrderableField(Field field)
isOrderableField
in interface FieldManager
public OrderableField getOrderableField(String id)
getOrderableField
in interface FieldManager
public ConfigurableField getConfigurableField(String id)
getConfigurableField
in interface FieldManager
public Set getOrderableFields()
getOrderableFields
in interface FieldManager
public boolean isNavigableField(String id)
isNavigableField
in interface FieldManager
public boolean isNavigableField(Field field)
isNavigableField
in interface FieldManager
public NavigableField getNavigableField(String id)
getNavigableField
in interface FieldManager
public boolean isRequirableField(String id)
isRequirableField
in interface FieldManager
public boolean isRequirableField(Field field)
isRequirableField
in interface FieldManager
public boolean isMandatoryField(String id)
isMandatoryField
in interface FieldManager
public boolean isMandatoryField(Field field)
isMandatoryField
in interface FieldManager
public boolean isRenderableField(String id)
isRenderableField
in interface FieldManager
public boolean isRenderableField(Field field)
isRenderableField
in interface FieldManager
public boolean isUnscreenableField(String id)
isUnscreenableField
in interface FieldManager
public boolean isUnscreenableField(Field field)
isUnscreenableField
in interface FieldManager
public RequirableField getRequiredField(String id)
getRequiredField
in interface FieldManager
public CustomFieldManager getCustomFieldManager()
getCustomFieldManager
in interface FieldManager
public FieldLayoutManager getFieldLayoutManager()
getFieldLayoutManager
in interface FieldManager
public ColumnLayoutManager getColumnLayoutManager()
getColumnLayoutManager
in interface FieldManager
public void refresh()
refresh
in interface FieldManager
public boolean isTimeTrackingOn()
isTimeTrackingOn
in interface FieldManager
protected boolean isVotingOn()
protected boolean isEnterpriseEdition()
protected boolean isSubTasksOn()
public Set getUnavailableFields()
getUnavailableFields
in interface FieldManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |