Class RepositoryCommand<T>

java.lang.Object
com.linecorp.centraldogma.server.command.RepositoryCommand<T>
Type Parameters:
T - the result type of a Command
All Implemented Interfaces:
Command<T>
Direct Known Subclasses:
AbstractPushCommand

public abstract class RepositoryCommand<T> extends Object
A super class of the Commands which perform operations on a repository.
  • Method Details

    • projectName

      public final String projectName()
      Returns the project name.
    • repositoryName

      public final String repositoryName()
      Returns the repository name.
    • executionPath

      public final String 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

      public boolean equals(Object obj)
    • hashCode

      public int hashCode()
    • type

      public final CommandType type()
      Description copied from interface: Command
      Returns the CommandType of the command.
      Specified by:
      type in interface Command<T>
    • timestamp

      public final long timestamp()
      Description copied from interface: Command
      Returns the time when performing the command, in milliseconds.
      Specified by:
      timestamp in interface Command<T>
    • author

      public final Author author()
      Description copied from interface: Command
      Returns the author who initiated the command.
      Specified by:
      author in interface Command<T>
    • toString

      public final String toString()
      Overrides:
      toString in class Object