Enum DefaultPermissionHandler

    • Field Detail

      • PERMISSION_LEVEL_MAP

        private static final java.util.HashMap<java.lang.String,​DefaultPermissionLevel> PERMISSION_LEVEL_MAP
      • DESCRIPTION_MAP

        private static final java.util.HashMap<java.lang.String,​java.lang.String> DESCRIPTION_MAP
    • Constructor Detail

      • DefaultPermissionHandler

        private DefaultPermissionHandler()
    • Method Detail

      • values

        public static DefaultPermissionHandler[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DefaultPermissionHandler c : DefaultPermissionHandler.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DefaultPermissionHandler valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getRegisteredNodes

        public java.util.Collection<java.lang.String> getRegisteredNodes()
        Specified by:
        getRegisteredNodes in interface IPermissionHandler
        Returns:
        Immutable collection of all registered nodes
      • getDefaultPermissionLevel

        public DefaultPermissionLevel getDefaultPermissionLevel​(java.lang.String node)
        Returns:
        The default permission level of a node. If the permission isn't registred, it will return NONE