Package com.atlassian.connect.spring
Class AtlassianHostMapping
java.lang.Object
com.atlassian.connect.spring.AtlassianHostMapping
An Atlassian host mapping in which an installation id is mapped to its associated clientKey.
Mappings are stored in
AtlassianHostMappingRepository
.- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new empty installation client key (used by persistence mechanism). -
Method Summary
Modifier and TypeMethodDescriptionboolean
The identifying Connect key for the Atlassian product instance that the add-on was installed into.The string (in ARI format, e.g.int
hashCode()
void
setClientKey
(String clientKey) Used by persistence mechanism.void
setInstallationId
(String installationId) Used by persistence mechanism.toString()
-
Constructor Details
-
AtlassianHostMapping
public AtlassianHostMapping()Creates a new empty installation client key (used by persistence mechanism).
-
-
Method Details
-
getInstallationId
The string (in ARI format, e.g. ari:cloud:ecosystem::installation/c3658f0f-8380-41e5-bb1e-68903f8efdca) identifying the installation of the app on Forge. Stable across upgrades but not uninstallation and reinstallation. This value should be used to key Forge-related tenant details in your add-on.- Returns:
- the installation ID
-
setInstallationId
Used by persistence mechanism.- Parameters:
installationId
- the installation ID
-
getClientKey
The identifying Connect key for the Atlassian product instance that the add-on was installed into. This will never change for a given instance, and is unique across all Atlassian product tenants. This value should be used to key Connect-related tenant details in your add-on.- Returns:
- the client key of the host
-
setClientKey
Used by persistence mechanism.- Parameters:
clientKey
- the client key of the host
-
equals
-
hashCode
public int hashCode() -
toString
-