new AclDetailsResponse(optionsopt)
BeNomad BeMap JavaScript API - AclDetailsResponse
Response from `GET service/acl/1.0/user/details` — the current user's
identity, granted roles, accessible geoservers, and accessible charging-
station providers. The geoserver list is **already filtered by the user's
ACL** server-side, so it is safe to render directly in a dropdown.
Wire shape (cross-checked against a real beta response):
{
"username": "your-login",
"rights": ["ROLE_GEOCODING", "ROLE_ROUTING", ...],
"geoservers": [
{ "key": "osm", "value": "OpenStreetMap" },
{ "key": "here", "value": "HERE", "byDefault": true }
],
"chargingStationProviders": [
{ "key": "ecoMovement", "value": "Eco-Movement" }
]
}
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
- Since:
- 1.5.0
- Source:
Methods
getDefaultGeoserver() → {bemap.AclLabel|null}
Find the geoserver in the user's allowed list flagged as the default,
or `null` when none is flagged.
Returns:
- Type
- bemap.AclLabel | null
hasRight(role) → {Boolean}
`true` when the current user has the supplied role (e.g. `'ROLE_ROUTING'`).
Parameters:
| Name | Type | Description |
|---|---|---|
role |
String |
Returns:
- Type
- Boolean