AcmObject class

Implementers

Constructors

AcmObject(String name, List<String> data, List<int> executors, List<int> controllers, List<int> owners)
AcmObject.duplicate(AcmObject object)
Duplicates an AcmObject, name required.

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 given authority. 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