com.atlassian.applinks.host.spi
Class DefaultEntityReference
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DefaultEntityReference
public DefaultEntityReference(java.lang.String key,
java.lang.String name,
EntityType type)
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.