com.atlassian.jira.web.bean
Class StatisticAccessorBean

java.lang.Object
  extended by com.atlassian.jira.web.bean.StatisticAccessorBean

public class StatisticAccessorBean
extends Object


Nested Class Summary
static class StatisticAccessorBean.Direction
          Enumerated type for sort direction.
static class StatisticAccessorBean.OrderBy
          Enumerated type for ordering of statistics.
 
Constructor Summary
StatisticAccessorBean()
           
StatisticAccessorBean(User remoteUser, Long projectId)
           
StatisticAccessorBean(User remoteUser, Long projectId, boolean limitToOpenIssues)
           
StatisticAccessorBean(User remoteUser, Long projectId, Set additionalParams, boolean limitToOpenIssues)
          Instantiates this class with given parameters.
StatisticAccessorBean(User remoteUser, SearchRequest filter)
           
 
Method Summary
 StatisticMapWrapper getAllFilterBy(String type)
           
 StatisticMapWrapper getAllFilterBy(String type, StatisticAccessorBean.OrderBy orderBy, StatisticAccessorBean.Direction direction)
           
 long getCount()
          Returns nuber of search results for this filter
 SearchRequest getFilter()
           
 Collection getIssues()
          Returns a collection of found issues for this filter
 StatisticsMapper getMapper(String type)
           
 long getOpenByComponent()
           
 long getOpenByComponent(org.ofbiz.core.entity.GenericValue component)
           
 long getOpenByFixFor()
           
 long getOpenByFixFor(Version version)
           
 StatisticMapWrapper getWrapper(StatisticsMapper mapper)
           
 StatisticMapWrapper getWrapper(StatisticsMapper mapper, StatisticAccessorBean.OrderBy orderBy, StatisticAccessorBean.Direction direction)
          Returns a StatisticMapWrapper containing ordered search statistic results
protected  com.atlassian.jira.web.bean.StatisticAccessorBean.SearchStatisticsResult searchCountMap(String groupField)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticAccessorBean

public StatisticAccessorBean()

StatisticAccessorBean

public StatisticAccessorBean(User remoteUser,
                             SearchRequest filter)

StatisticAccessorBean

public StatisticAccessorBean(User remoteUser,
                             Long projectId,
                             boolean limitToOpenIssues)

StatisticAccessorBean

public StatisticAccessorBean(User remoteUser,
                             Long projectId)

StatisticAccessorBean

public StatisticAccessorBean(User remoteUser,
                             Long projectId,
                             Set additionalParams,
                             boolean limitToOpenIssues)
Instantiates this class with given parameters.

Parameters:
remoteUser - remote User
projectId - project id
additionalParams - A set of search parameters to add to the filter.
limitToOpenIssues - flag that limits issues on status (open vs other)
Since:
v3.10
Method Detail

getFilter

public SearchRequest getFilter()

getWrapper

public StatisticMapWrapper getWrapper(StatisticsMapper mapper)
                               throws SearchException
Throws:
SearchException

getWrapper

public StatisticMapWrapper getWrapper(StatisticsMapper mapper,
                                      StatisticAccessorBean.OrderBy orderBy,
                                      StatisticAccessorBean.Direction direction)
                               throws SearchException
Returns a StatisticMapWrapper containing ordered search statistic results

Parameters:
mapper - the relevant StatisticsMapper for this instance
orderBy - either OrderBy.NATURAL or OrderBy.TOTAL to specify ordering by result keys or values respectively. null produces the same result as OrderBy.NATURAL
direction - either Direction.DESC or Direction.ASC to specify direction of ordering. null produces the same result as Direction.ASC
Returns:
the ordered results
Throws:
SearchException - .

searchCountMap

protected com.atlassian.jira.web.bean.StatisticAccessorBean.SearchStatisticsResult searchCountMap(String groupField)
                                                                                           throws SearchException
Throws:
SearchException

getOpenByComponent

public long getOpenByComponent()
                        throws Exception
Throws:
Exception

getOpenByComponent

public long getOpenByComponent(org.ofbiz.core.entity.GenericValue component)
                        throws Exception
Throws:
Exception

getOpenByFixFor

public long getOpenByFixFor()
                     throws Exception
Throws:
Exception

getOpenByFixFor

public long getOpenByFixFor(Version version)
                     throws Exception
Throws:
Exception

getCount

public long getCount()
              throws SearchException
Returns nuber of search results for this filter

Returns:
count
Throws:
SearchException - if search fails
Since:
v3.10

getIssues

public Collection getIssues()
                     throws SearchException
Returns a collection of found issues for this filter

Returns:
collection of Issue objects
Throws:
SearchException - if search fails
Since:
v3.10

getAllFilterBy

public StatisticMapWrapper getAllFilterBy(String type)
                                   throws SearchException
Throws:
SearchException

getAllFilterBy

public StatisticMapWrapper getAllFilterBy(String type,
                                          StatisticAccessorBean.OrderBy orderBy,
                                          StatisticAccessorBean.Direction direction)
                                   throws SearchException
Throws:
SearchException

getMapper

public StatisticsMapper getMapper(String type)


Copyright © 2002-2008 Atlassian. All Rights Reserved.