|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.command.Command
org.netbeans.lib.cvsclient.command.BuildableCommand
org.netbeans.lib.cvsclient.command.BasicCommand
org.netbeans.lib.cvsclient.command.log.LogCommand
public class LogCommand
The log command looks up the log(history) of file(s) in the repository
Field Summary | |
---|---|
protected EventManager |
eventManager
The event manager to use. |
Fields inherited from class org.netbeans.lib.cvsclient.command.BasicCommand |
---|
clientServices, files, requests |
Fields inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
builder |
Fields inherited from class org.netbeans.lib.cvsclient.command.Command |
---|
localDirectory |
Constructor Summary | |
---|---|
LogCommand()
Construct a new status command |
Method Summary | |
---|---|
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 |
getDateFilter()
Getter for property dateFilter, equals the command-line CVS switch "-d". |
java.lang.String |
getOptString()
String returned by this method defines which options are available for this particular command |
java.lang.String |
getRevisionFilter()
Getter for property revisionFilter, equals the command-line CVS switch "-r". |
java.lang.String |
getStateFilter()
Getter for property stateFilter, equals the command-line CVS switch "-s". |
java.lang.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,
java.lang.String optArg)
takes the arguments and sets the command. |
void |
setDateFilter(java.lang.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(java.lang.String revisionFilter)
Setter for property revisionFilter, equals the command-line CVS switch "-r". |
void |
setStateFilter(java.lang.String stateFilter)
Setter for property stateFilter, equals the command-line CVS switch "-s". |
void |
setUserFilter(java.lang.String userFilter)
Setter for property userFilter, equals the command-line CVS switch "-w". |
Methods inherited from class org.netbeans.lib.cvsclient.command.BasicCommand |
---|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, assumeLocalPathWhenUnspecified, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, sendEntryAndModifiedRequests, setFiles, setRecursive |
Methods inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
isBuilderSet, messageSent, messageSent, setBuilder |
Methods inherited from class org.netbeans.lib.cvsclient.command.Command |
---|
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EventManager eventManager
Constructor Detail |
---|
public LogCommand()
Method Detail |
---|
public Builder createBuilder(EventManager eventMan)
createBuilder
in class BuildableCommand
eventMan
- the event manager used to receive events.public void execute(ClientServices client, EventManager em) throws CommandException, AuthenticationException
execute
in class BasicCommand
client
- 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 command
AuthenticationException
public void commandTerminated(TerminationEvent e)
commandTerminated
in interface CVSListener
commandTerminated
in class BuildableCommand
public boolean isDefaultBranch()
public void setDefaultBranch(boolean defaultBranch)
defaultBranch
- New value of property defaultBranch.public java.lang.String getDateFilter()
public void setDateFilter(java.lang.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 java.lang.String getRevisionFilter()
public void setRevisionFilter(java.lang.String revisionFilter)
revisionFilter
- New value of property revisionFilter.
empty string means latest revision of default branch.public java.lang.String getStateFilter()
public void setStateFilter(java.lang.String stateFilter)
stateFilter
- New value of property stateFilter.public java.lang.String getUserFilter()
public void setUserFilter(java.lang.String userFilter)
userFilter
- New value of property userFilter.public boolean isHeaderAndDescOnly()
public void setHeaderAndDescOnly(boolean headerAndDescOnly)
headerAndDescOnly
- New value of property headerAndDescOnly.public java.lang.String getCVSCommand()
getCVSCommand
in class Command
public boolean setCVSCommand(char opt, java.lang.String optArg)
setCVSCommand
in class Command
public void resetCVSCommand()
Command
resetCVSCommand
in class Command
public java.lang.String getOptString()
getOptString
in class Command
public java.lang.String getCVSArguments()
getCVSArguments
in class Command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |