Class RepositoryCommand<T>
java.lang.Object
com.linecorp.centraldogma.server.command.RepositoryCommand<T>
- Type Parameters:
T
- the result type of aCommand
- All Implemented Interfaces:
Command<T>
- Direct Known Subclasses:
AbstractPushCommand
,TransformCommand
A super class of the
Command
s which perform operations on a repository.-
Method Summary
Modifier and TypeMethodDescriptionfinal Author
author()
Returns the author who initiated the command.boolean
final String
Returns the target that the command is supposed to affect, i.e. the project name for the commands affecting to the project, or the project and repository names for the commands affecting to the repository.int
hashCode()
final String
Returns the project name.final String
Returns the repository name.final long
Returns the time when performing the command, in milliseconds.final String
toString()
final CommandType
type()
Returns theCommandType
of the command.
-
Method Details
-
projectName
Returns the project name. -
repositoryName
Returns the repository name. -
executionPath
Description copied from interface:Command
Returns the target that the command is supposed to affect, i.e. the project name for the commands affecting to the project, or the project and repository names for the commands affecting to the repository. -
equals
-
hashCode
public int hashCode() -
type
Description copied from interface:Command
Returns theCommandType
of the command. -
timestamp
public final long timestamp()Description copied from interface:Command
Returns the time when performing the command, in milliseconds. -
author
Description copied from interface:Command
Returns the author who initiated the command. -
toString
-