Class MapsPermission


  • public class MapsPermission
    extends Object
    Permissions relating to the AMP maps.
    • Constructor Detail

      • MapsPermission

        public MapsPermission​(boolean allow)
    • 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