hudson.plugins.tfs.commands
Class BriefHistoryCommand

java.lang.Object
  extended by hudson.plugins.tfs.commands.AbstractCommand
      extended by hudson.plugins.tfs.commands.BriefHistoryCommand
All Implemented Interfaces:
Command, ParseableCommand<java.util.List<ChangeSet>>

public class BriefHistoryCommand
extends AbstractCommand
implements ParseableCommand<java.util.List<ChangeSet>>

TF command for retrieving a brief history.

Author:
Erik Ramfelt

Constructor Summary
BriefHistoryCommand(ServerConfigurationProvider provider, java.lang.String projectPath, java.util.Calendar fromTimestamp, java.util.Calendar toTimestamp)
           
 
Method Summary
 MaskedArgumentListBuilder getArguments()
          Returns the arguments for the command
 java.util.List<ChangeSet> parse(java.io.Reader consoleReader)
          Parse the data in the reader and return a list of change sets.
 
Methods inherited from class hudson.plugins.tfs.commands.AbstractCommand
addLoginArgument, addServerArgument, getConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BriefHistoryCommand

public BriefHistoryCommand(ServerConfigurationProvider provider,
                           java.lang.String projectPath,
                           java.util.Calendar fromTimestamp,
                           java.util.Calendar toTimestamp)
Parameters:
projectPath - the project path to get the history for
fromTimestamp - the timestamp to get history from
toTimestamp - the timestamp to get history to
Method Detail

getArguments

public MaskedArgumentListBuilder getArguments()
Returns the arguments for the command

Specified by:
getArguments in interface Command
Returns:
arguments for the command.

parse

public java.util.List<ChangeSet> parse(java.io.Reader consoleReader)
                                throws java.text.ParseException,
                                       java.io.IOException
Parse the data in the reader and return a list of change sets.

Specified by:
parse in interface ParseableCommand<java.util.List<ChangeSet>>
Parameters:
consoleReader - console output
Returns:
a list of change sets from the console output; empty if none could be found.
Throws:
java.text.ParseException - thrown if there was a problem parsing the data
java.io.IOException - thrown if there was a problem reading the data from the reader


Copyright © 2011. All Rights Reserved.