public class HistoryCommand extends Command
localDirectory
Constructor and Description |
---|
HistoryCommand()
Construct a new history command
|
Modifier and Type | Method and Description |
---|---|
void |
addForUsers(java.lang.String forUser) |
void |
addLastEventForFile(java.lang.String newFile) |
void |
addReportLastEventForModule(java.lang.String newModule) |
void |
addReportOnModule(java.lang.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
|
java.lang.String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
java.lang.String |
getCVSCommand()
This method returns how the command would looklike when typed on the command line.
|
java.lang.String[] |
getForUsers()
Getter for property forUsers.
|
java.lang.String[] |
getLastEventForFile()
Getter for property lastEventForFile.
|
java.lang.String |
getOptString()
String returned by this method defines which options are available for this particular command
|
java.lang.String |
getReportEventType()
Getter for property reportEventType.
|
java.lang.String[] |
getReportLastEventForModule()
Getter for property reportLastEventForModule.
|
java.lang.String[] |
getReportOnModule()
Getter for property reportOnModule.
|
java.lang.String |
getShowBackToRecordContaining()
Getter for property goBackToRecord.
|
java.lang.String |
getSinceDate()
Getter for property sinceDate.
|
java.lang.String |
getSinceRevision()
Getter for property sinceRevision.
|
java.lang.String |
getSinceTag()
Getter for property sinceTag.
|
java.lang.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,
java.lang.String optArg)
takes the arguments and sets the command.
|
void |
setForAllUsers(boolean forAllUsers)
Setter for property forAllUsers.
|
void |
setForUsers(java.lang.String[] forUsers)
Setter for property forUsers.
|
void |
setForWorkingDirectory(boolean forWorkingDirectory)
Setter for property forWorkingDirectory.
|
void |
setLastEventForFile(java.lang.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(java.lang.String reportEventType)
Setter for property reportEventType.
|
void |
setReportEverything(boolean reportEverything)
Setter for property reportEverything.
|
void |
setReportLastEventForModule(java.lang.String[] reportLastEventForModule)
Setter for property reportLastEventForModule.
|
void |
setReportOnModule(java.lang.String[] reportOnModule)
Setter for property reportOnModule.
|
void |
setReportTags(boolean reportTags)
Setter for property reportTags.
|
void |
setShowBackToRecordContaining(java.lang.String goBackToRecord)
Setter for property goBackToRecord.
|
void |
setSinceDate(java.lang.String sinceDate)
Setter for property sinceDate.
|
void |
setSinceRevision(java.lang.String sinceRevision)
Setter for property sinceRevision.
|
void |
setSinceTag(java.lang.String sinceTag)
Setter for property sinceTag.
|
void |
setTimeZone(java.lang.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 java.lang.String getCVSCommand()
getCVSCommand
in class Command
public boolean setCVSCommand(char opt, java.lang.String optArg)
setCVSCommand
in class Command
public java.lang.String getOptString()
getOptString
in class Command
public void resetCVSCommand()
resetCVSCommand
in class Command
public java.lang.String getCVSArguments()
getCVSArguments
in class Command
public boolean isForAllUsers()
public void setForAllUsers(boolean forAllUsers)
forAllUsers
- New value of property forAllUsers.public java.lang.String getShowBackToRecordContaining()
public void setShowBackToRecordContaining(java.lang.String goBackToRecord)
goBackToRecord
- New value of property goBackToRecord.public boolean isReportCommits()
public void setReportCommits(boolean reportCommits)
reportCommits
- New value of property reportCommits.public java.lang.String getSinceDate()
public void setSinceDate(java.lang.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 java.lang.String getSinceRevision()
public void setSinceRevision(java.lang.String sinceRevision)
sinceRevision
- New value of property sinceRevision.public boolean isReportTags()
public void setReportTags(boolean reportTags)
reportTags
- New value of property reportTags.public java.lang.String getSinceTag()
public void setSinceTag(java.lang.String sinceTag)
sinceTag
- New value of property sinceTag.public boolean isForWorkingDirectory()
public void setForWorkingDirectory(boolean forWorkingDirectory)
forWorkingDirectory
- New value of property forWorkingDirectory.public java.lang.String getReportEventType()
public void setReportEventType(java.lang.String reportEventType)
reportEventType
- New value of property reportEventType.public java.lang.String getTimeZone()
public void setTimeZone(java.lang.String timeZone)
timeZone
- New value of property timeZone.public java.lang.String[] getLastEventForFile()
public void setLastEventForFile(java.lang.String[] lastEventForFile)
lastEventForFile
- New value of property lastEventForFile.public void addLastEventForFile(java.lang.String newFile)
public java.lang.String[] getReportOnModule()
public void setReportOnModule(java.lang.String[] reportOnModule)
reportOnModule
- New value of property reportOnModule.public void addReportOnModule(java.lang.String newReportOnModule)
public java.lang.String[] getReportLastEventForModule()
public void setReportLastEventForModule(java.lang.String[] reportLastEventForModule)
reportLastEventForModule
- New value of property reportLastEventForModule.public void addReportLastEventForModule(java.lang.String newModule)
public java.lang.String[] getForUsers()
public void setForUsers(java.lang.String[] forUsers)
forUsers
- New value of property forUsers.public void addForUsers(java.lang.String forUser)
Built on January 12 2013. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.