Copyright | (c) CNRS 2017-Present |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Functions to deal with users, database side.
Synopsis
- insertUsers :: NonEmpty UserWrite -> DBCmd err Int64
- toUserWrite :: NewUser HashPassword -> UserWrite
- deleteUsers :: [Username] -> DBCmd err Int64
- updateUserDB :: UserWrite -> DBCmd err Int64
- queryUserTable :: Select UserRead
- getUserHyperdata :: User -> DBCmd err [HyperdataUser]
- getUsersWithHyperdata :: User -> DBCmd err [(UserLight, HyperdataUser)]
- getUsersWithNodeHyperdata :: User -> DBCmd err [(UserLight, Node HyperdataUser)]
- updateUserEmail :: UserLight -> DBCmd err Int64
- updateUserPassword :: UserLight -> DBCmd err Int64
- updateUserForgotPasswordUUID :: UserLight -> DBCmd err Int64
- getUserPubmedAPIKey :: User -> DBCmd err (Maybe APIKey)
- updateUserPubmedAPIKey :: (HasDBid NodeType, HasNodeError err) => User -> APIKey -> DBCmd err Int64
- updateUserEPOAPIUser :: (HasDBid NodeType, HasNodeError err) => User -> Text -> DBCmd err Int64
- updateUserEPOAPIToken :: (HasDBid NodeType, HasNodeError err) => User -> Text -> DBCmd err Int64
- getUser :: Username -> DBCmd err (Maybe UserLight)
- insertNewUsers :: NonEmpty (NewUser GargPassword) -> DBCmd err Int64
- selectUsersLightWith :: Username -> Select UserRead
- userWithUsername :: Text -> [UserDB] -> Maybe UserDB
- userWithId :: UserId -> [UserDB] -> Maybe UserDB
- userLightWithId :: UserId -> [UserLight] -> Maybe UserLight
- getUsersWith :: Username -> DBCmd err [UserLight]
- getUsersWithEmail :: Text -> DBCmd err [UserLight]
- getUsersWithForgotPasswordUUID :: UUID -> DBCmd err [UserLight]
- getUsersWithId :: User -> DBCmd err [UserLight]
- module Gargantext.Database.Schema.User
Documentation
toUserWrite :: NewUser HashPassword -> UserWrite #
deleteUsers :: [Username] -> DBCmd err Int64 #
updateUserDB :: UserWrite -> DBCmd err Int64 #
getUserHyperdata :: User -> DBCmd err [HyperdataUser] #
Get hyperdata associated with user node.
getUsersWithHyperdata :: User -> DBCmd err [(UserLight, HyperdataUser)] #
getUsersWithNodeHyperdata :: User -> DBCmd err [(UserLight, Node HyperdataUser)] #
updateUserEmail :: UserLight -> DBCmd err Int64 #
updateUserPassword :: UserLight -> DBCmd err Int64 #
updateUserForgotPasswordUUID :: UserLight -> DBCmd err Int64 #
updateUserPubmedAPIKey :: (HasDBid NodeType, HasNodeError err) => User -> APIKey -> DBCmd err Int64 #
updateUserEPOAPIUser :: (HasDBid NodeType, HasNodeError err) => User -> Text -> DBCmd err Int64 #
updateUserEPOAPIToken :: (HasDBid NodeType, HasNodeError err) => User -> Text -> DBCmd err Int64 #
insertNewUsers :: NonEmpty (NewUser GargPassword) -> DBCmd err Int64 #
getUsersWith :: Username -> DBCmd err [UserLight] #
getUsersWithEmail :: Text -> DBCmd err [UserLight] #
getUsersWithForgotPasswordUUID :: UUID -> DBCmd err [UserLight] #
getUsersWithId :: User -> DBCmd err [UserLight] #