com.atlassian.greenhopper.service.issue
Interface IssueFieldService

All Known Implementing Classes:
IssueFieldServiceImpl

public interface IssueFieldService

Holds persisted preferences specific functionality that deal with issue fields. Note: Preferably use IssueFieldManager for global field related functionality. This service deals with configuration specific stuff Note: this is currently a kitchen sink for various code snippets from preferences and context code.


Field Summary
static java.lang.String SERVICE
           
 
Method Summary
 IssueField getDefaultSortField(com.atlassian.crowd.embedded.api.User user, ProjectConfiguration projectConfiguration)
          Returns the default sort field for a project.
 FlagField getFlagField(com.atlassian.crowd.embedded.api.User user, ProjectConfiguration projectConfiguration)
          Gets the flagged field for an XProject
 java.util.Set<IssueField> getRankingFields(com.atlassian.crowd.embedded.api.User user, ProjectConfiguration projectConfiguration)
          Get all ranking fields for a project.
 IssueField getSortField(com.atlassian.crowd.embedded.api.User user, ProjectConfiguration projectConfiguration, java.lang.String fieldId)
          Get the sort field for a given fieldId.
 java.util.Set<IssueField> getSortFields(com.atlassian.crowd.embedded.api.User user, ProjectConfiguration projectConfiguration)
          Returns all fields that are sortable - thus which can be used in jql to sort the results.
 

Field Detail

SERVICE

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

getSortField

IssueField getSortField(com.atlassian.crowd.embedded.api.User user,
                        ProjectConfiguration projectConfiguration,
                        java.lang.String fieldId)
Get the sort field for a given fieldId.

Returns:
the IssueField for fieldId, if and only if the field exists and is a sort field. the default sort field otherwise

getDefaultSortField

IssueField getDefaultSortField(com.atlassian.crowd.embedded.api.User user,
                               ProjectConfiguration projectConfiguration)
Returns the default sort field for a project. This is either the first configured rank field, or the priority field in case rank fields are configured.


getSortFields

java.util.Set<IssueField> getSortFields(com.atlassian.crowd.embedded.api.User user,
                                        ProjectConfiguration projectConfiguration)
Returns all fields that are sortable - thus which can be used in jql to sort the results.


getRankingFields

java.util.Set<IssueField> getRankingFields(com.atlassian.crowd.embedded.api.User user,
                                           ProjectConfiguration projectConfiguration)
Get all ranking fields for a project.


getFlagField

FlagField getFlagField(com.atlassian.crowd.embedded.api.User user,
                       ProjectConfiguration projectConfiguration)
Gets the flagged field for an XProject



Copyright © 2007-2012 Atlassian. All Rights Reserved.