1
inherit "/kernel/module";
3
mixed new_object ( string id, object obj, string program_name )
5
return 0; // no new objects
8
object find_object ( int|string id )
12
int delete_object ( object obj )
16
int|object load_object ( object proxy, int|object oid )
20
static void save_object ( object proxy, void|string ident, string|void index )
24
/** return either a user object or a mapping containing user data
25
* from the persistence layer. User data are attributes (the mapping keys must
26
* match the standard names, see the includes and factories), with some
27
* additional non-attribute entries:
28
* - "UserPassword" : password of user (usually encrypted)
29
* - "Groups" : an array of group names (strings) of which the user is a member
30
* (a user will always be a member of the sTeam group, so this need not be added
31
* - "ActiveGroup" : active (primary) group of the user (user must be member of that group)
33
mixed lookup_user ( string id, void|string pw )
35
return 0; // no user found
38
/** return either a group object or a mapping containing group data
39
* from the persistence layer. Group data are attributes (the mapping keys must
40
* match the standard names, see the includes and factories), with some
41
* additional non-attribute entries:
42
* - "Users" : an array of user names (strings) which are members of the group
43
* (these users are added to the group, all others removed. Users will never
44
* be removed from the sTeam group this way.)
46
mixed lookup_group ( string id )
48
return 0; // no group found
51
/** store the user object (or its data) in the persistence layer */
52
void update_user ( object user )
56
/** store the group object (or its data) in the persistence layer */
57
void update_group ( object group )