maps.hudson.plugin.xfpanel
Class XFPanelView

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.View
          extended by hudson.model.ListView
              extended by maps.hudson.plugin.xfpanel.XFPanelView
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.View>, hudson.model.ModelObject, hudson.model.Saveable, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled

public class XFPanelView
extends hudson.model.ListView

Represents an eXtreme Feedback Panel View. Thanks to Mark Howard and his work on the Radiator View Plugin from which this was based.

Author:
jrenaut

Nested Class Summary
protected static class XFPanelView.Blame
           
static class XFPanelView.XFPanelColors
          Represents colors to be used on the view
static class XFPanelView.XFPanelViewDescriptor
          Notify Hudson we're implementing a new View
 
Nested classes/interfaces inherited from class hudson.model.ListView
hudson.model.ListView.DescriptorImpl
 
Nested classes/interfaces inherited from class hudson.model.View
hudson.model.View.People, hudson.model.View.PropertyList, hudson.model.View.UserInfo
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
protected  XFPanelView.Blame BlameState
           
protected  XFPanelView.XFPanelColors colors
           
protected  Map<hudson.model.Queue.Item,Integer> placeInQueue
           
protected  Map<String,Integer> priorityPerJob
           
 
Fields inherited from class hudson.model.View
CONFIGURE, CREATE, DELETE, description, filterExecutors, filterQueue, LIST, name, NEW_PRONOUN, owner, PERMISSIONS, READ, SORTER, transientActions
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
XFPanelView(String name, Integer numColumns)
          C'tor
 
Method Summary
 Boolean getAutomaticSortState()
           
 Boolean getAutoResizeEntryHeight()
           
 Integer getBlameState()
           
 String getBrokenBuildColor()
           
 String getBuildFontColor()
           
 XFPanelView.XFPanelColors getColors()
           
 Boolean getFullHD()
           
 Integer getGuiBuildFont()
           
 Integer getGuiClaimFont()
           
 Integer getGuiFailFont()
           
 Integer getGuiHeight()
           
 Integer getGuiInfoFont()
           
 Integer getGuiJobFont()
           
 Boolean getHideSuccessfulBuilds()
           
 Boolean getIsClaimPluginInstalled()
          Return true, if claim-plugin is installed
 String getLastBuildTimePreFix()
           
 Boolean getManualSortState()
           
 Integer getMaxAmmountOfResponsibles()
           
 Integer getNumColumns()
           
 String getOtherBuildColor()
           
 Boolean getPriorityPerJob()
           
 Collection<hudson.model.Job<?,?>> getPrioritySortedJobs()
           
 Collection<hudson.model.Job<?,?>> getPrioritySortedJobs(Collection<hudson.model.Job<?,?>> jobs)
           
 Collection<hudson.model.Job<?,?>> getPrioritySortedJobs(Collection<hudson.model.Job<?,?>> jobs, boolean isConfiguration)
           
 Integer getRefresh()
           
 Boolean getReplaceNumberOfTestCases()
           
 Boolean getReplaceResponsibles()
           
 String getResponsiblesTopic()
           
 Boolean getShowBrokenBuildCount()
           
 Boolean getShowClaimInfo()
           
 Boolean getShowClaimInfoInUnstable()
           
 Boolean getShowDescription()
           
 Boolean getShowTimeStamp()
           
 Boolean getShowWarningIcon()
           
 Boolean getShowZeroTestCounts()
           
 Boolean getSortDescending()
           
 String getSuccessfulBuildColor()
           
 String getUnstableBuildColor()
           
 Collection<XFPanelEntry> sort(Collection<hudson.model.Job<?,?>> jobs)
           
protected  void submit(org.kohsuke.stapler.StaplerRequest req)
          Gets from the request the configuration parameters
 
Methods inherited from class hudson.model.ListView
add, contains, doCreateItem, getColumns, getDefaultColumns, getIncludeRegex, getItems, getJobFilters, getStatusFilter, hasJobFilterExtensions, initColumns, initJobFilters, onJobRenamed
 
Methods inherited from class hudson.model.View
all, allInstantiable, checkPermission, create, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllProperties, getApi, getApplicablePropertyDescriptors, getBuilds, getComputers, getDescription, getDescriptor, getDisplayName, getDynamic, getIndenter, getItem, getItemCreatePermission, getJob, getNewPronoun, getOwner, getOwnerItemGroup, getOwnerPrimaryView, getOwnerViewActions, getPeople, getPostConstructLandingPage, getProperties, getQueueItems, getSearchUrl, getTimeline, getUrl, getViewName, getViewUrl, getWidgets, hasPeople, hasPermission, isDefault, isEditable, isFilterExecutors, isFilterQueue, makeSearchIndex, rename, save
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Saveable
save
 

