com.atlassian.jira.issue.fields
Interface FieldManager

All Known Implementing Classes:
DefaultFieldManager

public interface FieldManager


Field Summary
static java.lang.String CUSTOM_FIELD_PREFIX
           
 
Method Summary
 java.util.Set<NavigableField> getAllAvailableNavigableFields()
           
 java.util.Set<SearchableField> getAllSearchableFields()
          Return all the searchable fields in the system.
 java.util.Set<CustomField> getAvailableCustomFields(com.opensymphony.user.User remoteUser, org.ofbiz.core.entity.GenericValue issue)
          Deprecated. - use getAvailableCustomFields(com.opensymphony.user.User, com.atlassian.jira.issue.Issue) instead. Deprecated since v4.0.
 java.util.Set<CustomField> getAvailableCustomFields(com.opensymphony.user.User remoteUser, Issue issue)
          Retrieves custom fields in scope for the given issue
 java.util.Set<NavigableField> getAvailableNavigableFields(com.opensymphony.user.User remoteUser)
           
 java.util.Set<NavigableField> getAvailableNavigableFieldsWithScope(com.opensymphony.user.User user)
          Gets all the available fields that the user can see, this is providing no context scope.
 java.util.Set<NavigableField> getAvailableNavigableFieldsWithScope(com.opensymphony.user.User user, QueryContext queryContext)
          Gets all the available fields within the defined scope of the QueryContext.
 ColumnLayoutManager getColumnLayoutManager()
          Deprecated. Declare your dependency and let PicoContainer resolve it instead
 ConfigurableField getConfigurableField(java.lang.String id)
           
 CustomField getCustomField(java.lang.String id)
          Get a CustomField by its text key (eg 'customfield_10000').
 CustomFieldManager getCustomFieldManager()
          Deprecated. Declare your dependency and let PicoContainer resolve it instead
 Field getField(java.lang.String id)
          Get a field by its id.
 FieldLayoutManager getFieldLayoutManager()
          Deprecated. Declare your dependency and let PicoContainer resolve it instead
 HideableField getHideableField(java.lang.String id)
           
 IssueTypeSystemField getIssueTypeSystemField()
           
 NavigableField getNavigableField(java.lang.String id)
           
 OrderableField getOrderableField(java.lang.String id)
           
 java.util.Set<OrderableField> getOrderableFields()
           
 ProjectSystemField getProjectSystemField()
           
 RequirableField getRequiredField(java.lang.String id)
           
 java.util.Set<SearchableField> getSystemSearchableFields()
          Return all the searchable systems fields.
 java.util.Set<Field> getUnavailableFields()
           
 boolean isCustomField(Field field)
           
 boolean isCustomField(java.lang.String id)
           
 boolean isFieldHidden(com.opensymphony.user.User remoteUser, Field field)
           
 boolean isFieldHidden(com.opensymphony.user.User remoteUser, java.lang.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(java.lang.String id)
           
 boolean isMandatoryField(Field field)
           
 boolean isMandatoryField(java.lang.String id)
           
 boolean isNavigableField(Field field)
           
 boolean isNavigableField(java.lang.String id)
           
 boolean isOrderableField(Field field)
           
 boolean isOrderableField(java.lang.String id)
           
 boolean isRenderableField(Field field)
           
 boolean isRenderableField(java.lang.String id)
           
 boolean isRequirableField(Field field)
           
 boolean isRequirableField(java.lang.String id)
           
 boolean isTimeTrackingOn()
           
 boolean isUnscreenableField(Field field)
           
 boolean isUnscreenableField(java.lang.String id)
           
 void refresh()
           
 

Field Detail

CUSTOM_FIELD_PREFIX

static final java.lang.String CUSTOM_FIELD_PREFIX
See Also:
Constant Field Values
Method Detail

getField

Field getField(java.lang.String id)
Get a field by its id.

Parameters:
id - An IssueFieldConstants constant, or custom field key (eg. "customfield_10010")
Returns:
the Field

isCustomField

boolean isCustomField(java.lang.String id)

isCustomField

boolean isCustomField(Field field)

getCustomField

CustomField getCustomField(java.lang.String id)
Get a CustomField by its text key (eg 'customfield_10000').

Parameters:
id - Eg. 'customfield_10000'
Returns:
The CustomField or null if not found.

isHideableField

boolean isHideableField(java.lang.String id)

isHideableField

boolean isHideableField(Field field)

getHideableField

HideableField getHideableField(java.lang.String id)

isOrderableField

boolean isOrderableField(java.lang.String id)

isOrderableField

boolean isOrderableField(Field field)

getOrderableField

OrderableField getOrderableField(java.lang.String id)

getConfigurableField

ConfigurableField getConfigurableField(java.lang.String id)

getOrderableFields

java.util.Set<OrderableField> getOrderableFields()

isNavigableField

boolean isNavigableField(java.lang.String id)

isNavigableField

boolean isNavigableField(Field field)

getNavigableField

NavigableField getNavigableField(java.lang.String id)

isRequirableField

boolean isRequirableField(java.lang.String id)

isRequirableField

boolean isRequirableField(Field field)

isMandatoryField

boolean isMandatoryField(java.lang.String id)

isMandatoryField

boolean isMandatoryField(Field field)

isRenderableField

boolean isRenderableField(java.lang.String id)

isRenderableField

boolean isRenderableField(Field field)

isUnscreenableField

boolean isUnscreenableField(java.lang.String id)

isUnscreenableField

boolean isUnscreenableField(Field field)

getRequiredField

RequirableField getRequiredField(java.lang.String id)

getCustomFieldManager

@Deprecated
CustomFieldManager getCustomFieldManager()
Deprecated. Declare your dependency and let PicoContainer resolve it instead

Returns:
CustomFieldManager

getFieldLayoutManager

@Deprecated
FieldLayoutManager getFieldLayoutManager()
Deprecated. Declare your dependency and let PicoContainer resolve it instead

Returns:
FieldLayoutManager

getColumnLayoutManager

@Deprecated
ColumnLayoutManager getColumnLayoutManager()
Deprecated. Declare your dependency and let PicoContainer resolve it instead

Returns:
ColumnLayoutManager

refresh

void refresh()

getUnavailableFields

java.util.Set<Field> getUnavailableFields()

isFieldHidden

boolean isFieldHidden(com.opensymphony.user.User remoteUser,
                      Field field)
                      throws FieldLayoutStorageException,
                             org.ofbiz.core.entity.GenericEntityException
Throws:
FieldLayoutStorageException
org.ofbiz.core.entity.GenericEntityException

isFieldHidden

boolean isFieldHidden(com.opensymphony.user.User remoteUser,
                      java.lang.String fieldId)
                      throws FieldLayoutStorageException
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).

