Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data PartyRow = PartyRow {
- partyId :: Id Party
- partySortName :: Text
- partyPreName :: Maybe Text
- partyORCID :: Maybe ORCID
- partyAffiliation :: Maybe Text
- partyURL :: Maybe URI
- data Party = Party {}
- data Loaded a
- loadedToMaybe :: Loaded a -> Maybe a
- data Account = Account {}
- getPartyId :: Party -> Id Party
- data SiteAuth = SiteAuth {}
- nobodyParty :: Party
- rootParty :: Party
- staffParty :: Party
- nobodySiteAuth :: SiteAuth
- blankParty :: Party
- blankAccount :: Account
Documentation
PartyRow | |
|
Represents users, institutions, labs, *and* groups.
Party | |
|
Lift Party Source # | |
Kinded Party Source # | |
Has Access Party Source # | |
Has Party SiteAuth Source # | |
Has Party Account Source # | |
Has Party Identity Source # | |
Has Party SolrIndexingContext Source # | |
Has Party BackgroundContext Source # | |
Has (Id Party) SiteAuth Source # | |
Has (Id Party) Account Source # | |
Has (Id Party) Party Source # | |
Has (Id Party) Session Source # | |
Has (Id Party) AccountToken Source # | |
Has (Id Party) Identity Source # | |
Has (Id Party) SolrIndexingContext Source # | |
Has (Id Party) BackgroundContext Source # | |
type IdType Party 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.
loadedToMaybe :: Loaded a -> Maybe a Source #
Transform a Loaded value into the a Maybe value
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.
SiteAuth | |
|
Has Access SiteAuth 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 # | |
Has (Id Party) SiteAuth Source # | |
nobodyParty :: Party Source #
staffParty :: 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