annotate Lib/IMPL/Security/Principal.pm @ 204:d63f9a92d6d4

+IMPL::Config::Include - simple way to include external config *IMPL::Web::Handler::TTView - finished template selecting mechanism (not tested)
author sergey
date Wed, 02 May 2012 17:42:47 +0400
parents d1676be8afcc
children 6d8092d8ce1b
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
166
4267a2ac3d46 Added Class::Template,
wizard
parents: 97
diff changeset
5 use parent 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
97
964587c5183c Added SecureCall to Web QueryHandlers stack
wizard
parents: 74
diff changeset
8 __PACKAGE__->PassThroughArgs;
964587c5183c Added SecureCall to Web QueryHandlers stack
wizard
parents: 74
diff changeset
9
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
10 BEGIN {
74
wizard
parents: 49
diff changeset
11 public property name => prop_get;
wizard
parents: 49
diff changeset
12 public property description => prop_all;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
13 }
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 my $nobody;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
16
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
17 sub nobody {
74
wizard
parents: 49
diff changeset
18 $nobody = $_[0]->new(name => 'nobody', description => '') unless $nobody;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
19 return $nobody;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
20 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
21
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
22 1;
74
wizard
parents: 49
diff changeset
23
wizard
parents: 49
diff changeset
24 __END__
wizard
parents: 49
diff changeset
25
wizard
parents: 49
diff changeset
26 =pod
wizard
parents: 49
diff changeset
27
wizard
parents: 49
diff changeset
28 =head1 NAME
wizard
parents: 49
diff changeset
29
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
30 C<IMPL::Security::Principal> Идентификатор пользователя
74
wizard
parents: 49
diff changeset
31
wizard
parents: 49
diff changeset
32 C<[Autofill]>
wizard
parents: 49
diff changeset
33
wizard
parents: 49
diff changeset
34 =head1 MEMBERS
wizard
parents: 49
diff changeset
35
wizard
parents: 49
diff changeset
36 =over
wizard
parents: 49
diff changeset
37
wizard
parents: 49
diff changeset
38 =item C<CTOR(%props)>
wizard
parents: 49
diff changeset
39
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
40 Создает новый объект.
74
wizard
parents: 49
diff changeset
41
wizard
parents: 49
diff changeset
42 =item C<[get] name>
wizard
parents: 49
diff changeset
43
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
44 Возвращает имя пользователя.
74
wizard
parents: 49
diff changeset
45
wizard
parents: 49
diff changeset
46 =item C<[get,set] description>
wizard
parents: 49
diff changeset
47
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
48 Возвращает описание пользователя.
74
wizard
parents: 49
diff changeset
49
wizard
parents: 49
diff changeset
50 =back
wizard
parents: 49
diff changeset
51
wizard
parents: 49
diff changeset
52 =cut