Module

Perspectives.LoadCRL

#loadCrlFile

loadCrlFile :: String -> String -> MonadPerspectives (Either (Array PerspectivesError) (Tuple (Object PerspectContext) (Object PerspectRol)))

Loads a file from a directory relative to the active process. All context and role instances are loaded into the cache. Runs all bot actions. Does not save to the database.

#loadAndSaveCrlFile

loadAndSaveCrlFile :: String -> String -> MonadPerspectives (Array PerspectivesError)

Loads a file from the directory "src/model" relative to the directory of the active process. Runs all bot actions. All instances are loaded into the cache, and stored in Couchdb. All instances are added to a Transaction and that Transaction is run.

Modules