TGAccessMatrix class
TGFramework's Access Matrix implementation
Properties
-
flags
↔ Map<
String, Map< int, bool?> > -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
list
↔ List<
TGAccessMatrixVO> -
Holds all Access Matrix as List
getter/setter pair
-
roleIds
↔ List<
int> ? -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
TGAccessMatrixVO accessMatrixVO) → void - Add individual Access Matrix
-
addAll(
List< TGAccessMatrixVO> list) → void - Add to Access Matrix list
-
applyRoles(
List< int> ? roleIds) → void - Apply Roles
-
createdAt(
) → DateTime? - TGAccessMatrix created at
-
hasCreate(
String key, {List< int> ? roleIds}) → bool - Gets Create flag for given key and roles
-
hasDelete(
String key, {List< int> ? roleIds}) → bool - Gets Delete flag for given key and roles
-
hasRead(
String key, {List< int> ? roleIds}) → bool - Gets Read flag for given key and roles
-
hasUpdate(
String key, {List< int> ? roleIds}) → bool - Gets Update flag for given key and roles
-
invalidate(
) → void - Invalidate access matrix
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key, int roleId) → dynamic - Removes value for given key & role
-
size(
) → int - Size of access matrix
-
toString(
) → String -
A string representation of this object.
inherited
-
validSince(
) → Duration - Number of milliseconds passed since valid TGAccessMatrix has been created
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getInstance(
) → TGAccessMatrix - Gets TGAccessMatrix's instance reference