Class StatisticReportForm<T extends StatisticResult,Z extends BuildTypeRow<T>,P extends StatisticProjectRow<T,Z,P>>
- java.lang.Object
-
- jetbrains.buildServer.controllers.admin.statistics.StatisticReportForm<T,Z,P>
-
- Direct Known Subclasses:
BuildTimeReportForm
,DiskUsageReportForm
public class StatisticReportForm<T extends StatisticResult,Z extends BuildTypeRow<T>,P extends StatisticProjectRow<T,Z,P>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected SortGroupOptions
myGroupBy
protected List<SortGroupOptions>
myGroupOptions
protected SortGroupOptions
mySortOption
protected List<SortGroupOptions>
mySortOptions
-
Constructor Summary
Constructors Constructor Description StatisticReportForm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<Z>
getBuildTypeRowComparator()
String
getGroupBy()
String[]
getGroupOptionNames()
Comparator<P>
getProjectRowComparator()
String
getSortBy()
String[]
getSortOptionNames()
boolean
isGroupAsc()
boolean
isGrouped()
boolean
isHideArchived()
boolean
isSortAsc()
boolean
isUpdating()
void
resortBuildTypes(List<Z> rows)
void
resortProjects(List<P> projectRows)
void
setGroupBy(String groupByName)
void
setGroupedAsc(boolean groupedAsc)
Sets grouped column sorting direction.void
setHideArchived(boolean hideArchived)
void
setSortAsc(boolean direction)
Sets sorting direction.void
setSortBy(String name)
Sets the soring optionvoid
setUpdating(boolean updating)
Mark current form as updating.
-
-
-
Field Detail
-
mySortOptions
protected List<SortGroupOptions> mySortOptions
-
myGroupOptions
protected List<SortGroupOptions> myGroupOptions
-
mySortOption
@NotNull protected SortGroupOptions mySortOption
-
myGroupBy
@Nullable protected SortGroupOptions myGroupBy
-
-
Method Detail
-
isSortAsc
public boolean isSortAsc()
- Returns:
- true when sorting ascending
-
setSortAsc
public void setSortAsc(boolean direction)
Sets sorting direction. Will sort ascending when true
- Parameters:
direction
-
-
isGroupAsc
public boolean isGroupAsc()
- Returns:
- true when grouped column is sorted ascending
-
setGroupedAsc
public void setGroupedAsc(boolean groupedAsc)
Sets grouped column sorting direction. Will sort ascending when true
- Parameters:
groupedAsc
-
-
getSortOptionNames
@NotNull public final String[] getSortOptionNames()
- Returns:
- names of all sorting options
-
getSortBy
@NotNull public String getSortBy()
- Returns:
- sort option
-
setSortBy
public void setSortBy(@NotNull String name)
Sets the soring option
- Parameters:
name
-
-
isGrouped
public boolean isGrouped()
-
getGroupBy
public String getGroupBy()
-
setGroupBy
public void setGroupBy(@Nullable String groupByName)
-
getGroupOptionNames
@NotNull public final String[] getGroupOptionNames()
- Returns:
- names of all sorting options
-
setUpdating
public void setUpdating(boolean updating)
Mark current form as updating. Updating means that
DiskUsageUpdater
is now updating all data. "Update" button should be disabled and the total page should be updated when Updater will finish.- Parameters:
updating
-
-
isUpdating
public boolean isUpdating()
- Returns:
- true when the data is being updated
-
isHideArchived
public boolean isHideArchived()
-
setHideArchived
public void setHideArchived(boolean hideArchived)
-
getProjectRowComparator
public Comparator<P> getProjectRowComparator()
-
getBuildTypeRowComparator
public Comparator<Z> getBuildTypeRowComparator()
-
-