Class GitReferenceUpdated.GitReferenceUpdatedEvent
java.lang.Object
com.google.gerrit.server.extensions.events.GitReferenceUpdated.GitReferenceUpdatedEvent
- All Implemented Interfaces:
GerritEvent
,GitBatchRefUpdateListener.UpdatedRef
,GitReferenceUpdatedListener.Event
,ProjectEvent
- Enclosing class:
GitReferenceUpdated
public static class GitReferenceUpdated.GitReferenceUpdatedEvent
extends Object
implements GitReferenceUpdatedListener.Event
-
Constructor Summary
ConstructorDescriptionGitReferenceUpdatedEvent
(Project.NameKey project, GitBatchRefUpdateListener.UpdatedRef updatedRef, AccountInfo updater) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.gerrit.extensions.events.GerritEvent
getInstanceId
-
Constructor Details
-
GitReferenceUpdatedEvent
public GitReferenceUpdatedEvent(Project.NameKey project, GitBatchRefUpdateListener.UpdatedRef updatedRef, AccountInfo updater)
-
-
Method Details
-
getProjectName
- Specified by:
getProjectName
in interfaceProjectEvent
-
getNotify
- Specified by:
getNotify
in interfaceGerritEvent
-
getRefName
- Specified by:
getRefName
in interfaceGitBatchRefUpdateListener.UpdatedRef
-
getOldObjectId
- Specified by:
getOldObjectId
in interfaceGitBatchRefUpdateListener.UpdatedRef
-
getNewObjectId
- Specified by:
getNewObjectId
in interfaceGitBatchRefUpdateListener.UpdatedRef
-
isCreate
public boolean isCreate()- Specified by:
isCreate
in interfaceGitBatchRefUpdateListener.UpdatedRef
-
isDelete
public boolean isDelete()- Specified by:
isDelete
in interfaceGitBatchRefUpdateListener.UpdatedRef
-
isNonFastForward
public boolean isNonFastForward()- Specified by:
isNonFastForward
in interfaceGitBatchRefUpdateListener.UpdatedRef
-
getUpdater
Description copied from interface:GitReferenceUpdatedListener.Event
The updater, could be null if it's the server.- Specified by:
getUpdater
in interfaceGitReferenceUpdatedListener.Event
-