Module

Perspectives.Assignment.Update

#setBinding

setBinding :: RoleInstance -> (Updater RoleInstance)

Create update functions on PerspectContext or PerspectRol. The result is an ObjectsGetter that always returns the (ID of the) Persistent. Sets up the Bot actions for a Context. Changes the binding. Modifies the Role instance. Caches and saves the Role instance. Adds a RoleDelta to the transaction.

#removeBinding

removeBinding :: Updater RoleInstance

Removes the binding R of the rol, if any. Removes the rol as value of 'gevuldeRollen' for psp:Rol$binding from the binding R. Modifies the Role instance. Caches and saves the Role instance. Adds a RoleDelta to the transaction.

#addRol

addRol :: ContextInstance -> EnumeratedRoleType -> (Updater (Array RoleInstance))

Modifies the context instance. Adds Context deltas to the Transaction. Caches and saves the context instance. Notice that this function does neither cache nor save the rolInstances themselves.

#removeRol

removeRol :: ContextInstance -> EnumeratedRoleType -> (Updater (Array RoleInstance))

Modifies the context instance. Adds Context deltas to the Transaction. Caches and saves the context instance. Notice that this function does neither cache nor save the rolInstances themselves. Instead, use removeRoleInstance.

#deleteRol

deleteRol :: ContextInstance -> EnumeratedRoleType -> MonadPerspectivesTransaction Unit

Modifies the context instance. Adds Context deltas to the Transaction. Caches and saves the context instance. Notice that this function does not remove the rolInstances themselves, nor add them to the Transaction. Instead, use removeAllRoleInstances for that.

#setRol

setRol :: ContextInstance -> EnumeratedRoleType -> (Updater (Array RoleInstance))

Modifies the context instance. Adds Context deltas to the Transaction. Caches and saves the context instance. Notice that this function does not remove the rolInstances themselves, nor add them to the Transaction. Instead, use removeAllRoleInstances for that.

#moveRoles

moveRoles :: ContextInstance -> EnumeratedRoleType -> (Updater (Array RoleInstance))

Detach the role instances from their current context and attach them to the new context. Modifies both context instances. Adds Context deltas to the Transaction. Caches and saves the context instances. Notice that this function does neither cache nor save the rolInstances themselves.

#addProperty

addProperty :: Array RoleInstance -> EnumeratedPropertyType -> (Updater (Array Value))

Modify the role instance with the new property values. Adds PropertyDeltas to the Transaction. Caches and saves the modified Role instance.

#removeProperty

removeProperty :: Array RoleInstance -> EnumeratedPropertyType -> (Updater (Array Value))

Modify the role instance with the new property values. Adds PropertyDeltas to the Transaction. Caches and saves the modified Role instance.

#deleteProperty

deleteProperty :: Array RoleInstance -> EnumeratedPropertyType -> MonadPerspectivesTransaction Unit

Modify the role instance with the new property values. Adds PropertyDeltas to the Transaction. Caches and saves the modified Role instance.

#setProperty

setProperty :: Array RoleInstance -> EnumeratedPropertyType -> (Updater (Array Value))

Modify the role instance with the new property values. Adds PropertyDeltas to the Transaction. Caches and saves the modified Role instance.

#saveEntiteit

saveEntiteit :: forall a i r. GenericEncode r => Generic a r => Persistent a i => i -> a -> MonadPerspectivesTransaction Unit

Modules