getId
ApplicationId getId()
Returns a globally unique identifier for this server. If the host
application has an Atlassian server ID, it can use the server ID to generate a GUID and return this.
To generate a GUID, based on the Atlassian server ID, use
e.g. new ApplicationId(UUID.nameUUIDFromBytes(getServerId().getBytes(defaultEncoding)).toString());
Otherwise the application is responsible for generating a GUID itself and storing
it, so that every call to this method always returns the same value.
The returned string must use anything ONLY upper and lowercase
characters, the digits [0-9] and dashes (-). There are no length
requirements for the returned string.
- Returns:
- a globally unique identifier for this server that will never
change.