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
Constructors Constructor Description GitReferenceUpdatedEvent(Project.NameKey project, GitBatchRefUpdateListener.UpdatedRef updatedRef, AccountInfo updater)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNewObjectId()NotifyHandlinggetNotify()StringgetOldObjectId()StringgetProjectName()StringgetRefName()AccountInfogetUpdater()The updater, could be null if it's the server.booleanisCreate()booleanisDelete()booleanisNonFastForward()
-
-
-
Constructor Detail
-
GitReferenceUpdatedEvent
public GitReferenceUpdatedEvent(Project.NameKey project, GitBatchRefUpdateListener.UpdatedRef updatedRef, AccountInfo updater)
-
-
Method Detail
-
getProjectName
public String getProjectName()
- Specified by:
getProjectNamein interfaceProjectEvent
-
getNotify
public NotifyHandling getNotify()
- Specified by:
getNotifyin interfaceGerritEvent
-
getRefName
public String getRefName()
- Specified by:
getRefNamein interfaceGitBatchRefUpdateListener.UpdatedRef
-
getOldObjectId
public String getOldObjectId()
- Specified by:
getOldObjectIdin interfaceGitBatchRefUpdateListener.UpdatedRef
-
getNewObjectId
public String getNewObjectId()
- Specified by:
getNewObjectIdin interfaceGitBatchRefUpdateListener.UpdatedRef
-
isCreate
public boolean isCreate()
- Specified by:
isCreatein interfaceGitBatchRefUpdateListener.UpdatedRef
-
isDelete
public boolean isDelete()
- Specified by:
isDeletein interfaceGitBatchRefUpdateListener.UpdatedRef
-
isNonFastForward
public boolean isNonFastForward()
- Specified by:
isNonFastForwardin interfaceGitBatchRefUpdateListener.UpdatedRef
-
getUpdater
public AccountInfo getUpdater()
Description copied from interface:GitReferenceUpdatedListener.EventThe updater, could be null if it's the server.- Specified by:
getUpdaterin interfaceGitReferenceUpdatedListener.Event
-
-