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 classMapsPermission.allowReasonstatic classMapsPermission.CompositeOptionsstatic classMapsPermission.maxSize
-
Field Summary
Fields Modifier and Type Field Description booleanallowMapsPermission.CompositeOptionscompositeOptionsObjectlayersintmaxLayersMapsPermission.maxSizemaxSize
-
Constructor Summary
Constructors Constructor Description MapsPermission(boolean allow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasLayerAccess(String layerId)Return bool Indicates whether or not the user has permission to access a specific layerbooleanhasModifierOptionAccess(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
-
-