|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityType
Represents the type of an EntityLink
.
See the com.atlassian.applinks.api.application
package for a list of EntityType
s bundled
with the Unified Application Links plugin. Additional types can be added via the extension APIs in the
applinks-spi module.
Method Summary | |
---|---|
java.lang.Class<? extends ApplicationType> |
getApplicationType()
|
java.net.URI |
getDisplayUrl(ApplicationLink link,
java.lang.String entityKey)
Given an ApplicationLink and the key
of an entity on that peer, this method returns that entity's "display
URL". |
java.lang.String |
getI18nKey()
|
java.net.URI |
getIconUrl()
|
java.lang.String |
getPluralizedI18nKey()
|
Method Detail |
---|
java.lang.Class<? extends ApplicationType> getApplicationType()
ApplicationType
that houses this type of entity.java.lang.String getI18nKey()
I18nResolver
component provided by the SAL plugin.getPluralizedI18nKey()
java.lang.String getPluralizedI18nKey()
getI18nKey()
for this type name e.g. "JIRA Projects".getI18nKey()
java.net.URI getIconUrl()
null
if an icon is not
available.java.net.URI getDisplayUrl(ApplicationLink link, java.lang.String entityKey)
Given an ApplicationLink
and the key
of an entity on that peer, this method returns that entity's "display
URL". This would typically be the address where a user's browser is
sent to when it follows the entity link.
Note that the caller does not guarantee that the specified entity key actually exists.
The implementation of this method is stringly recommended not to contact the peer either for validation of the supplied entity key, or help creating the display URL, as this method can be called multiple times during a page render.
link
- the link MUST be of the same type as getApplicationType()
or the result is unspecified.entityKey
- the key of an enitity on the remote system.
null
when such URL is not available.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |