ReplicationController class abstract

Implementers

Constructors

ReplicationController()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addSettingsConsent(String username, bool settingsValue) Future<void>
Adds first approach if settingsValue = true -> consent accepted if settingsValue = true -> consent rejected
checkCompany(String idCompany) Future<bool>
Check company
checkConnection() Future<bool>
Checks if the device is connected to the internet If not - No replication possible
checkConsent(Node node, String username) Future<bool>
Checks the consent of a user & if needed, asks for it
checkPairing(String qrUserId, String qrDeviceId, String typeOfPairing) Future<bool>
Check if the current device is paired with another device/employee
checkReplication() Future<bool>
Checks if replication has took place If replication has been done -> TRUE If replication has not been done -> FALSE
checkReplicationTimingStrategy() Future<bool>
Checks if a user has replicated data in <30 days If replication <30 days -> TRUE If replication >30 days -> FALSE
createCloudUser(String userId, [String? email, String? access, String? expires, String? name, String? publicKey]) Future<bool>
Creates a cloud user. Necessary for pairing & replication
createCompany(String companyName, [String? email, String? idCompany, String? location]) Future<String>
Create a company
createHandler(EventChange event) Future<void>
CREATE HANDLERS 4 EVENT TYPES: create, update, rename, delete
createPairingStructure(String qrUserId, String qrDeviceId, String publicKey, String type) Future<bool>
EXPERIMENTAL METHODS CHECK IF SOLVE THE SETPAIR/GETSHAREDNODES BEHAVIOUR
deleteHandler(EventChange event) Future<void>
endGeigerStorage() Future<void>
Flushes memory, ends storage...
geigerReplication(dynamic deleteHandler, dynamic createHandler, dynamic updateHandler, dynamic renameHandler) Future<void>
Achieves full or partial replication INCLUDES GEIGERREPLICATIONLISTENER METHOD WITHOUT GLOBAL DATA
geigerReplicationListener(dynamic deleteHandler, dynamic createHandler, dynamic updateHandler, dynamic renameHandler) Future<void>
Achieves full or partial replication INCLUDES LISTENERS INCLUDES GLOBAL DATA
geigerReplicationListenerStart(dynamic deleteHandler, dynamic createHandler, dynamic updateHandler, dynamic renameHandler) Future<void>
Starts the geiger Replication listeners
geigerReplicationUpdate() Future<void>
Achieves full or partial replication Once listeners are already active
getSensorData() Future<bool>
getSharedNodes(String receiverUserId, String senderUserId) Future<bool>
Gets previously shared nodes and stores them in the localStorage
getTrainingData() Future<bool>
initGeigerStorage() Future<void>
Inits the storageController through the GeigerAPI
listCompany() Future<String>
List company
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renameHandler(EventChange event) Future<void>
setPair(String qrUserId, String qrDeviceId, String publicKey, String agreement, String type) Future<bool>
Call this function to create a pairing agreement in local and cloud INFO --- QR PAIRING USER --- qrUserId PAIR DeviceId --- qrDeviceId public key --- publicKey agreement --- {"in","out","both"} type --- device / employee
shareNode(String nodePath, String senderUserId, String receiverUserId) Future<bool>
Places a node in the cloud encrypted
toString() String
A string representation of this object.
inherited
unpair(String qrUserId, String qrDeviceId, String typeOfPairing) Future<bool>
Unpair current device with another device/employee
updateGlobalData() Future<bool>
THIS METHOD INCLUDES ALL THE SUB-UPDATES METHODS UPDATE THREATS UPDATETHREATWEIGHTS UPDATERECOMMENDATIONS UPDATESECURITYDEFENDERSINFO includes: security defenders security defenders organizations security defenders location
updateHandler(EventChange event) Future<void>
updatePair(String userId1) Future<bool>
TO BE RUN BY THE DEVICE THAT GENERATES THE QR CODE
updateRecommendations() Future<void>
Updates Global Recommendations in a Cloud to Local way TO GET FULL DATA -> UPDATETHREATWEIGHTS IS REQUIRED PREVIOUSLY
updateSecurityDefendersInfo() Future<void>
Updates Security Defenders Info
updateSensorData(List<String> types) Future<bool>
updateThreats() Future<void>
updates Geiger defined threats
updateThreatWeights() Future<void>
Updates Threat Weights
updateTrainingData(List<String> types) Future<bool>
userExists(String userId) Future<bool>

Operators

operator ==(Object other) bool
The equality operator.
inherited