GObject.Object
Midgard.DBObject
Midgard.User
Import line: | Midgard = imports.gi.Midgard; |
GIR File: | Midgard-10.05.gir |
C documentation: | MidgardUser |
Class : | User |
Extends: | Midgard.DBObject |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
active : Boolean
|
Midgard.User | |
authtype : String
|
Midgard.User | |
authtypeid : Number
read only
|
Midgard.User | |
dbpriv : Midgard.DBObjectPrivate
read only
|
Midgard.DBObject | |
guid : String
read only
|
Midgard.User | |
login : String
|
Midgard.User | |
parent : Midgard.DBObject
read only
|
Midgard.User | |
password : String
|
Midgard.User | |
person : String
read only
|
Midgard.User | |
priv : Midgard.UserPrivate
read only
|
Midgard.User | |
usertype : Number
|
Midgard.User |
Method / Constructor | Defined By | |
---|---|---|
new Midgard.User
(Object properties)
Create a new Midgard.User
Create a new Midgard.User
|
||
Create a new Midgard.User
Create a new Midgard.User
|
||
Fetch MidgardUser object from storage.
Fetch MidgardUser object from storage. At least 'login' and 'authtype' property are required to be set in parameters. Cases to return NULL:
|
Midgard.User | |
|
Midgard.User | |
|
Midgard.User | |
create
()
:
Boolean
|
Midgard.User | |
delete
()
:
Boolean
Delete user's storage record.
Delete user's storage record. Cases to return FALSE:
|
Midgard.User | |
get_person
()
:
Midgard.Object
Returned object should not be unref.
Returned object should not be unref.
|
Midgard.User | |
is_admin
()
:
Boolean
Checks if given user is an admin.
Checks if given user is an admin.
|
Midgard.User | |
is_user
()
:
Boolean
Checks if given user is a user.
Checks if given user is a user. For example, function will return FALSE for user who is logged in as admin or root.
|
Midgard.User | |
log_in
()
:
Boolean
|
Midgard.User | |
log_out
()
:
Boolean
Cases to return FALSE:
Cases to return FALSE:
|
Midgard.User | |
Midgard.User | ||
Associates given MidgardObject person with self MidgardUser.
Associates given MidgardObject person with self MidgardUser. Sets person property and updates user storage record. MidgardUser self takes ownership of the given MidgardPerson reference, which should be not unref any more. See midgard_user_update() for returned error details.
|
Midgard.User | |
update
()
:
Boolean
Updates user storage record Cases to return FALSE:
Updates user storage record Cases to return FALSE:
|
Midgard.User |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Midgard.Connection
Method |
get_user
()
:
Midgard.User
NULL is explicitly returned if there's no midgard_user logged in for the given MidgardConnection.
|