Class LapisCorePermissions.PermissionManager

  • Enclosing class:
    LapisCorePermissions

    public static class LapisCorePermissions.PermissionManager
    extends java.lang.Object
    This class is used to store and retrieve permissions
    • Constructor Detail

      • PermissionManager

        public PermissionManager()
    • Method Detail

      • addPermission

        protected void addPermission​(LapisPermission permission)
        Adds the given permission to the stored permissions for later use
        Parameters:
        permission - The permission to be added
      • getPermissions

        protected java.util.List<LapisPermission> getPermissions()
        Get all registered permissions
        Returns:
        A list of all registered LapisPermissions
      • getPermission

        public LapisPermission getPermission​(java.lang.String name)
        Retrieve a specific permission given its name
        Parameters:
        name - The name of the permission you wish to receive
        Returns:
        the LapisPermission with the given name, null if there is no permission with this name