Read-only, JS-facing view of the applications currently active for the current tenant, exposed as the applications variable. Look up an app by its instance id, for example applications.myapp, to call methods on another app's public API from a controller or template. Implements Map so it can also be iterated, but the write operations put, remove, putAll and clear are not supported.
Group: Managers
Implements: Map
Properties
| Property | Returns | Description |
|---|---|---|
| empty | boolean | Always returns false; this does not reflect whether any applications are actually active. |
Methods
get(String instanceId) · size() · isEmpty() · containsKey(Object key) · containsValue(Object value) · get(Object key) · put(String key, Application value) · remove(Object key) · keySet() · values() · entrySet()
get(String instanceId)
Returns: Application
Looks up a currently active application by its instance id.
| Parameter | Description |
|---|---|
instanceId | the instance id of the application to look up |
size()
Returns: int
The number of applications currently active for the tenant.
isEmpty()
Returns: boolean
Always returns false; this does not reflect whether any applications are actually active.
containsKey(Object key)
Returns: boolean
Checks whether there is a currently active application with the given instance id.
| Parameter | Description |
|---|---|
key | the instance id to look up, converted with toString |
containsValue(Object value)
Returns: boolean
Checks whether the given Application is among the currently active applications, matched by instance id.
| Parameter | Description |
|---|---|
value | the application to look for; other types always return false |
get(Object key)
Returns: Application
Looks up a currently active application by its instance id.
| Parameter | Description |
|---|---|
key | the instance id of the application to look up, converted with toString |
put(String key, Application value)
Returns: Application
Not supported; this is a read-only view of the currently active applications.
| Parameter | Description |
|---|---|
key | ignored |
value | ignored |
remove(Object key)
Returns: Application
Not supported; this is a read-only view of the currently active applications.
| Parameter | Description |
|---|---|
key | ignored |
keySet()
Returns: Set<String>
The instance ids of all applications currently active for the tenant.
values()
Returns: Collection<Application>
The applications currently active for the tenant.
entrySet()
Returns: Set<Entry<String,Application>>
Instance id to application pairs for all applications currently active for the tenant.