com.atlassian.jira.entity.remotelink
Class RemoteEntityLinkImpl<E>

java.lang.Object
  extended by com.atlassian.jira.entity.remotelink.RemoteEntityLinkImpl<E>
All Implemented Interfaces:
RemoteEntityLink<E>
Direct Known Subclasses:
RemoteVersionLinkImpl

public abstract class RemoteEntityLinkImpl<E>
extends Object
implements RemoteEntityLink<E>

Since:
v6.1

Field Summary
protected static String APPLICATION
           
protected static String APPLICATION_NAME
           
protected static String APPLICATION_TYPE
           
protected  String globalId
           
protected  LazyJsonParser jsonRef
           
protected static String OBJECT
           
protected static String OBJECT_ICON
           
protected static String OBJECT_ICON_TITLE
           
protected static String OBJECT_ICON_URL
           
protected static String OBJECT_SUMMARY
           
protected static String OBJECT_TITLE
           
protected static String OBJECT_URL
           
 
Fields inherited from interface com.atlassian.jira.entity.remotelink.RemoteEntityLink
GLOBAL_ID
 
Constructor Summary
protected RemoteEntityLinkImpl(String globalId, String json)
           
 
Method Summary
abstract  boolean equals(Object o)
           
 String getApplicationName()
          Returns the application name for the remote entity link, as extracted from the raw JSON.
 String getApplicationType()
          Returns the application type for the remote entity link, as extracted from the raw JSON.
 String getGlobalId()
          Returns the global ID for the remote entity link.
 String getIconTitle()
          Returns the target object icon title for the remote entity link, as extracted from the raw JSON.
 String getIconUrl()
          Returns the target object icon URL for the remote entity link, as extracted from the raw JSON.
 String getJsonString()
          Returns the raw JSON value stored for this remote entity link.
 String getSummary()
          Returns the target object summary for the remote entity link, as extracted from the raw JSON.
 String getTitle()
          Returns the target object title for the remote entity link, as extracted from the raw JSON.
 String getUrl()
          Returns the target object URL for the remote entity link, as extracted from the raw JSON.
abstract  int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.entity.remotelink.RemoteEntityLink
getEntity, getEntityId
 

Field Detail

APPLICATION

protected static final String APPLICATION
See Also:
Constant Field Values

APPLICATION_NAME

protected static final String APPLICATION_NAME
See Also:
Constant Field Values

APPLICATION_TYPE

protected static final String APPLICATION_TYPE
See Also:
Constant Field Values

OBJECT

protected static final String OBJECT
See Also:
Constant Field Values

OBJECT_ICON

protected static final String OBJECT_ICON
See Also:
Constant Field Values

OBJECT_ICON_TITLE

protected static final String OBJECT_ICON_TITLE
See Also:
Constant Field Values

OBJECT_ICON_URL

protected static final String OBJECT_ICON_URL
See Also:
Constant Field Values

OBJECT_SUMMARY

protected static final String OBJECT_SUMMARY
See Also:
Constant Field Values

OBJECT_TITLE

protected static final String OBJECT_TITLE
See Also:
Constant Field Values

OBJECT_URL

protected static final String OBJECT_URL
See Also:
Constant Field Values

globalId

protected final String globalId

jsonRef

protected final LazyJsonParser jsonRef
Constructor Detail

RemoteEntityLinkImpl

protected RemoteEntityLinkImpl(@Nonnull
                               String globalId,
                               @Nonnull
                               String json)
Method Detail

getGlobalId

@Nonnull
public String getGlobalId()
Description copied from interface: RemoteEntityLink
Returns the global ID for the remote entity link.

Specified by:
getGlobalId in interface RemoteEntityLink<E>
Returns:
the global ID for the remote entity link.

getJsonString

@Nonnull
public String getJsonString()
Description copied from interface: RemoteEntityLink
Returns the raw JSON value stored for this remote entity link.

Specified by:
getJsonString in interface RemoteEntityLink<E>
Returns:
the raw JSON value stored for this remote entity link.

getTitle

public String getTitle()
Description copied from interface: RemoteEntityLink
Returns the target object title for the remote entity link, as extracted from the raw JSON.

Specified by:
getTitle in interface RemoteEntityLink<E>
Returns:
the target object title for the remote entity link, or null if it is not defined

getSummary

public String getSummary()
Description copied from interface: RemoteEntityLink
Returns the target object summary for the remote entity link, as extracted from the raw JSON.

Specified by:
getSummary in interface RemoteEntityLink<E>
Returns:
the target object summary for the remote entity link, or null if it is not defined

getUrl

public String getUrl()
Description copied from interface: RemoteEntityLink
Returns the target object URL for the remote entity link, as extracted from the raw JSON.

Specified by:
getUrl in interface RemoteEntityLink<E>
Returns:
the target object URL for the remote entity link, or null if it is not defined

getIconUrl

public String getIconUrl()
Description copied from interface: RemoteEntityLink
Returns the target object icon URL for the remote entity link, as extracted from the raw JSON.

Specified by:
getIconUrl in interface RemoteEntityLink<E>
Returns:
the target object icon URL for the remote entity link, or null if it is not defined

getIconTitle

public String getIconTitle()
Description copied from interface: RemoteEntityLink
Returns the target object icon title for the remote entity link, as extracted from the raw JSON.

Specified by:
getIconTitle in interface RemoteEntityLink<E>
Returns:
the target object icon title for the remote entity link, or null if it is not defined

getApplicationName

public String getApplicationName()
Description copied from interface: RemoteEntityLink
Returns the application name for the remote entity link, as extracted from the raw JSON.

Specified by:
getApplicationName in interface RemoteEntityLink<E>
Returns:
the application name for the remote entity link, or null if it is not defined

getApplicationType

public String getApplicationType()
Description copied from interface: RemoteEntityLink
Returns the application type for the remote entity link, as extracted from the raw JSON.

Specified by:
getApplicationType in interface RemoteEntityLink<E>
Returns:
the application type for the remote entity link, or null if it is not defined

hashCode

public abstract int hashCode()
Overrides:
hashCode in class Object

equals

public abstract boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.