graphdb-workbench
Version:
The web application for GraphDB APIs
17 lines (16 loc) • 630 B
TypeScript
import { ModelList } from '../common';
import { Authority } from './authority';
/**
* Represents a list of authorities in an authenticated user.
*/
export declare class AuthorityList extends ModelList<Authority> {
constructor(authorities?: Authority[]);
/**
* Checks if the list contains a specific authority.
*
* @param authority - The Authority object to check for in the list.
* @returns A boolean indicating whether the specified authority is present in the list.
* Returns true if the authority is found, false otherwise.
*/
hasAuthority(authority: Authority): boolean;
}