Parameters:
remoteUser - the remote user.
fieldId - The Field ID
Throws:
FieldLayoutStorageException

getAvailableNavigableFieldsWithScope

java.util.Set<NavigableField> getAvailableNavigableFieldsWithScope(com.opensymphony.user.User user)
                                                                   throws FieldException
Gets all the available fields that the user can see, this is providing no context scope.

Parameters:
user - the remote user.
Returns:
a set of NavigableFields that can be show because their visibility/configuration fall within what the user can see.
Throws:
FieldException - thrown if there is a problem looking up the fields

getAvailableNavigableFieldsWithScope

java.util.Set<NavigableField> getAvailableNavigableFieldsWithScope(com.opensymphony.user.User user,
                                                                   QueryContext queryContext)
                                                                   throws FieldException
Gets all the available fields within the defined scope of the QueryContext.

Parameters:
user - the user making the request
queryContext - the context of the search request.
Returns:
a set of NavigableFields that can be show because their visibility/configuration fall within the specified context
Throws:
FieldException - thrown if there is a problem looking up the fields

getAvailableCustomFields

java.util.Set<CustomField> getAvailableCustomFields(com.opensymphony.user.User remoteUser,
                                                    Issue issue)
                                                    throws FieldException
Retrieves custom fields in scope for the given issue

Parameters:
remoteUser - Remote User
issue - Issue
Returns:
custom fields in scope for the given issue
Throws:
FieldException - if cannot retrieve the projects the user can see, or if cannot retrieve the field layouts for the viewable projects

getAvailableCustomFields

java.util.Set<CustomField> getAvailableCustomFields(com.opensymphony.user.User remoteUser,
                                                    org.ofbiz.core.entity.GenericValue issue)
                                                    throws FieldException
Deprecated. - use getAvailableCustomFields(com.opensymphony.user.User, com.atlassian.jira.issue.Issue) instead. Deprecated since v4.0.

Retrieves custom fields in scope for the given issue

Parameters:
remoteUser - Remote User
issue - Issue
Returns:
custom fields in scope for the given issue
Throws:
FieldException - if cannot retrieve the projects the user can see, or if cannot retrieve the field layouts for the viewable projects

getAllAvailableNavigableFields

java.util.Set<NavigableField> getAllAvailableNavigableFields()
                                                             throws FieldException
Throws:
FieldException

getAvailableNavigableFields

java.util.Set<NavigableField> getAvailableNavigableFields(com.opensymphony.user.User remoteUser)
                                                          throws FieldException
Throws:
FieldException

getAllSearchableFields

java.util.Set<SearchableField> getAllSearchableFields()
Return all the searchable fields in the system. This set will included all defined custom fields.

Returns:
the set of all searchable fields in the system.

getSystemSearchableFields

java.util.Set<SearchableField> getSystemSearchableFields()
Return all the searchable systems fields. This set will *NOT* include defined custom fields.

Returns:
the set of all searchable systems fields defined.

getIssueTypeSystemField

IssueTypeSystemField getIssueTypeSystemField()

getProjectSystemField

ProjectSystemField getProjectSystemField()

isTimeTrackingOn

boolean isTimeTrackingOn()


Copyright © 2002-2010 Atlassian. All Rights Reserved.