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 String
getNewObjectId()
NotifyHandling
getNotify()
String
getOldObjectId()
String
getProjectName()
String
getRefName()
AccountInfo
getUpdater()
The updater, could be null if it's the server.boolean
isCreate()
boolean
isDelete()
boolean
isNonFastForward()
-
-
-
Constructor Detail
-
GitReferenceUpdatedEvent
public GitReferenceUpdatedEvent(Project.NameKey project, GitBatchRefUpdateListener.UpdatedRef updatedRef, AccountInfo updater)
-
-
Method Detail
-
getProjectName
public String getProjectName()
- Specified by:
getProjectName
in interfaceProjectEvent
-
getNotify
public NotifyHandling getNotify()
- Specified by:
getNotify
in interfaceGerritEvent
-
getRefName
public String getRefName()
- Specified by:
getRefName
in interfaceGitBatchRefUpdateListener.UpdatedRef
-
getOldObjectId
public String getOldObjectId()
- Specified by:
getOldObjectId
in interfaceGitBatchRefUpdateListener.UpdatedRef
-
getNewObjectId
public String 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
public AccountInfo getUpdater()
Description copied from interface:GitReferenceUpdatedListener.Event
The updater, could be null if it's the server.- Specified by:
getUpdater
in interfaceGitReferenceUpdatedListener.Event
-
-