org.jenkinsci.plugins.rundeck
Class RundeckJobProjectLinkerAction

java.lang.Object
  extended by org.jenkinsci.plugins.rundeck.RundeckJobProjectLinkerAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class RundeckJobProjectLinkerAction
extends Object
implements hudson.model.Action

Action used to display a RunDeck icon with a link to the RunDeck job page, and some information about the RunDeck job, on the Jenkins job page.

Author:
Vincent Behar

Constructor Summary
RundeckJobProjectLinkerAction(org.rundeck.api.RundeckClient rundeck, String rundeckJobId)
          Load the RunDeck job details (name, description, and so on) using the RunDeck API.
 
Method Summary
 String getDisplayName()
           
 String getIconFileName()
           
 org.rundeck.api.domain.RundeckJob getRundeckJob()
           
 String getUrlName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RundeckJobProjectLinkerAction

public RundeckJobProjectLinkerAction(org.rundeck.api.RundeckClient rundeck,
                                     String rundeckJobId)
                              throws org.rundeck.api.RundeckApiException,
                                     IllegalArgumentException
Load the RunDeck job details (name, description, and so on) using the RunDeck API.

Parameters:
rundeck - client used for talking to the RunDeck API
rundeckJobId - ID of the RunDeck job
Throws:
org.rundeck.api.RundeckApiException - in case of error while loading the job details from RunDeck API
IllegalArgumentException - if rundeck or rundeckJobId is null
Method Detail

getRundeckJob

@Exported
public org.rundeck.api.domain.RundeckJob getRundeckJob()

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action


Copyright © 2004-2011. All Rights Reserved.