Class AbstractPushCommand<T>

java.lang.Object
com.linecorp.centraldogma.server.command.RepositoryCommand<T>
com.linecorp.centraldogma.server.command.AbstractPushCommand<T>
All Implemented Interfaces:
Command<T>
Direct Known Subclasses:
NormalizingPushCommand, PushAsIsCommand

public abstract class AbstractPushCommand<T> extends RepositoryCommand<T>
A Command which is used for pushing changes to the repository.
  • Method Details

    • baseRevision

      public Revision baseRevision()
      Returns the base Revision.
    • summary

      public String summary()
      Returns the human-readable summary of the commit.
    • detail

      public String detail()
      Returns the human-readable detail of the commit.
    • markup

      public Markup markup()
      Returns the Markup of the detail().
    • changes

      public List<Change<?>> changes()
      Returns the Changes of the commit.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class RepositoryCommand<T>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class RepositoryCommand<T>
    • 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