Module

Perspectives.SaveUserData

#saveContextInstance

saveContextInstance :: Updater ContextInstance

These functions are Updaters, too. They do not push deltas like the Updaters that change PerspectEntities, but they modify other members of Transaction (createdContexts, deletedContexts, createdRoles, deletedRoles).

#saveRoleInstance

saveRoleInstance :: Updater RoleInstance

Saves a previously cached Role instance and adds it to the Transaction. Adds the Role instance to its Context instance and adds a ContextDelta to the Transaction.

#removeContextInstance

removeContextInstance :: Updater ContextInstance

Remove the ContextInstance both from the cache and from the database and adds it to the Transaction. We do not add the removed role instances to the Transaction, as the receiving PDR's will recompute them themselves.

#removeRoleInstance

removeRoleInstance :: Updater RoleInstance

Removes the role instance from the cache and from the database. Removes the role instance from the inverse administration of its binding. Removes the role instance as binding from all its binders. Does NOT remove the role instance from its context. Use removeRol for that. Adds the Role to the Transaction in deletedRoles. We do not push a ContextDelta, as the receiving PDR's will recompute the effect of destroying this instance on their context instances themselves.

Modules