Abstract
Constructor for the CertificateRoleModel.
The leute model.
Checks if the role can be created.
The role name or static role class to check.
True if the role can be created, false otherwise.
************* Semi-abstracts **************
Returns the name of the role.
The name of the role.
Abstract
getChecks if the data is affirmed by the role person ids.
The data to check.
Optional
byPersonId: SHA256IdHash<Person>The personId that should be trusting the data.
True if the data is affirmed, false otherwise.
Checks if the data is signed by the role person ids.
The data to check.
Optional
byPersonId: SHA256IdHash<Person>The personId that should be signing the data.
True if the data is signed, false otherwise.
Initializes the role model.
A promise that resolves when the role model is initialised.
Returns true if the role is initialised.
True if the role is initialised, false otherwise.
Abstract
isOptional
personId: SHA256IdHash<Person>Abstract
setOptional
creatorId: SHA256IdHash<Person>Abstract
shareShuts down the role model.
A promise that resolves when the role model is shut down.
Base class for all roles.
This class is used to create a role. Note: Each concrete role class must set the static roleName property.