AcmSubject class
Constructors
-
AcmSubject(Role role, String name, List<
String> data, List<int> executors, List<int> controllers, List<int> owners) - AcmSubject.duplicate(AcmSubject s)
Properties
-
controllers
↔ List<
int> -
List of AcmSubject.ids of the subjects that control the object.
read / write, inherited
-
data
↔ List<
String> -
The content/data of the object.
read / write, inherited
-
executors
↔ List<
int> -
List of AcmSubject.ids of the subjects that can execute the object.
read / write, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id → int
-
Identifier of the the AcmSubject. Unique number is generted by hashCode.
read-only
- name ↔ String
-
The name of the object.
read / write, inherited
-
owners
↔ List<
int> -
List of AcmSubject.ids of the subjects that own the object.
read / write, inherited
- role ↔ Role
-
The Role of the the AcmSubject.
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.inherited -
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.
inherited
-
removeExecutor(
int id) → bool -
Removes the given AcmSubject.id from controllers list. Returns true
if success, false otherwise.
inherited
-
removeOwner(
int id) → bool -
Removes the given AcmSubject.id from owners list. Returns true
if success, false otherwise.
inherited
-
shorthand(
) → String -
override
-
toString(
) → String -
Returns a string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited