Class BuildGraphBean
- java.lang.Object
-
- jetbrains.buildServer.web.statistics.graph.BuildGraphBean
-
public class BuildGraphBean extends Object
Holds all info about particular graph including settings and data, accessed from JSP tag
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]
PARAMETERS_TO_CLEAN_FROM_SESSION
-
Constructor Summary
Constructors Constructor Description BuildGraphBean(GraphDrawer drawer, String graphKey, ValueType valueType, GraphDescriptor graphDescriptor, BuildChartSettings settings, TimeZone userTimeZone)
BuildGraphBean(GraphDrawer drawer, String graphKey, ValueType valueType, GraphDescriptor graphDescriptor, BuildChartSettings settings, TimeZone userTimeZone, javax.servlet.http.HttpSession session, Map<String,String> _defaults)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doGenerateLinks()
static String
formatDate(long time)
String
getAttribute(String key)
String
getAttribute(String key, String defVal)
Map<String,String[]>
getAttrs()
Getter for property 'attrs'.boolean
getAvailable()
Getter for property 'available'.NavigableMap<Long,String>
getAvailableAgents()
Getter for property 'availableAgents'.String
getColors()
HashMap<Long,String>
getColorsMap()
List<BuildValue>
getDataset()
Getter for property 'dataset'.String
getFlotStyles(String hints)
GraphDescriptor
getGraphDescriptor()
Getter for property 'graphDescriptor'.String
getGraphKey()
Getter for property 'graphKey'.long
getGuid()
Getter for property 'guid'.boolean
getHasData()
Getter for property 'hasData'.List<org.jfree.chart.plot.CategoryMarker>
getMarkers()
static String
getSessionPrefix(String graphKey, String buildTypeId, String projectId)
BuildChartSettings
getSettings()
Getter for property 'settings'.String
getTitle()
Getter for property 'title'.TimeZone
getUserTimeZone()
Returns current user time zoneValueType
getValueType()
Getter for property 'valueType'.boolean
isHasNonDefaultFilters()
boolean
isHasNonDefaultYAxisConfig()
boolean
isResetToDefaultRequest()
void
setAvailableAgents(NavigableMap<Long,String> availableAgents)
Setter for property 'availableAgents'.void
setDatasetProcessors(BuildDatasetProcessor... processors)
String
translateColors(String s)
-
-
-
Field Detail
-
PARAMETERS_TO_CLEAN_FROM_SESSION
protected static final String[] PARAMETERS_TO_CLEAN_FROM_SESSION
-
-
Constructor Detail
-
BuildGraphBean
public BuildGraphBean(GraphDrawer drawer, String graphKey, ValueType valueType, GraphDescriptor graphDescriptor, BuildChartSettings settings, @NotNull TimeZone userTimeZone)
-
BuildGraphBean
public BuildGraphBean(GraphDrawer drawer, String graphKey, ValueType valueType, GraphDescriptor graphDescriptor, BuildChartSettings settings, @NotNull TimeZone userTimeZone, @Nullable javax.servlet.http.HttpSession session, @Deprecated @Nullable Map<String,String> _defaults)
-
-
Method Detail
-
getSessionPrefix
public static String getSessionPrefix(@NotNull String graphKey, @Nullable String buildTypeId, @Nullable String projectId)
-
getGuid
public long getGuid()
Getter for property 'guid'.- Returns:
- Value for property 'guid'.
-
getUserTimeZone
@NotNull public TimeZone getUserTimeZone()
Returns current user time zone
-
getAttrs
public Map<String,String[]> getAttrs()
Getter for property 'attrs'.- Returns:
- Value for property 'attrs'.
-
getHasData
public boolean getHasData()
Getter for property 'hasData'.- Returns:
- Value for property 'hasData'.
-
getDataset
public List<BuildValue> getDataset()
Getter for property 'dataset'.- Returns:
- Value for property 'dataset'.
-
setDatasetProcessors
public void setDatasetProcessors(BuildDatasetProcessor... processors)
-
getGraphDescriptor
public GraphDescriptor getGraphDescriptor()
Getter for property 'graphDescriptor'.- Returns:
- Value for property 'graphDescriptor'.
-
getSettings
public BuildChartSettings getSettings()
Getter for property 'settings'.- Returns:
- Value for property 'settings'.
-
getGraphKey
public String getGraphKey()
Getter for property 'graphKey'.- Returns:
- Value for property 'graphKey'.
-
getValueType
public ValueType getValueType()
Getter for property 'valueType'.- Returns:
- Value for property 'valueType'.
-
getTitle
public String getTitle()
Getter for property 'title'.- Returns:
- Value for property 'title'.
-
doGenerateLinks
public boolean doGenerateLinks()
-
getAvailable
public boolean getAvailable()
Getter for property 'available'.- Returns:
- Value for property 'available'.
-
getAvailableAgents
public NavigableMap<Long,String> getAvailableAgents()
Getter for property 'availableAgents'.- Returns:
- Value for property 'availableAgents'.
-
setAvailableAgents
public void setAvailableAgents(NavigableMap<Long,String> availableAgents)
Setter for property 'availableAgents'.- Parameters:
availableAgents
- Value to set for property 'availableAgents'.
-
getColors
public String getColors()
-
formatDate
public static String formatDate(long time)
-
getMarkers
public List<org.jfree.chart.plot.CategoryMarker> getMarkers()
-
isResetToDefaultRequest
public boolean isResetToDefaultRequest()
-
isHasNonDefaultFilters
public boolean isHasNonDefaultFilters()
-
isHasNonDefaultYAxisConfig
public boolean isHasNonDefaultYAxisConfig()
-
-