17 |
column hrEduPersonUniqueID => |
column hrEduPersonUniqueID => |
18 |
label is ('hrEduPersonUniqueID'), |
label is ('hrEduPersonUniqueID'), |
19 |
is indexed, |
is indexed, |
20 |
is mandatory, |
is distinct, |
|
is distinct; |
|
|
|
|
|
column name => |
|
|
type is 'text', |
|
|
label is _('Ime'), |
|
21 |
is mandatory; |
is mandatory; |
22 |
|
|
23 |
column cn => |
column cn => |
24 |
label is _('Ime'), |
label is _('Ime i prezime'), |
25 |
type is 'virtual'; |
is virtual; |
26 |
|
|
27 |
column sn => |
column sn => |
28 |
type is 'virtual', |
is virtual, |
29 |
label is _('Prezime'), |
label is _('Prezime'), |
30 |
is mandatory; |
is mandatory; |
31 |
|
|
32 |
column givenName => |
column givenName => |
33 |
type is 'virtual', |
is virtual, |
34 |
label is _('Ime'), |
label is _('Ime'), |
35 |
is mandatory; |
is mandatory; |
36 |
|
|
37 |
column mail => |
column mail => |
|
type is 'virtual'; |
|
|
|
|
|
column email => |
|
38 |
type is 'text', |
type is 'text', |
39 |
is mandatory, |
is mandatory, |
40 |
label is _('Email address'), default is '', is immutable, is distinct; |
label is _('Email address'), default is '', |
41 |
|
is immutable, |
42 |
column email_confirmed => |
is distinct; |
|
label is _('Email address confirmed?'), |
|
|
type is 'boolean'; |
|
43 |
|
|
44 |
column password => |
column password => |
45 |
is unreadable, |
is unreadable, |
298 |
column hrEduPersonPrivacy => |
column hrEduPersonPrivacy => |
299 |
label is _('Oznaka privatnosti'); |
label is _('Oznaka privatnosti'); |
300 |
|
|
301 |
|
column loginShell => |
302 |
|
label is _('shell'); |
303 |
|
|
304 |
|
column uidNumber => |
305 |
|
label is _('uid'), |
306 |
|
type is 'int'; |
307 |
|
|
308 |
|
column gidNumber => |
309 |
|
label is _('gid'); |
310 |
|
type is 'int'; |
311 |
|
|
312 |
|
column homeDirectory => |
313 |
|
label is _('home'); |
314 |
|
|
315 |
}; |
}; |
316 |
|
|
317 |
use Jifty::Plugin::User::Mixin::Model::User; |
# we don't use following mixing because it wants to send notificaitons on e-mail address change |
318 |
|
#use Jifty::Plugin::User::Mixin::Model::User; |
319 |
use Jifty::Plugin::Authentication::Password::Mixin::Model::User; |
use Jifty::Plugin::Authentication::Password::Mixin::Model::User; |
320 |
#use Jifty::Plugin::OpenID::Mixin::Model::User; |
#use Jifty::Plugin::OpenID::Mixin::Model::User; |
321 |
use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on |
use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on |
322 |
|
|
323 |
# Your model-specific methods go here. |
# Your model-specific methods go here. |
324 |
|
|
325 |
=head2 set_mail |
=head2 before_create |
326 |
|
|
327 |
Put mail from ldap into email row |
Implement virtual columns, for now put mail from ldap into email row |
328 |
|
|
329 |
=cut |
=cut |
330 |
|
|
331 |
sub set_mail { |
=for later |
332 |
my ($self,$v) = @_; |
|
333 |
$self->set_email( $v ); |
sub before_create { |
334 |
|
my ($self, $attr) = @_; |
335 |
|
if ( ! $attr->{'email'} ) { |
336 |
|
warn "push mail to email"; |
337 |
|
$attr->{'email'} = $attr->{'mail'}; |
338 |
|
} |
339 |
} |
} |
340 |
|
|
341 |
|
=cut |
342 |
|
|
343 |
|
=head2 email |
344 |
|
|
345 |
|
Accessor for compatibility with Jifty mixins |
346 |
|
|
347 |
|
=cut |
348 |
|
|
349 |
|
sub email { |
350 |
|
my $self = shift; |
351 |
|
return $self->__value('mail'); |
352 |
|
} |
353 |
|
|
354 |
|
sub email_confirmed { 1 }; |
355 |
|
|
356 |
=head2 validate_telephoneNumber |
=head2 validate_telephoneNumber |
357 |
|
|
358 |
=cut |
=cut |