public class HistoryCommand extends Command
localDirectory
Constructor and Description |
---|
HistoryCommand()
Construct a new history command
|
Modifier and Type | Method and Description |
---|---|
void |
addForUsers(String forUser) |
void |
addLastEventForFile(String newFile) |
void |
addReportLastEventForModule(String newModule) |
void |
addReportOnModule(String newReportOnModule) |
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[] |
getForUsers()
Getter for property forUsers.
|
String[] |
getLastEventForFile()
Getter for property lastEventForFile.
|
String |
getOptString()
String returned by this method defines which options are available for
this particular command
|
String |
getReportEventType()
Getter for property reportEventType.
|
String[] |
getReportLastEventForModule()
Getter for property reportLastEventForModule.
|
String[] |
getReportOnModule()
Getter for property reportOnModule.
|
String |
getShowBackToRecordContaining()
Getter for property goBackToRecord.
|
String |
getSinceDate()
Getter for property sinceDate.
|
String |
getSinceRevision()
Getter for property sinceRevision.
|
String |
getSinceTag()
Getter for property sinceTag.
|
String |
getTimeZone()
Getter for property timeZone.
|
boolean |
isForAllUsers()
Getter for property forAllUsers.
|
boolean |
isForWorkingDirectory()
Getter for property forWorkingDirectory.
|
boolean |
isLastEventOfProject()
Getter for property lastEventOfProject.
|
boolean |
isReportCheckouts()
Getter for property reportCheckout.
|
boolean |
isReportCommits()
Getter for property reportCommits.
|
boolean |
isReportEverything()
Getter for property reportEverything.
|
boolean |
isReportTags()
Getter for property reportTags.
|
void |
resetCVSCommand()
resets all switches in the command.
|
boolean |
setCVSCommand(char opt,
String optArg)
takes the arguments and sets the command.
|
void |
setForAllUsers(boolean forAllUsers)
Setter for property forAllUsers.
|
void |
setForUsers(String[] forUsers)
Setter for property forUsers.
|
void |
setForWorkingDirectory(boolean forWorkingDirectory)
Setter for property forWorkingDirectory.
|
void |
setLastEventForFile(String[] lastEventForFile)
Setter for property lastEventForFile.
|
void |
setLastEventOfProject(boolean lastEventOfProject)
Setter for property lastEventOfProject.
|
void |
setReportCheckouts(boolean reportCheckout)
Setter for property reportCheckout.
|
void |
setReportCommits(boolean reportCommits)
Setter for property reportCommits.
|
void |
setReportEventType(String reportEventType)
Setter for property reportEventType.
|
void |
setReportEverything(boolean reportEverything)
Setter for property reportEverything.
|
void |
setReportLastEventForModule(String[] reportLastEventForModule)
Setter for property reportLastEventForModule.
|
void |
setReportOnModule(String[] reportOnModule)
Setter for property reportOnModule.
|
void |
setReportTags(boolean reportTags)
Setter for property reportTags.
|
void |
setShowBackToRecordContaining(String goBackToRecord)
Setter for property goBackToRecord.
|
void |
setSinceDate(String sinceDate)
Setter for property sinceDate.
|
void |
setSinceRevision(String sinceRevision)
Setter for property sinceRevision.
|
void |
setSinceTag(String sinceTag)
Setter for property sinceTag.
|
void |
setTimeZone(String timeZone)
Setter for property timeZone.
|
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, messageSent, messageSent, moduleExpanded, setDisplayName, setLocalDirectory
public Builder createBuilder(EventManager eventMan)
eventMan
- the event manager used to receive events.public void execute(ClientServices client, EventManager em) throws CommandException, AuthenticationException
execute
in class Command
client
- the client services object that provides any necessary
services to this command, including the ability to actually
process all the requests.CommandException
AuthenticationException
public void commandTerminated(TerminationEvent e)
commandTerminated
in interface CVSListener
commandTerminated
in class Command
public String getCVSCommand()
getCVSCommand
in class Command
public boolean setCVSCommand(char opt, String optArg)
setCVSCommand
in class Command
public String getOptString()
getOptString
in class Command
public void resetCVSCommand()
resetCVSCommand
in class Command
public String getCVSArguments()
getCVSArguments
in class Command
public boolean isForAllUsers()
public void setForAllUsers(boolean forAllUsers)
forAllUsers
- New value of property forAllUsers.public String getShowBackToRecordContaining()
public void setShowBackToRecordContaining(String goBackToRecord)
goBackToRecord
- New value of property goBackToRecord.public boolean isReportCommits()
public void setReportCommits(boolean reportCommits)
reportCommits
- New value of property reportCommits.public String getSinceDate()
public void setSinceDate(String sinceDate)
sinceDate
- New value of property sinceDate.public boolean isReportEverything()
public void setReportEverything(boolean reportEverything)
reportEverything
- New value of property reportEverything.public boolean isLastEventOfProject()
public void setLastEventOfProject(boolean lastEventOfProject)
lastEventOfProject
- New value of property lastEventOfProject.public boolean isReportCheckouts()
public void setReportCheckouts(boolean reportCheckout)
reportCheckout
- New value of property reportCheckout.public String getSinceRevision()
public void setSinceRevision(String sinceRevision)
sinceRevision
- New value of property sinceRevision.public boolean isReportTags()
public void setReportTags(boolean reportTags)
reportTags
- New value of property reportTags.public String getSinceTag()
public void setSinceTag(String sinceTag)
sinceTag
- New value of property sinceTag.public boolean isForWorkingDirectory()
public void setForWorkingDirectory(boolean forWorkingDirectory)
forWorkingDirectory
- New value of property forWorkingDirectory.public String getReportEventType()
public void setReportEventType(String reportEventType)
reportEventType
- New value of property reportEventType.public String getTimeZone()
public void setTimeZone(String timeZone)
timeZone
- New value of property timeZone.public String[] getLastEventForFile()
public void setLastEventForFile(String[] lastEventForFile)
lastEventForFile
- New value of property lastEventForFile.public void addLastEventForFile(String newFile)
public String[] getReportOnModule()
public void setReportOnModule(String[] reportOnModule)
reportOnModule
- New value of property reportOnModule.public void addReportOnModule(String newReportOnModule)
public String[] getReportLastEventForModule()
public void setReportLastEventForModule(String[] reportLastEventForModule)
reportLastEventForModule
- New value of property reportLastEventForModule.public void addReportLastEventForModule(String newModule)
public String[] getForUsers()
public void setForUsers(String[] forUsers)
forUsers
- New value of property forUsers.public void addForUsers(String forUser)
Copyright © 2016. All rights reserved.