|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.electrocodeogram.cpc.core.api.hub.event.CPCEvent org.electrocodeogram.cpc.core.api.hub.event.EclipseEvent org.electrocodeogram.cpc.core.api.hub.event.EclipseTeamEvent
public class EclipseTeamEvent
A special team action event which is generated by repository provider specific CPC sensors whenever files are committed to or updated from the repository.
Nested Class Summary | |
---|---|
static class |
EclipseTeamEvent.Type
Type for EclipseTeamEvent s. |
Field Summary |
---|
Fields inherited from class org.electrocodeogram.cpc.core.api.hub.event.EclipseEvent |
---|
fileLocatedInWorkspace, fileLocatedInWorkspaceCached, filePath, project, supportedFile, supportedFileCached, user |
Constructor Summary | |
---|---|
EclipseTeamEvent(java.lang.String user,
java.lang.String project)
|
Method Summary | |
---|---|
java.lang.String |
getNewRevision()
Retrieves the new revision identifier as provided by the repository provider. |
java.lang.String |
getOldRevision()
Retrieves the old revision identifier as provided by the repository provider. |
EclipseTeamEvent.Type |
getType()
Retrieves the type of this event. |
boolean |
isValid()
Checks if this event has been fully initialised. |
void |
setNewRevision(java.lang.String revision)
Sets the new revision identifier as provided by the repository provider. |
void |
setOldRevision(java.lang.String oldRevision)
Sets the old revision identifier as provided by the repository provider. |
void |
setType(EclipseTeamEvent.Type type)
Sets the type of this event. |
java.lang.String |
toString()
Every event should implement a sensible toString method for use in debugging log messages. |
Methods inherited from class org.electrocodeogram.cpc.core.api.hub.event.EclipseEvent |
---|
getFilePath, getProject, getUser, isFileLocatedInWorkspace, isSupportedFile, setFilePath, subToString |
Methods inherited from class org.electrocodeogram.cpc.core.api.hub.event.CPCEvent |
---|
checkSeal, clone, compareTo, getCreationTime, seal |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EclipseTeamEvent(java.lang.String user, java.lang.String project)
Method Detail |
---|
public EclipseTeamEvent.Type getType()
public void setType(EclipseTeamEvent.Type type)
type
- the type of this event, never null.public java.lang.String getNewRevision()
public void setNewRevision(java.lang.String revision)
revision
- new revision identifier for this file version, may be NULL.public java.lang.String getOldRevision()
public void setOldRevision(java.lang.String oldRevision)
oldRevision
- the old revision identifier for the file before this team action, may be NULL.public boolean isValid()
CPCEvent
Subclasses should override this method but should never return true. Instead they should delegate to the super class implementation once all validity checks on their level have passed.
The CPCEvent.isValid()
implementation always returns true.
isValid
in class EclipseEvent
IEventHubRegistry.dispatch(CPCEvent)
public java.lang.String toString()
CPCEvent
toString
in class CPCEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |