databrary-1: Databrary

Safe HaskellNone
LanguageHaskell2010

Model.Party.Types

Synopsis

Documentation

data Party Source #

Represents users, institutions, labs, *and* groups.

Constructors

Party 

Fields

data Loaded a Source #

When loading a graph of objects, some queries will neglect loading all related objects. Use this type to indicate an object which isn't loaded by all queries.

Constructors

Loaded a 
NotLoaded 

Instances

Lift a0 => Lift (Loaded a0) Source # 

Methods

lift :: Loaded a0 -> Q Exp #

loadedToMaybe :: Loaded a -> Maybe a Source #

Transform a Loaded value into the a Maybe value

data SiteAuth Source #

TODO: clarify. This is not necessarily a session, but... some user (human being) who has been granted access to the site. There is a corner case indirection because sometimes a job runs a human being.

Constructors

SiteAuth 

Fields

Instances

Has Access SiteAuth Source # 

Methods

view :: SiteAuth -> Access Source #

Has SiteAuth LoginToken Source # 
Has SiteAuth AccountToken Source # 
Has SiteAuth Identity Source #

Get the SiteAuth for the Identity, which corresponds to what privileges the Identity has within the site as well which Party/Account the Identity is

Has SiteAuth SolrIndexingContext Source # 
Has SiteAuth BackgroundContext Source # 
Has Account SiteAuth Source # 
Has Party SiteAuth Source # 

Methods

view :: SiteAuth -> Party Source #

Has (Id Party) SiteAuth Source # 

Methods

view :: SiteAuth -> Id Party Source #

blankParty :: Party Source #

Uninitialized Party object to be used in creating new parties (and accounts)

blankAccount :: Account Source #

Uninitialized Account object to be used in creating new accounts