~ubuntu-branches/ubuntu/wily/steam/wily

« back to all changes in this revision

Viewing changes to server/kernel/persistence.pike

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-10-29 19:51:18 UTC
  • mfrom: (1.1.4) (0.1.4 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131029195118-b9bxciz5hwx5z459
Tags: 1:1.0.0.39-2ubuntu1
Add an epoch to the version number as there was an unrelated steam package
in the archive with a higher version number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
inherit "/kernel/module";
2
 
 
3
 
mixed new_object ( string id, object obj, string program_name )
4
 
{
5
 
  return 0; // no new objects
6
 
}
7
 
 
8
 
object find_object ( int|string id )
9
 
{
10
 
}
11
 
 
12
 
int delete_object ( object obj )
13
 
{
14
 
}
15
 
 
16
 
int|object load_object ( object proxy, int|object oid )
17
 
{
18
 
}
19
 
 
20
 
static void save_object ( object proxy, void|string ident, string|void index )
21
 
{
22
 
}
23
 
 
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)
32
 
 */
33
 
mixed lookup_user ( string id, void|string pw )
34
 
{
35
 
  return 0; // no user found
36
 
}
37
 
 
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.)
45
 
 */
46
 
mixed lookup_group ( string id )
47
 
{
48
 
  return 0; // no group found
49
 
}
50
 
 
51
 
/** store the user object (or its data) in the persistence layer */
52
 
void update_user ( object user )
53
 
{
54
 
}
55
 
 
56
 
/** store the group object (or its data) in the persistence layer */
57
 
void update_group ( object group )
58
 
{
59
 
}