com.atlassian.applinks.host.spi
Class DefaultEntityReference

java.lang.Object
  extended by com.atlassian.applinks.host.spi.DefaultEntityReference
All Implemented Interfaces:
EntityReference

public class DefaultEntityReference
extends java.lang.Object
implements EntityReference

Default implementation of EntityReference provided as a convenience to facilitate implementation of InternalHostApplication

Since:
3.0

Constructor Summary
DefaultEntityReference(java.lang.String key, java.lang.String name, EntityType type)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getKey()
           
 java.lang.String getName()
           
 EntityType getType()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultEntityReference

public DefaultEntityReference(java.lang.String key,
                              java.lang.String name,
                              EntityType type)
Method Detail

getKey

public java.lang.String getKey()
Specified by:
getKey in interface EntityReference
Returns:
the String key of the entity, (e.g. JRA, CRUC, CR-FE, etc.)

getName

public java.lang.String getName()
Specified by:
getName in interface EntityReference
Returns:
the name of the remote entity (e.g. "My JIRA Project", "My FishEye Repository")

getType

public EntityType getType()
Specified by:
getType in interface EntityReference
Returns:
the type of the entity (e.g. jira-project, fisheye-repository, etc.)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 Atlassian. All Rights Reserved.