com.atlassian.jira.issue.fields
Interface FieldAccessor

All Known Subinterfaces:
FieldManager
All Known Implementing Classes:
DefaultFieldManager

Deprecated. Use FieldManager instead. Since v5.0.

public interface FieldAccessor

A temporary alternative for FieldManager, because FieldManager was not in API module in v4.x

Since:
v4.3

Method Summary
 Set<NavigableField> getAllAvailableNavigableFields()
          Deprecated.  
 Set<SearchableField> getAllSearchableFields()
          Deprecated. Return all the searchable fields in the system.
 Set<CustomField> getAvailableCustomFields(com.atlassian.crowd.embedded.api.User remoteUser, Issue issue)
          Deprecated. Retrieves custom fields in scope for the given issue
 Set<NavigableField> getAvailableNavigableFields(com.atlassian.crowd.embedded.api.User remoteUser)
          Deprecated.  
 Set<NavigableField> getAvailableNavigableFieldsWithScope(com.atlassian.crowd.embedded.api.User user)
          Deprecated. Gets all the available fields that the user can see, this is providing no context scope.
 Set<NavigableField> getAvailableNavigableFieldsWithScope(com.atlassian.crowd.embedded.api.User user, QueryContext queryContext)
          Deprecated. Gets all the available fields within the defined scope of the QueryContext.
 ConfigurableField getConfigurableField(String id)
          Deprecated.  
 CustomField getCustomField(String id)
          Deprecated. Get a CustomField by its text key (eg 'customfield_10000').
 Field getField(String id)
          Deprecated. Get a field by its id.
 HideableField getHideableField(String id)
          Deprecated.  
 IssueTypeField getIssueTypeField()
          Deprecated. Retrieve the IssueType system Field.
 NavigableField getNavigableField(String id)
          Deprecated.  
 Set<NavigableField> getNavigableFields()
          Deprecated.  
 OrderableField getOrderableField(String id)
          Deprecated.  
 Set<OrderableField> getOrderableFields()
          Deprecated.  
 ProjectField getProjectField()
          Deprecated. Retrieve the Project system Field.
 RequirableField getRequiredField(String id)
          Deprecated.  
 Set<SearchableField> getSystemSearchableFields()
          Deprecated. Return all the searchable systems fields.
 Set<Field> getUnavailableFields()
          Deprecated.  
 boolean isCustomField(Field field)
          Deprecated.  
 boolean isCustomField(String id)
          Deprecated.  
 boolean isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser, Field field)
          Deprecated.  
 boolean isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser, String fieldId)
          Deprecated. 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)
          Deprecated.  
 boolean isHideableField(String id)
          Deprecated.  
 boolean isMandatoryField(Field field)
          Deprecated.  
 boolean isMandatoryField(String id)
          Deprecated.  
 boolean isNavigableField(Field field)
          Deprecated.  
 boolean isNavigableField(String id)
          Deprecated.  
 boolean isOrderableField(Field field)
          Deprecated.  
 boolean isOrderableField(String id)
          Deprecated.  
 boolean isRenderableField(Field field)
          Deprecated.  
 boolean isRenderableField(String id)
          Deprecated.  
 boolean isRequirableField(Field field)
          Deprecated.  
 boolean isRequirableField(String id)
          Deprecated.  
 boolean isTimeTrackingOn()
          Deprecated.  
 boolean isUnscreenableField(Field field)
          Deprecated.  
 boolean isUnscreenableField(String id)
          Deprecated.  
 

Method Detail

getField

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

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

isCustomField

boolean isCustomField(String id)
Deprecated. 

isCustomField

boolean isCustomField(Field field)
Deprecated. 

getCustomField

CustomField getCustomField(String id)
Deprecated. 
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(String id)
Deprecated. 

isHideableField

boolean isHideableField(Field field)
Deprecated. 

getHideableField

HideableField getHideableField(String id)
Deprecated. 

isOrderableField

boolean isOrderableField(String id)
Deprecated. 

isOrderableField

boolean isOrderableField(Field field)
Deprecated. 

getOrderableField

OrderableField getOrderableField(String id)
Deprecated. 

getConfigurableField

ConfigurableField getConfigurableField(String id)
Deprecated. 

getOrderableFields

Set<OrderableField> getOrderableFields()
Deprecated. 

getNavigableFields

Set<NavigableField> getNavigableFields()
Deprecated. 

isNavigableField

boolean isNavigableField(String id)
Deprecated. 

isNavigableField

boolean isNavigableField(Field field)
Deprecated. 

getNavigableField

NavigableField getNavigableField(String id)
Deprecated. 

isRequirableField

boolean isRequirableField(String id)
Deprecated. 

isRequirableField

boolean isRequirableField(Field field)
Deprecated. 

isMandatoryField

boolean isMandatoryField(String id)
Deprecated. 

isMandatoryField

boolean isMandatoryField(Field field)
Deprecated. 

isRenderableField

boolean isRenderableField(String id)
Deprecated. 

isRenderableField

boolean isRenderableField(Field field)
Deprecated. 

isUnscreenableField

boolean isUnscreenableField(String id)
Deprecated. 

isUnscreenableField

boolean isUnscreenableField(Field field)
Deprecated. 

getRequiredField

RequirableField getRequiredField(String id)
Deprecated. 

getUnavailableFields

Set<Field> getUnavailableFields()
Deprecated. 

isFieldHidden

boolean isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser,
                      Field field)
Deprecated. 

isFieldHidden

boolean isFieldHidden(com.atlassian.crowd.embedded.api.User remoteUser,
                      String fieldId)
Deprecated. 
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
Returns:
true if this field is hidden from the given user

getAvailableNavigableFieldsWithScope

Set<NavigableField> getAvailableNavigableFieldsWithScope(com.atlassian.crowd.embedded.api.User user)
                                                         throws FieldException
Deprecated. 
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

Set<NavigableField> getAvailableNavigableFieldsWithScope(com.atlassian.crowd.embedded.api.User user,
                                                         QueryContext queryContext)
                                                         throws FieldException
Deprecated. 
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

Set<CustomField> getAvailableCustomFields(com.atlassian.crowd.embedded.api.User remoteUser,
                                          Issue issue)
                                          throws FieldException
Deprecated. 
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

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

getAvailableNavigableFields

Set<NavigableField> getAvailableNavigableFields(com.atlassian.crowd.embedded.api.User remoteUser)
                                                throws FieldException
Deprecated. 
Throws:
FieldException

getAllSearchableFields

Set<SearchableField> getAllSearchableFields()
Deprecated. 
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

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

Returns:
the set of all searchable systems fields defined.

getIssueTypeField

IssueTypeField getIssueTypeField()
Deprecated. 
Retrieve the IssueType system Field.

Returns:
the IssueType system Field.

getProjectField

ProjectField getProjectField()
Deprecated. 
Retrieve the Project system Field.

Returns:
the Project system Field.

isTimeTrackingOn

boolean isTimeTrackingOn()
Deprecated. 


Copyright © 2002-2012 Atlassian. All Rights Reserved.