DefaultRoleManager class

Implemented types

Constructors

DefaultRoleManager(int maxHierarchyLevel, [MatchingFunc? matchingFunc, MatchingFunc? domainMatchingFunc])
DefaultRoleManager is the constructor for creating an instance of the default RoleManager implementation.

Properties

allDomains Map<String, DomainRoles>
getter/setter pair
domainMatchingFunc MatchingFunc?
getter/setter pair
hasDomainPattern bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasPattern bool
getter/setter pair
matchingFunc MatchingFunc?
getter/setter pair
maxHierarchyLevel int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDomainMatchingFunc(MatchingFunc func) → void
Adds the inheritance link between role: name1 and role: name2.
override
addMatchingFunc(dynamic name, MatchingFunc? func) → void
clear() → void
Clears all stored data and resets the role manager to the initial state.
override
Deletes the inheritance link between role: name1 and role: name2.
override
domainName([List<String> domain = const []]) String
generateTempRoles(String domain) DomainRoles
getOrCreateDomainRoles(String domain) DomainRoles
getPatternMatchedDomainNames(String domain) Set<String>
getRoles(String name, [List<String> domain = const []]) List<String>
Returns the roles that a subject inherits. domain is a prefix to the roles.
override
getUsers(String name, [List<String> domain = const []]) List<String>
Returns the users that inherits a subject.
override
Determines whether role: name1 inherits role: name2. domain is a prefix to the roles.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printRoles() → void
Prints all the roles to log.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited