com.atlassian.bamboo.ww2.actions.project
Class DecoratedEntityReference

java.lang.Object
  extended by com.atlassian.bamboo.ww2.actions.project.DecoratedEntityReference
All Implemented Interfaces:
java.lang.Comparable<DecoratedEntityReference>

public class DecoratedEntityReference
extends java.lang.Object
implements java.lang.Comparable<DecoratedEntityReference>

Decorated version of EntityReference Note: this class has a natural ordering that is inconsistent with equals


Method Summary
 int compareTo(DecoratedEntityReference o)
           
 boolean equals(java.lang.Object o)
           
static com.google.common.base.Function<com.atlassian.applinks.api.EntityLink,DecoratedEntityReference> fromEntityLink(com.atlassian.core.i18n.I18nTextProvider i18nTextProvider)
           
static com.google.common.base.Function<com.atlassian.applinks.host.spi.EntityReference,DecoratedEntityReference> fromEntityReference(com.atlassian.core.i18n.I18nTextProvider i18nTextProvider, com.atlassian.applinks.api.ApplicationLink applicationLink)
           
static com.google.common.base.Function<java.util.Map.Entry<com.atlassian.applinks.api.ApplicationLink,com.atlassian.applinks.host.spi.EntityReference>,DecoratedEntityReference> fromEntityReferenceMap(com.atlassian.core.i18n.I18nTextProvider i18nTextProvider)
           
 DecoratedApplicationLink getApplicationLink()
           
 java.lang.String getCompositeKey()
           
 java.lang.String getDisplayName()
           
 java.lang.String getKey()
           
 java.lang.String getName()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(DecoratedEntityReference o)
Specified by:
compareTo in interface java.lang.Comparable<DecoratedEntityReference>

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

fromEntityReference

public static com.google.common.base.Function<com.atlassian.applinks.host.spi.EntityReference,DecoratedEntityReference> fromEntityReference(@NotNull
                                                                                                                                            com.atlassian.core.i18n.I18nTextProvider i18nTextProvider,
                                                                                                                                            @NotNull
                                                                                                                                            com.atlassian.applinks.api.ApplicationLink applicationLink)

fromEntityReferenceMap

public static com.google.common.base.Function<java.util.Map.Entry<com.atlassian.applinks.api.ApplicationLink,com.atlassian.applinks.host.spi.EntityReference>,DecoratedEntityReference> fromEntityReferenceMap(@NotNull
                                                                                                                                                                                                               com.atlassian.core.i18n.I18nTextProvider i18nTextProvider)

fromEntityLink

public static com.google.common.base.Function<com.atlassian.applinks.api.EntityLink,DecoratedEntityReference> fromEntityLink(@NotNull
                                                                                                                             com.atlassian.core.i18n.I18nTextProvider i18nTextProvider)

getApplicationLink

public DecoratedApplicationLink getApplicationLink()

getKey

public java.lang.String getKey()

getName

public java.lang.String getName()

getCompositeKey

public java.lang.String getCompositeKey()

getDisplayName

public java.lang.String getDisplayName()


Copyright © 2011 Atlassian. All Rights Reserved.