annotate Lib/IMPL/Security/Principal.pm @ 156:8638dd1374bf

Added template property to IMPL::Web::QueryHandler::PageFormat (this allows to specify exact template (filename, ref to a scalar, ref to a file handle)).
author wizard
date Tue, 05 Oct 2010 17:20:51 +0400
parents 964587c5183c
children 4267a2ac3d46
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
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
wizard
parents: 49
diff changeset
30 C<IMPL::Security::Principal> Идентификатор пользователя
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
wizard
parents: 49
diff changeset
40 Создает новый объект.
wizard
parents: 49
diff changeset
41
wizard
parents: 49
diff changeset
42 =item C<[get] name>
wizard
parents: 49
diff changeset
43
wizard
parents: 49
diff changeset
44 Возвращает имя пользователя.
wizard
parents: 49
diff changeset
45
wizard
parents: 49
diff changeset
46 =item C<[get,set] description>
wizard
parents: 49
diff changeset
47
wizard
parents: 49
diff changeset
48 Возвращает описание пользователя.
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