public class LogCommand extends BasicCommand
| Modifier and Type | Field and Description |
|---|---|
protected EventManager |
eventManager
The event manager to use.
|
clientServices, files, requestsbuilderlocalDirectory| Constructor and Description |
|---|
LogCommand()
Construct a new status command
|
| Modifier and Type | Method and Description |
|---|---|
void |
commandTerminated(TerminationEvent e)
called when server responses with "ok" or "error", (when the command
finishes)
|
Builder |
createBuilder(EventManager eventMan)
Create a builder for this command.
|
void |
execute(ClientServices client,
EventManager em)
Execute a command
|
String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
String |
getCVSCommand()
This method returns how the command would looklike when typed on the
command line.
|
String |
getDateFilter()
Getter for property dateFilter, equals the command-line CVS switch "-d".
|
String |
getOptString()
String returned by this method defines which options are available for
this particular command
|
String |
getRevisionFilter()
Getter for property revisionFilter, equals the command-line CVS switch
"-r".
|
String |
getStateFilter()
Getter for property stateFilter, equals the command-line CVS switch "-s".
|
String |
getUserFilter()
Getter for property userFilter, equals the command-line CVS switch "-w".
|
boolean |
isDefaultBranch()
Getter for property defaultBranch, equals the command-line CVS switch
"-b".
|
boolean |
isHeaderAndDescOnly()
Getter for property headerAndDescOnly, equals the command-line CVS switch
"-t".
|
boolean |
isHeaderOnly()
Getter for property headerOnly, equals the command-line CVS switch "-h".
|
boolean |
isNoTags()
Getter for property noTags, equals the command-line CVS switch "-N".
|
void |
resetCVSCommand()
Resets all switches in the command to the default behaviour.
|
boolean |
setCVSCommand(char opt,
String optArg)
takes the arguments and sets the command.
|
void |
setDateFilter(String dateFilter)
Setter for property dateFilter, equals the command-line CVS switch "-d".
|
void |
setDefaultBranch(boolean defaultBranch)
Setter for property defaultBranch, equals the command-line CVS switch
"-b".
|
void |
setHeaderAndDescOnly(boolean headerAndDescOnly)
Setter for property headerAndDescOnly, equals the command-line CVS switch
"-t".
|
void |
setHeaderOnly(boolean headerOnly)
Setter for property headerOnly, equals the command-line CVS switch "-h".
|
void |
setNoTags(boolean noTags)
Setter for property noTags, equals the command-line CVS switch "-N".
|
void |
setRevisionFilter(String revisionFilter)
Setter for property revisionFilter, equals the command-line CVS switch
"-r".
|
void |
setStateFilter(String stateFilter)
Setter for property stateFilter, equals the command-line CVS switch "-s".
|
void |
setUserFilter(String userFilter)
Setter for property userFilter, equals the command-line CVS switch "-w".
|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, assumeLocalPathWhenUnspecified, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, sendEntryAndModifiedRequests, setFiles, setRecursiveisBuilderSet, messageSent, messageSent, setBuilderclone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectoryprotected EventManager eventManager
public Builder createBuilder(EventManager eventMan)
createBuilder in class BuildableCommandeventMan - the event manager used to receive events.public void execute(ClientServices client, EventManager em) throws CommandException, AuthenticationException
execute in class BasicCommandclient - the client services object that provides any necessary
services to this command, including the ability to actually
process all the requests.CommandException - if an error occurs executing the commandAuthenticationExceptionpublic void commandTerminated(TerminationEvent e)
commandTerminated in interface CVSListenercommandTerminated in class BuildableCommandpublic boolean isDefaultBranch()
public void setDefaultBranch(boolean defaultBranch)
defaultBranch - New value of property defaultBranch.public String getDateFilter()
public void setDateFilter(String dateFilter)
dateFilter - New value of property dateFilter.public boolean isHeaderOnly()
public void setHeaderOnly(boolean headerOnly)
headerOnly - New value of property headerOnly.public boolean isNoTags()
public void setNoTags(boolean noTags)
noTags - New value of property noTags.public String getRevisionFilter()
public void setRevisionFilter(String revisionFilter)
revisionFilter - New value of property revisionFilter. empty string means
latest revision of default branch.public String getStateFilter()
public void setStateFilter(String stateFilter)
stateFilter - New value of property stateFilter.public String getUserFilter()
public void setUserFilter(String userFilter)
userFilter - New value of property userFilter.public boolean isHeaderAndDescOnly()
public void setHeaderAndDescOnly(boolean headerAndDescOnly)
headerAndDescOnly - New value of property headerAndDescOnly.public String getCVSCommand()
getCVSCommand in class Commandpublic boolean setCVSCommand(char opt,
String optArg)
setCVSCommand in class Commandpublic void resetCVSCommand()
CommandresetCVSCommand in class Commandpublic String getOptString()
getOptString in class Commandpublic String getCVSArguments()
getCVSArguments in class CommandCopyright © 2013. All rights reserved.