|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.web.bean.StatisticAccessorBean
public class StatisticAccessorBean
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,
Clause additionalClause,
boolean limitToOpenIssues)
Instantiates this class with given parameters. |
|
StatisticAccessorBean(User remoteUser,
SearchRequest filter)
|
|
StatisticAccessorBean(User remoteUser,
SearchRequest filter,
boolean overrideSecurity)
|
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()
Stats by Component |
long |
getOpenByComponent(org.ofbiz.core.entity.GenericValue component)
|
long |
getOpenByFixFor()
Stats by FixFor |
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 |
---|
public StatisticAccessorBean()
public StatisticAccessorBean(User remoteUser, SearchRequest filter)
public StatisticAccessorBean(User remoteUser, SearchRequest filter, boolean overrideSecurity)
public StatisticAccessorBean(User remoteUser, Long projectId, boolean limitToOpenIssues)
public StatisticAccessorBean(User remoteUser, Long projectId)
public StatisticAccessorBean(User remoteUser, Long projectId, Clause additionalClause, boolean limitToOpenIssues)
remoteUser
- remote UserprojectId
- project idadditionalClause
- An additional clause to and to the current filter. Can be null.limitToOpenIssues
- flag that limits issues on status (open vs other)Method Detail |
---|
public SearchRequest getFilter()
public StatisticMapWrapper getWrapper(StatisticsMapper mapper) throws SearchException
SearchException
public StatisticMapWrapper getWrapper(StatisticsMapper mapper, StatisticAccessorBean.OrderBy orderBy, StatisticAccessorBean.Direction direction) throws SearchException
StatisticMapWrapper
containing ordered search statistic results
mapper
- the relevant StatisticsMapper for this instanceorderBy
- either OrderBy.NATURAL or OrderBy.TOTAL to specify ordering by result keys or values
respectively. null produces the same result as OrderBy.NATURALdirection
- either Direction.DESC or Direction.ASC to specify direction of ordering. null produces the same
result as Direction.ASC
SearchException
- .protected com.atlassian.jira.web.bean.StatisticAccessorBean.SearchStatisticsResult searchCountMap(String groupField) throws SearchException
SearchException
public long getOpenByComponent() throws SearchException
SearchException
public long getOpenByComponent(org.ofbiz.core.entity.GenericValue component) throws SearchException
SearchException
public long getOpenByFixFor() throws SearchException
SearchException
public long getOpenByFixFor(Version version) throws SearchException
SearchException
public long getCount() throws SearchException
SearchException
- if search failspublic Collection getIssues() throws SearchException
Issue
objects
SearchException
- if search failspublic StatisticMapWrapper getAllFilterBy(String type) throws SearchException
SearchException
public StatisticMapWrapper getAllFilterBy(String type, StatisticAccessorBean.OrderBy orderBy, StatisticAccessorBean.Direction direction) throws SearchException
SearchException
public StatisticsMapper getMapper(String type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |