hudson.plugins.jabber.im.transport.bot
Class JobOverviewCommand

java.lang.Object
  extended by hudson.plugins.jabber.im.transport.bot.AbstractTextSendingCommand
      extended by hudson.plugins.jabber.im.transport.bot.JobOverviewCommand
All Implemented Interfaces:
BotCommand
Direct Known Subclasses:
HealthCommand, StatusCommand

public abstract class JobOverviewCommand
extends AbstractTextSendingCommand

Abstract command which gives an overview about several jobs.

Author:
kutzi

Constructor Summary
JobOverviewCommand()
           
 
Method Summary
protected abstract  java.lang.String getCommandShortName()
           
 java.lang.String getHelp()
          Return the command usage text.
protected abstract  java.lang.CharSequence getMessageForJob(hudson.model.AbstractProject<?,?> job)
           
protected  java.lang.String getReply(java.lang.String sender, java.lang.String[] args)
          Gets the text reply
 
Methods inherited from class hudson.plugins.jabber.im.transport.bot.AbstractTextSendingCommand
executeCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobOverviewCommand

public JobOverviewCommand()
Method Detail

getMessageForJob

protected abstract java.lang.CharSequence getMessageForJob(hudson.model.AbstractProject<?,?> job)

getCommandShortName

protected abstract java.lang.String getCommandShortName()

getReply

protected java.lang.String getReply(java.lang.String sender,
                                    java.lang.String[] args)
Description copied from class: AbstractTextSendingCommand
Gets the text reply

Specified by:
getReply in class AbstractTextSendingCommand
Parameters:
sender - the room nickname of the command sender
args - arguments passed to the command, where args[0] is the command name itself

getHelp

public java.lang.String getHelp()
Description copied from interface: BotCommand
Return the command usage text.

Returns:
the command usage text


Copyright © 2009. All Rights Reserved.