1 |
dpavlin |
119 |
package A3C::Model::hrEduOrg; |
2 |
|
|
use strict; |
3 |
|
|
use warnings; |
4 |
|
|
|
5 |
|
|
use Jifty::DBI::Schema; |
6 |
|
|
|
7 |
|
|
use A3C::Record schema { |
8 |
|
|
|
9 |
|
|
# hrEduOrg super: organization |
10 |
|
|
|
11 |
|
|
# hrEduOrg must: |
12 |
|
|
|
13 |
|
|
column hrEduOrgUniqueNumber => |
14 |
|
|
label is _('Visestruka vrijednost brojcani identifikator ustanove'), |
15 |
|
|
max_length is 128, |
16 |
|
|
is mandatory; |
17 |
|
|
|
18 |
|
|
column hrEduOrgMail => |
19 |
|
|
label is _('Sluzbena e-mail adresa ustanove'), |
20 |
|
|
max_length is 256, |
21 |
|
|
is mandatory; |
22 |
|
|
|
23 |
|
|
column o => |
24 |
|
|
label is _('RFC2256: organization this object belongs to'), |
25 |
|
|
is mandatory; |
26 |
|
|
|
27 |
|
|
column hrEduOrgURL => |
28 |
|
|
label is _('URL adresa Web sjedista ustanove'), |
29 |
|
|
max_length is 256, |
30 |
|
|
is mandatory; |
31 |
|
|
|
32 |
|
|
column hrEduOrgType => |
33 |
|
|
label is _('Jednostruka vrijednost prema kategorizaciji MZOS'), |
34 |
|
|
max_length is 128, |
35 |
|
|
is mandatory; |
36 |
|
|
|
37 |
|
|
column objectClass => |
38 |
|
|
label is _('RFC2256: object classes of the entity'), |
39 |
|
|
is mandatory; |
40 |
|
|
|
41 |
|
|
|
42 |
|
|
# hrEduOrg may: |
43 |
|
|
|
44 |
|
|
column businessCategory => |
45 |
|
|
label is _('RFC2256: business category'), |
46 |
|
|
max_length is 128; |
47 |
|
|
|
48 |
|
|
column searchGuide => |
49 |
|
|
label is _('RFC2256: search guide, obsoleted by enhancedSearchGuide'); |
50 |
|
|
|
51 |
|
|
column internationaliSDNNumber => |
52 |
|
|
label is _('RFC2256: international ISDN number'), |
53 |
|
|
max_length is 16; |
54 |
|
|
|
55 |
|
|
column telexNumber => |
56 |
|
|
label is _('RFC2256: Telex Number'); |
57 |
|
|
|
58 |
|
|
column hrEduOrgPolicyURI => |
59 |
|
|
label is _('URI s oznakom; pokazuje na sluzbenu politiku ustanove'), |
60 |
|
|
max_length is 256; |
61 |
|
|
|
62 |
|
|
column postOfficeBox => |
63 |
|
|
label is _('RFC2256: Post Office Box'), |
64 |
|
|
max_length is 40; |
65 |
|
|
|
66 |
|
|
column telephoneNumber => |
67 |
|
|
label is _('RFC2256: Telephone Number'), |
68 |
|
|
max_length is 32; |
69 |
|
|
|
70 |
|
|
column destinationIndicator => |
71 |
|
|
label is _('RFC2256: destination indicator'), |
72 |
|
|
max_length is 128; |
73 |
|
|
|
74 |
|
|
column facsimileTelephoneNumber => |
75 |
|
|
label is _('RFC2256: Facsimile (Fax) Telephone Number'); |
76 |
|
|
|
77 |
|
|
column hrEduOrgMobile => |
78 |
|
|
label is _('Broj mobilnog telefona ustanove'); |
79 |
|
|
|
80 |
|
|
column userPassword => |
81 |
|
|
label is _('RFC2256/2307: password of user'), |
82 |
|
|
max_length is 128; |
83 |
|
|
|
84 |
|
|
column x121Address => |
85 |
|
|
label is _('RFC2256: X.121 Address'), |
86 |
|
|
max_length is 15; |
87 |
|
|
|
88 |
|
|
column st => |
89 |
|
|
label is _('RFC2256: state or province which this object resides in'); |
90 |
|
|
|
91 |
|
|
column postalCode => |
92 |
|
|
label is _('RFC2256: postal code'), |
93 |
|
|
max_length is 40; |
94 |
|
|
|
95 |
|
|
column seeAlso => |
96 |
|
|
label is _('RFC2256: DN of related object'); |
97 |
|
|
|
98 |
|
|
column postalAddress => |
99 |
|
|
label is _('RFC2256: postal address'); |
100 |
|
|
|
101 |
|
|
column physicalDeliveryOfficeName => |
102 |
|
|
label is _('RFC2256: Physical Delivery Office Name'), |
103 |
|
|
max_length is 128; |
104 |
|
|
|
105 |
|
|
column teletexTerminalIdentifier => |
106 |
|
|
label is _('RFC2256: Teletex Terminal Identifier'); |
107 |
|
|
|
108 |
|
|
column l => |
109 |
|
|
label is _('RFC2256: locality which this object resides in'); |
110 |
|
|
|
111 |
|
|
column registeredAddress => |
112 |
|
|
label is _('RFC2256: registered postal address'); |
113 |
|
|
|
114 |
|
|
column hrEduOrgMember => |
115 |
|
|
label is _('Pripadnost nekoj ustanovi'), |
116 |
|
|
max_length is 128; |
117 |
|
|
|
118 |
|
|
column description => |
119 |
|
|
label is _('RFC2256: descriptive information'), |
120 |
|
|
max_length is 1024; |
121 |
|
|
|
122 |
|
|
column preferredDeliveryMethod => |
123 |
|
|
label is _('RFC2256: preferred delivery method'); |
124 |
|
|
|
125 |
|
|
column street => |
126 |
|
|
label is _('RFC2256: street address of this object'), |
127 |
|
|
max_length is 128; |
128 |
|
|
|
129 |
|
|
|
130 |
|
|
# dcObject super: top |
131 |
|
|
|
132 |
|
|
# dcObject must: |
133 |
|
|
|
134 |
|
|
column dc => |
135 |
|
|
label is _('RFC1274/2247: domain component'), |
136 |
|
|
is mandatory; |
137 |
|
|
|
138 |
|
|
|
139 |
|
|
# posixAccount super: top |
140 |
|
|
|
141 |
|
|
# posixAccount must: |
142 |
|
|
|
143 |
|
|
column uidNumber => |
144 |
|
|
label is _('An integer uniquely identifying a user in an administrative domain'), |
145 |
|
|
is mandatory; |
146 |
|
|
|
147 |
|
|
column uid => |
148 |
|
|
label is _('RFC1274: user identifier'), |
149 |
|
|
max_length is 256, |
150 |
|
|
is mandatory; |
151 |
|
|
|
152 |
|
|
column homeDirectory => |
153 |
|
|
label is _('The absolute path to the home directory'), |
154 |
|
|
is mandatory; |
155 |
|
|
|
156 |
|
|
column cn => |
157 |
|
|
label is _('RFC2256: common name(s) for which the entity is known by'), |
158 |
|
|
is mandatory; |
159 |
|
|
|
160 |
|
|
column gidNumber => |
161 |
|
|
label is _('An integer uniquely identifying a group in an administrative domain'), |
162 |
|
|
is mandatory; |
163 |
|
|
|
164 |
|
|
|
165 |
|
|
# posixAccount may: |
166 |
|
|
|
167 |
|
|
column gecos => |
168 |
|
|
label is _('The GECOS field; the common name'); |
169 |
|
|
|
170 |
|
|
column loginShell => |
171 |
|
|
label is _('The path to the login shell'); |
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
}; |
177 |
|
|
|
178 |
|
|
|
179 |
|
|
=head2 name |
180 |
|
|
|
181 |
|
|
Auto-generated human readable id for generic access to name |
182 |
|
|
|
183 |
|
|
=cut |
184 |
|
|
|
185 |
|
|
sub name { $_[0]->id } |
186 |
|
|
|
187 |
|
|
|
188 |
|
|
=head2 ACL |
189 |
|
|
|
190 |
|
|
We use L<A3C::DefaultACL> for access control |
191 |
|
|
|
192 |
|
|
=cut |
193 |
|
|
|
194 |
|
|
use A3C::DefaultACL; |
195 |
|
|
|
196 |
|
|
1; |