1 |
use strict; |
use strict; |
2 |
use warnings; |
use warnings; |
3 |
|
|
4 |
|
=head1 WARNING |
5 |
|
|
6 |
|
B<This code is obsolete> since application is using L<A3C::Model::hrEduOrg> |
7 |
|
|
8 |
|
=cut |
9 |
|
|
10 |
package A3C::Model::Organization; |
package A3C::Model::Organization; |
11 |
use Jifty::DBI::Schema; |
use Jifty::DBI::Schema; |
12 |
|
|
13 |
use A3C::Record schema { |
use A3C::Record schema { |
14 |
|
|
15 |
|
column uid => |
16 |
|
label is _('UID'), |
17 |
|
is indexed, |
18 |
|
is distinct, |
19 |
|
is mandatory; |
20 |
|
|
21 |
column o => |
column o => |
22 |
label is _('Naziv matične ustanove'), |
label is _('Naziv matične ustanove'), |
23 |
is mandatory; |
is mandatory; |
24 |
|
|
|
column hrEduPersonHomeOrg => |
|
|
label is _('Oznaka matične ustanove'), |
|
|
hint is 'CARNet', |
|
|
is mandatory; |
|
|
|
|
25 |
column l => |
column l => |
26 |
label is _('Mjesto'), |
label is _('Mjesto'), |
27 |
hist is 'Zagreb', |
hist is 'Zagreb', |
38 |
|
|
39 |
column street => |
column street => |
40 |
label is _('Ulica i kućni broj'); |
label is _('Ulica i kućni broj'); |
41 |
|
|
42 |
|
column hrEduOrgUniqueNumber => |
43 |
|
label is _('hrEduOrgUniqueNumber'), |
44 |
|
is indexed, |
45 |
|
is mandatory; |
46 |
|
|
47 |
|
column telephoneNumber => |
48 |
|
label is _('Broj telefona'); |
49 |
|
|
50 |
|
column facsimileTelephoneNumber => |
51 |
|
label is _('fax number'); |
52 |
|
|
53 |
|
column cn => |
54 |
|
label is _('cn'), |
55 |
|
is indexed; |
56 |
|
|
57 |
|
column dc => |
58 |
|
label is _('dc'), |
59 |
|
is indexed; |
60 |
|
|
61 |
|
column uidNumber => |
62 |
|
type is 'int', |
63 |
|
label is _('uid number'); |
64 |
|
|
65 |
|
column gidNumber => |
66 |
|
type is 'int', |
67 |
|
label is _('gid number'); |
68 |
|
|
69 |
|
column homeDirectory => |
70 |
|
label is _('home directory'); |
71 |
|
|
72 |
|
column 'loginShell'; |
73 |
|
|
74 |
|
column 'hrEduOrgMail'; |
75 |
|
|
76 |
|
column 'hrEduOrgType'; |
77 |
|
|
78 |
|
column 'hrEduOrgURL'; |
79 |
|
|
80 |
|
column 'hrEduOrgPolicyURI'; |
81 |
|
|
82 |
|
column 'hrEduOrgMobile'; |
83 |
|
|
84 |
|
column 'hrEduOrgMember'; |
85 |
|
|
86 |
}; |
}; |
87 |
|
|
88 |
# Your model-specific methods go here. |
# Your model-specific methods go here. |
89 |
|
|
90 |
|
=head2 name |
91 |
|
|
92 |
|
Humanly readable name of organization |
93 |
|
|
94 |
|
=cut |
95 |
|
|
96 |
|
sub name { |
97 |
|
my $self = shift; |
98 |
|
return $self->cn . ' - ' . $self->o; |
99 |
|
} |
100 |
|
|
101 |
|
use A3C::DefaultACL; |
102 |
|
|
103 |
1; |
1; |
104 |
|
|