Debian Codegraph @

docs/devel/types-specification.htm

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html lang="en">
3 <head>
4 <meta content="text/html; charset=ISO-8859-15"
5 http-equiv="content-type">
6 <title>Type specification</title>
7 <link rel="stylesheet" type="text/css" href="style/layout.css">
8 <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
9 </head>
10 <body>
11 <h1 style="text-align: center;">This document describes the type
12 interface for LDAP Account Manager</h1>
13 <br>
14 Account types are used to manage a group of accounts by grouping one or
15 more account modules. Examples for account types are user, group, host
16 and smbDomain.<br>
17 <br>
18 <h2>1. Location and naming of types<br>
19 </h2>
20 All LAM types are placed in lib/types/ and are named "&lt;class
21 name&gt;.inc".<br>
22 E.g. if you create a new type and its class name is "myUser" then the
23 filename would be "myUser.inc".<br>
24 <br>
25 The class name of a type must contain only a-z, A-Z, 0-9, -, and _.<br>
26 All type classes should extend the baseType class.<br>
27 <br>
28 <h2>2. Functions</h2>
29 <h3>2.1. getAlias<br>
30 </h3>
31 <br>
32 <div class="mod-code">
33 <span
34 style="font-weight: bold;">function getAlias()</span><br>
35 </div>
36 <br>
37 Returns <span style="font-style: italic;"></span>the alias name for
38 this type. E.g. the alias for smbDomain is "Samba domains".<br>
39 <br>
40 <h3>2.2. getDescription<br>
41 </h3>
42 <br>
43 <div class="mod-code">
44 <span
45 style="font-weight: bold;">function getDescription()</span><br>
46 </div>
47 <br>
48 Returns <span style="font-style: italic;"></span>a description for the
49 account type. This should be a short sentence describing the account
50 type.<br>
51 <br>
52 <h3>2.3. getListClassName<br>
53 </h3>
54 <br>
55 <div class="mod-code">
56 <span
57 style="font-weight: bold;">function getListClassName()</span><br>
58 </div>
59 <br>
60 Here you can specify your own class to handle the list view. The class
61 must be a subclass of <span style="font-weight: bold;">lamList</span>.<br>
62 <br>
63 <h3>2.4. getDefaultListAttributes<br>
64 </h3>
65 <br>
66 <div class="mod-code">
67 <span
68 style="font-weight: bold;">function getDefaultListAttributes()</span><br>
69 </div>
70 <br>
71 Returns <span style="font-style: italic;"></span>the default setting
72 for the displayed list attributes. It is used as default for config and
73 the syntax is equal to the config setting.<br>
74 <br>
75 <h3>2.5. getListAttributeDescriptions<br>
76 </h3>
77 <br>
78 <div class="mod-code">
79 <span
80 style="font-weight: bold;">function getListAttributeDescriptions()</span><br>
81 </div>
82 <br>
83 Returns a hash array which contains predefined, translated descriptions
84 of LDAP attributes.<br>
85 <br>
86 <span style="text-decoration: underline; font-weight: bold;"><br>
87 Example:</span><br
88 style="text-decoration: underline; font-weight: bold;">
89 <br>
90 return array(<br>
91 &nbsp;&nbsp;&nbsp; "sambaSID" =&gt; _("Domain SID"),<br>
92 &nbsp;&nbsp;&nbsp; "sambaDomainName" =&gt; _("Domain name")<br>
93 &nbsp;&nbsp;&nbsp; );<br>
94 <br>
95 <br>
96 <br>
97 <br>
98 <br>
99 <span style="font-weight: bold;"></span><span style="font-weight: bold;"><span
100 style="font-style: italic;"></span></span><span
101 style="font-style: italic; font-weight: bold;"></span><span
102 style="font-style: italic; font-weight: bold;"></span><span
103 style="font-style: italic; font-weight: bold;"></span>
104 </body>
105 </html>