Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addLink(String name1, String name2, [List<String> domain = const []])
→ void
-
Adds the inheritance link between two roles. role: name1 and role: name2.
domain is a prefix to the roles.
-
clear()
→ void
-
Clears all stored data and resets the role manager to the initial state.
-
deleteLink(String name1, String name2, [List<String> domain = const []])
→ void
-
Delete the inheritance link between two roles. role: name1 and role: name2.
domain is a prefix to the roles.
-
getRoles(String name, [List<String> domain = const []])
→ List<String>
-
Returns the roles that a user inherits.
domain is a prefix to the roles.
-
getUsers(String name, [List<String> domain = const []])
→ List<String>
-
Returns the users that inherits a role.
-
hasLink(String name1, String name2, [List<String> domain = const []])
→ bool
-
Returns whether a link exists between two roles. role: name1 inherits role: name2.
domain is a prefix to the roles.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
printRoles()
→ void
-
Prints all the roles to log.
-
toString()
→ String
-
A string representation of this object.
inherited