annotate Lib/IMPL/Security/Principal.pm @ 85:190c794a41ae

DateTime renamed because of collision
author wizard
date Fri, 16 Apr 2010 16:33:11 +0400
parents 84aa8c395fce
children 964587c5183c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
1 package IMPL::Security::Principal;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
2 use strict;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
3 use warnings;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
4
74
wizard
parents: 49
diff changeset
5 use base qw(IMPL::Object IMPL::Object::Autofill);
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
6 use IMPL::Class::Property;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
7
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
8 BEGIN {
74
wizard
parents: 49
diff changeset
9 public property name => prop_get;
wizard
parents: 49
diff changeset
10 public property description => prop_all;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
11 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
12
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
13 my $nobody;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
14
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
15 sub nobody {
74
wizard
parents: 49
diff changeset
16 $nobody = $_[0]->new(name => 'nobody', description => '') unless $nobody;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
17 return $nobody;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
18 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
19
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
20 1;
74
wizard
parents: 49
diff changeset
21
wizard
parents: 49
diff changeset
22 __END__
wizard
parents: 49
diff changeset
23
wizard
parents: 49
diff changeset
24 =pod
wizard
parents: 49
diff changeset
25
wizard
parents: 49
diff changeset
26 =head1 NAME
wizard
parents: 49
diff changeset
27
wizard
parents: 49
diff changeset
28 C<IMPL::Security::Principal> Идентификатор пользователя
wizard
parents: 49
diff changeset
29
wizard
parents: 49
diff changeset
30 C<[Autofill]>
wizard
parents: 49
diff changeset
31
wizard
parents: 49
diff changeset
32 =head1 MEMBERS
wizard
parents: 49
diff changeset
33
wizard
parents: 49
diff changeset
34 =over
wizard
parents: 49
diff changeset
35
wizard
parents: 49
diff changeset
36 =item C<CTOR(%props)>
wizard
parents: 49
diff changeset
37
wizard
parents: 49
diff changeset
38 Создает новый объект.
wizard
parents: 49
diff changeset
39
wizard
parents: 49
diff changeset
40 =item C<[get] name>
wizard
parents: 49
diff changeset
41
wizard
parents: 49
diff changeset
42 Возвращает имя пользователя.
wizard
parents: 49
diff changeset
43
wizard
parents: 49
diff changeset
44 =item C<[get,set] description>
wizard
parents: 49
diff changeset
45
wizard
parents: 49
diff changeset
46 Возвращает описание пользователя.
wizard
parents: 49
diff changeset
47
wizard
parents: 49
diff changeset
48 =back
wizard
parents: 49
diff changeset
49
wizard
parents: 49
diff changeset
50 =cut