Field Detail

colors

protected XFPanelView.XFPanelColors colors

placeInQueue

protected transient Map<hudson.model.Queue.Item,Integer> placeInQueue

priorityPerJob

protected Map<String,Integer> priorityPerJob

BlameState

protected XFPanelView.Blame BlameState
Constructor Detail

XFPanelView

@DataBoundConstructor
public XFPanelView(String name,
                                        Integer numColumns)
C'tor

Parameters:
name - the name of the view
numColumns - the number of columns to use on the layout (work in progress)
Method Detail

getColors

public XFPanelView.XFPanelColors getColors()
Returns:
the colors to use

getGuiHeight

public Integer getGuiHeight()

getGuiJobFont

public Integer getGuiJobFont()

getGuiFailFont

public Integer getGuiFailFont()

getGuiInfoFont

public Integer getGuiInfoFont()

getGuiBuildFont

public Integer getGuiBuildFont()

getGuiClaimFont

public Integer getGuiClaimFont()

getMaxAmmountOfResponsibles

public Integer getMaxAmmountOfResponsibles()

getFullHD

public Boolean getFullHD()

getShowDescription

public Boolean getShowDescription()

getShowBrokenBuildCount

public Boolean getShowBrokenBuildCount()

getSortDescending

public Boolean getSortDescending()

getShowZeroTestCounts

public Boolean getShowZeroTestCounts()

getShowTimeStamp

public Boolean getShowTimeStamp()

getShowClaimInfo

public Boolean getShowClaimInfo()

getShowClaimInfoInUnstable

public Boolean getShowClaimInfoInUnstable()

getShowWarningIcon

public Boolean getShowWarningIcon()

getReplaceResponsibles

public Boolean getReplaceResponsibles()

getBlameState

public Integer getBlameState()

getAutomaticSortState

public Boolean getAutomaticSortState()

getManualSortState

public Boolean getManualSortState()

getResponsiblesTopic

public String getResponsiblesTopic()

getHideSuccessfulBuilds

public Boolean getHideSuccessfulBuilds()

getSuccessfulBuildColor

public String getSuccessfulBuildColor()

getUnstableBuildColor

public String getUnstableBuildColor()

getBrokenBuildColor

public String getBrokenBuildColor()

getOtherBuildColor

public String getOtherBuildColor()

getBuildFontColor

public String getBuildFontColor()

getPriorityPerJob

public Boolean getPriorityPerJob()

getIsClaimPluginInstalled

public Boolean getIsClaimPluginInstalled()
Return true, if claim-plugin is installed


getReplaceNumberOfTestCases

public Boolean getReplaceNumberOfTestCases()

getAutoResizeEntryHeight

public Boolean getAutoResizeEntryHeight()

sort

public Collection<XFPanelEntry> sort(Collection<hudson.model.Job<?,?>> jobs)
Parameters:
jobs - the selected jobs
Returns:
the jobs list wrapped into XFPanelEntry instances

getPrioritySortedJobs

public Collection<hudson.model.Job<?,?>> getPrioritySortedJobs()

getPrioritySortedJobs

public Collection<hudson.model.Job<?,?>> getPrioritySortedJobs(Collection<hudson.model.Job<?,?>> jobs)

getPrioritySortedJobs

public Collection<hudson.model.Job<?,?>> getPrioritySortedJobs(Collection<hudson.model.Job<?,?>> jobs,
                                                               boolean isConfiguration)

getRefresh

public Integer getRefresh()
Returns:
the refresh time in seconds

getNumColumns

public Integer getNumColumns()
Returns:
the numColumns

getLastBuildTimePreFix

public String getLastBuildTimePreFix()

submit

protected void submit(org.kohsuke.stapler.StaplerRequest req)
               throws javax.servlet.ServletException,
                      hudson.model.Descriptor.FormException,
                      IOException
Gets from the request the configuration parameters

Overrides:
submit in class hudson.model.ListView
Parameters:
req - StaplerRequest
Throws:
javax.servlet.ServletException - if any
hudson.model.Descriptor.FormException - if any
IOException


Copyright © 2004-2015. All Rights Reserved.