AcmObject class
- Implementers
Constructors
Properties
-
controllers
↔ List<
int> -
List of AcmSubject.ids of the subjects that control the object.
read / write
-
data
↔ List<
String> -
The content/data of the object.
read / write
-
executors
↔ List<
int> -
List of AcmSubject.ids of the subjects that can execute the object.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- name ↔ String
-
The name of the object.
read / write
-
owners
↔ List<
int> -
List of AcmSubject.ids of the subjects that own the object.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
authenticate(
int id, Role authority) → bool -
Adds the
id
to the appropiate list (owners, controllers, executors) based on the givenauthority
. Returns true if success, false otherwise. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
removeController(
int id) → bool - Removes the given AcmSubject.id from controllers list. Returns true if success, false otherwise.
-
removeExecutor(
int id) → bool - Removes the given AcmSubject.id from controllers list. Returns true if success, false otherwise.
-
removeOwner(
int id) → bool - Removes the given AcmSubject.id from owners list. Returns true if success, false otherwise.
-
shorthand(
) → String -
toString(
) → String -
Returns a string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited