com.atlassian.applinks.api.event
Class EntityLinkEvent

java.lang.Object
  extended by com.atlassian.applinks.api.event.EntityLinkEvent
All Implemented Interfaces:
LinkEvent
Direct Known Subclasses:
EntityLinkAddedEvent, EntityLinkDeletedEvent

public abstract class EntityLinkEvent
extends java.lang.Object
implements LinkEvent

Base class for events emitted when an EntityLink is modified

Since:
3.0

Field Summary
protected  EntityLink entityLink
           
protected  java.lang.String localKey
           
protected  java.lang.Class<? extends EntityType> localType
           
 
Constructor Summary
protected EntityLinkEvent(EntityLink entityLink, java.lang.String localKey, java.lang.Class<? extends EntityType> localType)
           
 
Method Summary
 ApplicationId getApplicationId()
           
 ApplicationType getApplicationType()
           
 java.lang.String getEntityKey()
           
 EntityType getEntityType()
           
 java.lang.String getLocalKey()
           
 java.lang.Class<? extends EntityType> getLocalType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityLink

protected final EntityLink entityLink

localKey

protected final java.lang.String localKey

localType

protected final java.lang.Class<? extends EntityType> localType
Constructor Detail

EntityLinkEvent

protected EntityLinkEvent(EntityLink entityLink,
                          java.lang.String localKey,
                          java.lang.Class<? extends EntityType> localType)
Method Detail

getApplicationId

public ApplicationId getApplicationId()
Returns:
the globally unique, immutable ID of the server at the other end of this link.

getApplicationType

public ApplicationType getApplicationType()
Returns:
the type of the application e.g. "fecru"

getEntityType

public EntityType getEntityType()

getEntityKey

public java.lang.String getEntityKey()
Returns:
the remote project-level entity key (e.g. JRA, JIRAEXT)

getLocalKey

public java.lang.String getLocalKey()
Returns:
the local key of the entity that this entity link belongs to.
Since:
3.2

getLocalType

public java.lang.Class<? extends EntityType> getLocalType()
Returns:
the type of the local entity that this entity link belongs to.
Since:
3.2


Copyright © 2011 Atlassian. All Rights Reserved.