Package com.aerisweather.aeris.model
Class MapsPermission
- java.lang.Object
-
- com.aerisweather.aeris.model.MapsPermission
-
public class MapsPermission extends Object
Permissions relating to the AMP maps.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MapsPermission.allowReason
static class
MapsPermission.CompositeOptions
static class
MapsPermission.maxSize
-
Field Summary
Fields Modifier and Type Field Description boolean
allow
MapsPermission.CompositeOptions
compositeOptions
Object
layers
int
maxLayers
MapsPermission.maxSize
maxSize
-
Constructor Summary
Constructors Constructor Description MapsPermission(boolean allow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasLayerAccess(String layerId)
Return bool Indicates whether or not the user has permission to access a specific layerboolean
hasModifierOptionAccess(String layerId, String modifierOptionId)
Return boolean Indicates whether or not the user has permission to access a specific Modifier Option
-
-
-
Field Detail
-
allow
public boolean allow
-
maxLayers
public int maxLayers
-
compositeOptions
public MapsPermission.CompositeOptions compositeOptions
-
layers
public Object layers
-
maxSize
public MapsPermission.maxSize maxSize
-
-
Method Detail
-
hasLayerAccess
public boolean hasLayerAccess(String layerId)
Return bool Indicates whether or not the user has permission to access a specific layer- Parameters:
layerId
- The id of the layer- Returns:
- boolean
-
hasModifierOptionAccess
public boolean hasModifierOptionAccess(String layerId, String modifierOptionId)
Return boolean Indicates whether or not the user has permission to access a specific Modifier Option- Parameters:
layerId
- The name of the layer (example: flat)modifierOptionId
- The id of the modifier option (example: dk)- Returns:
- boolean
-
-