AccessMode class
Access control is mostly usable for group topics. Its usability for me and P2P topics is limited to managing presence notifications and banning uses from initiating or continuing P2P conversations.
Constructors
- AccessMode(dynamic acs)
-
Create new instance by passing an
AccessMode
orMap<String, dynamic>
Properties
Methods
-
getExcessive(
) → String? -
What permission is
given
and user does notwant
-
getGiven(
) → String? -
Returns encoded
given
-
getMissing(
) → String? -
What user
want
that is notgiven
-
getMode(
) → String? -
Returns encoded
mode
-
getWant(
) → String? -
Returns encoded
want
-
isAdmin(
String side) → bool -
isApprover(
String side) → bool -
isDeleter(
String side) → bool -
isJoiner(
String side) → bool - Can this user subscribe on topic?
-
isMuted(
String? side) → bool -
isOwner(
String side) → bool -
isPresencer(
String? side) → bool -
isReader(
String side) → bool -
isWriter(
String side) → bool -
jsonHelper(
) → Map< String, String> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setGiven(
dynamic given) → AccessMode -
setMode(
dynamic mode) → AccessMode -
setWant(
dynamic want) → AccessMode -
toString(
) → String -
A string representation of this object.
override
-
updateAll(
AccessMode? val) → AccessMode -
updateGiven(
String update) → AccessMode -
updateMode(
String update) → AccessMode -
updateWant(
String update) → AccessMode
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
dynamic other) → int
Static Methods
-
checkFlag(
AccessMode val, String? side, int flag) → bool - Returns true if AccessNode has x flag
-
decode(
dynamic mode) → int? - Decodes string access mode to integer
-
diff(
dynamic a1, dynamic a2) → int - Get diff from two modes
-
encode(
int val) → String? - Decodes integer access mode to string
-
update(
int val, String upd) → int - Updates mode with newly given permissions