Interface RemoteEntityLink<E>
- All Known Subinterfaces:
RemoteVersionLink
- All Known Implementing Classes:
RemoteEntityLinkImpl
,RemoteVersionLinkImpl
@ExperimentalApi
public interface RemoteEntityLink<E>
Common abstract class for remote entity links.
- Since:
- v6.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the application name for the remote entity link, as extracted from the raw JSON.Returns the application type for the remote entity link, as extracted from the raw JSON.Returns the local entity to which the remote entity link is associated.Returns the entity ID for the local entity to which the remote entity link is associated.Returns the global ID for the remote entity link.Returns the target object icon title for the remote entity link, as extracted from the raw JSON.Returns the target object icon URL for the remote entity link, as extracted from the raw JSON.Returns the raw JSON value stored for this remote entity link.Returns the target object summary for the remote entity link, as extracted from the raw JSON.getTitle()
Returns the target object title for the remote entity link, as extracted from the raw JSON.getUrl()
Returns the target object URL for the remote entity link, as extracted from the raw JSON.
-
Field Details
-
GLOBAL_ID
The name of the JSON object field that may be used to suggest the global ID to use when creating a remote entity link. The services that create remote entity links accept a global ID and the raw JSON value meaningful to the link service. If the global ID is not specified directly but the JSON value is an object containing a text field by this name (""globalId""), that value is used as the global ID. If neither method of supplying the global ID is used, then a random global ID will be generated for the link, instead.See
RemoteVersionLinkService
for an example of this.- See Also:
-
-
Method Details
-
getEntity
E getEntity()Returns the local entity to which the remote entity link is associated. For example, if this is aRemoteVersionLink
, then this will return aVersion
.- Returns:
- the local entity to which the remote entity link is associated.
-
getEntityId
Returns the entity ID for the local entity to which the remote entity link is associated. For example, if this is aRemoteVersionLink
, then this will be aversion ID
.- Returns:
- the entity ID for the local entity to which the remote entity link is associated.
-
getGlobalId
Returns the global ID for the remote entity link.- Returns:
- the global ID for the remote entity link.
-
getJsonString
Returns the raw JSON value stored for this remote entity link.- Returns:
- the raw JSON value stored for this remote entity link.
-
getTitle
Returns the target object title for the remote entity link, as extracted from the raw JSON.- Returns:
- the target object title for the remote entity link, or
null
if it is not defined
-
getSummary
Returns the target object summary for the remote entity link, as extracted from the raw JSON.- Returns:
- the target object summary for the remote entity link, or
null
if it is not defined
-
getUrl
Returns the target object URL for the remote entity link, as extracted from the raw JSON.- Returns:
- the target object URL for the remote entity link, or
null
if it is not defined
-
getIconUrl
Returns the target object icon URL for the remote entity link, as extracted from the raw JSON.- Returns:
- the target object icon URL for the remote entity link, or
null
if it is not defined
-
getIconTitle
Returns the target object icon title for the remote entity link, as extracted from the raw JSON.- Returns:
- the target object icon title for the remote entity link, or
null
if it is not defined
-
getApplicationName
Returns the application name for the remote entity link, as extracted from the raw JSON.- Returns:
- the application name for the remote entity link, or
null
if it is not defined
-
getApplicationType
Returns the application type for the remote entity link, as extracted from the raw JSON.- Returns:
- the application type for the remote entity link, or
null
if it is not defined
-