hudson.plugins.tfs.commands
Class ListWorkspacesCommand

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

public class ListWorkspacesCommand
extends AbstractCommand
implements ParseableCommand<java.util.List<Workspace>>


Nested Class Summary
static interface ListWorkspacesCommand.WorkspaceFactory
           
 
Constructor Summary
ListWorkspacesCommand(ListWorkspacesCommand.WorkspaceFactory factory, ServerConfigurationProvider provider)
           
ListWorkspacesCommand(ListWorkspacesCommand.WorkspaceFactory factory, ServerConfigurationProvider config, java.lang.String computer)
           
 
Method Summary
 MaskedArgumentListBuilder getArguments()
          Returns the arguments to be sent to the TF command line client
 java.util.List<Workspace> parse(java.io.Reader consoleReader)
          Returns data from parsing the command line client output in reader
 
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

ListWorkspacesCommand

public ListWorkspacesCommand(ListWorkspacesCommand.WorkspaceFactory factory,
                             ServerConfigurationProvider provider)

ListWorkspacesCommand

public ListWorkspacesCommand(ListWorkspacesCommand.WorkspaceFactory factory,
                             ServerConfigurationProvider config,
                             java.lang.String computer)
Method Detail

getArguments

public MaskedArgumentListBuilder getArguments()
Description copied from interface: Command
Returns the arguments to be sent to the TF command line client

Specified by:
getArguments in interface Command
Returns:
arguments for the TF tool

parse

public java.util.List<Workspace> parse(java.io.Reader consoleReader)
                                throws java.io.IOException
Description copied from interface: ParseableCommand
Returns data from parsing the command line client output in reader

Specified by:
parse in interface ParseableCommand<java.util.List<Workspace>>
Parameters:
consoleReader - reader containing the output from the command line client
Returns:
parsed data
Throws:
java.io.IOException - thrown if there was a problem reading the data from the reader


Copyright © 2011. All Rights Reserved.