public interface AppId
CloudStore might be used as the base for another application, i.e. as a library. In this case, the identity of this other application should use consistent file and directory names, e.g. for its configuration. So for example, the configuration directory "~/.cloudstore" should be "~/.myapp" instead.
Additionally, the auto-update must use a different web-site.
Therefore, the other application should implement an AppId
with a higher
priority
than the CloudStoreAppId
(having the negative
priority -100).
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name used by humans.
|
int |
getPriority()
Gets the priority of this
AppId implementation. |
String |
getQualifiedId()
Gets the qualified (long) ID.
|
String |
getSimpleId()
Gets the simple (short) ID without any qualifier prefix.
|
String |
getWebSiteBaseUrl()
Gets the base-URL.
|
int getPriority()
AppId
implementation. The AppIdRegistry
chooses
the AppId
with the highest priority (the greatest number).AppId
implementation.String getSimpleId()
Example: "cloudstore"
null
.String getQualifiedId()
Example: "co.codewizards.cloudstore"
null
.String getName()
Example: "CloudStore"
null
.String getWebSiteBaseUrl()
Important: This URL must end on '/'!
Example: "http://cloudstore.codewizards.co/" (one of the expected sub-URLs is "http://cloudstore.codewizards.co/update/" where meta-data about the current version is expected).
null
.Copyright © 2013–2019. All rights reserved.