au.com.centrumsystems.hudson.plugin.buildpipeline.dashboard
Class ReadOnlyBuildPipelineView

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.View
          extended by au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView
              extended by au.com.centrumsystems.hudson.plugin.buildpipeline.dashboard.ReadOnlyBuildPipelineView
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, jenkins.model.ModelObjectWithChildren

public class ReadOnlyBuildPipelineView
extends BuildPipelineView

This class provides a read-only view for the existing build-pipeline view. All calls checking permissions return false. The other reason for this class is that it's used in a different context and not as a child of the view tab.

Since:
04/01/2012
Author:
Ingo Richter (irichter@adobe.com)

Nested Class Summary
 
Nested classes/interfaces inherited from class au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView
BuildPipelineView.DescriptorImpl
 
Nested classes/interfaces inherited from class hudson.model.View
hudson.model.View.AsynchPeople, 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
 
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
ReadOnlyBuildPipelineView(String displayName, String description, ProjectGridBuilder gridBuilder, String noOfDisplayedBuilds, boolean triggerOnlyLatestJob, String cssUrl)
           
 
Method Summary
 boolean hasBuildPermission()
          Checks whether the user has a permission to start a new instance of the pipeline.
 boolean hasPermission(hudson.security.Permission p)
           
 
Methods inherited from class au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView
contains, doCreateItem, getAlwaysAllowManualTrigger, getBuildPipelineForm, getBuildViewTitle, getConsoleOutputLinkStyle, getCssUrl, getDownstreamProjects, getGridBuilder, getItems, getNoOfDisplayedBuilds, getProjectURL, getRefreshFrequency, getRefreshFrequencyInMillis, getShowPipelineDefinitionHeader, getShowPipelineParameters, getShowPipelineParametersInHeaders, getTriggerOnlyLatestJob, hasConfigurePermission, hasDownstreamProjects, isAlwaysAllowManualTrigger, isNewWindowConsoleOutputLinkStyle, isProjectParameterized, isShowPipelineDefinitionHeader, isShowPipelineParameters, isShowPipelineParametersInHeaders, isThisWindowConsoleOutputLinkStyle, isTriggerOnlyLatestJob, onJobRenamed, readResolve, rerunBuild, retryBuild, setAlwaysAllowManualTrigger, setBuildViewTitle, setConsoleOutputLinkStyle, setCssUrl, setGridBuilder, setNoOfDisplayedBuilds, setRefreshFrequency, setShowPipelineDefinitionHeader, setShowPipelineParameters, setShowPipelineParametersInHeaders, setTriggerOnlyLatestJob, submit, triggerManualBuild
 
Methods inherited from class hudson.model.View
all, allInstantiable, checkPermission, create, createViewFromXML, doChildrenContextMenu, doConfigDotXml, doConfigSubmit, doDoDelete, doRssAll, doRssFailed, doRssLatest, doSubmitDescription, getAbsoluteUrl, getACL, getActions, getAllItems, getAllProperties, getApi, getApplicablePropertyDescriptors, getApproximateQueueItemsQuickly, getAsynchPeople, getBuilds, getColumns, 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, isDefault, isEditable, isFilterExecutors, isFilterQueue, makeSearchIndex, rename, save, toString, updateByXml, updateTransientActions, writeXml
 
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, wait, wait, wait
 

Constructor Detail

ReadOnlyBuildPipelineView

public ReadOnlyBuildPipelineView(String displayName,
                                 String description,
                                 ProjectGridBuilder gridBuilder,
                                 String noOfDisplayedBuilds,
                                 boolean triggerOnlyLatestJob,
                                 String cssUrl)
Parameters:
displayName - display name of build pipeline view
description - description of build pipeline view
gridBuilder - controls the data to be displayed.
noOfDisplayedBuilds - number of displayed build of build pipeline view
triggerOnlyLatestJob - is trigger only latest job?
cssUrl - URL for the custom CSS file.
Method Detail

hasBuildPermission

public boolean hasBuildPermission()
Description copied from class: BuildPipelineView
Checks whether the user has a permission to start a new instance of the pipeline.

Overrides:
hasBuildPermission in class BuildPipelineView
Returns:
- true: Has Build permission; false: Does not have Build permission
See Also:
Item

hasPermission

public boolean hasPermission(hudson.security.Permission p)
Specified by:
hasPermission in interface hudson.security.AccessControlled
Overrides:
hasPermission in class BuildPipelineView


Copyright © 2004-2015. All Rights Reserved.