annotate Lib/IMPL/Security/Principal.pm @ 250:129e48bb5afb

DOM refactoring ObjectToDOM methods are virtual QueryToDOM uses inflators Fixed transform for the complex values in the ObjectToDOM QueryToDOM doesn't allow to use complex values (HASHes) as values for nodes (overpost problem)
author sergey
date Wed, 07 Nov 2012 04:17:53 +0400
parents 6d8092d8ce1b
children 16ff604298c7
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
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
5 use IMPL::Const qw(:prop);
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
6 use IMPL::require {
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
7 AbstractPrincipal => 'IMPL::Security::AbstractPrincipal'
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
8 };
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
9 use IMPL::declare {
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
10 base => [
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
11 'IMPL::Object' => undef,
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
12 'IMPL::Object::Autofill' => '@_',
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
13 'IMPL::Security::AbstractPrincipal' => undef
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
14 ],
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
15 props => [
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
16 @{AbstractPrincipal->abstractProps()}
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
17 ]
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
18 };
97
964587c5183c Added SecureCall to Web QueryHandlers stack
wizard
parents: 74
diff changeset
19
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
20 __PACKAGE__->abstractProps([]);
49
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 my $nobody;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
23
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
24 sub nobody {
74
wizard
parents: 49
diff changeset
25 $nobody = $_[0]->new(name => 'nobody', description => '') unless $nobody;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
26 return $nobody;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
27 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
28
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
29 1;
74
wizard
parents: 49
diff changeset
30
wizard
parents: 49
diff changeset
31 __END__
wizard
parents: 49
diff changeset
32
wizard
parents: 49
diff changeset
33 =pod
wizard
parents: 49
diff changeset
34
wizard
parents: 49
diff changeset
35 =head1 NAME
wizard
parents: 49
diff changeset
36
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
37 C<IMPL::Security::Principal> Идентификатор пользователя
74
wizard
parents: 49
diff changeset
38
wizard
parents: 49
diff changeset
39 C<[Autofill]>
wizard
parents: 49
diff changeset
40
wizard
parents: 49
diff changeset
41 =head1 MEMBERS
wizard
parents: 49
diff changeset
42
wizard
parents: 49
diff changeset
43 =over
wizard
parents: 49
diff changeset
44
wizard
parents: 49
diff changeset
45 =item C<CTOR(%props)>
wizard
parents: 49
diff changeset
46
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
47 Создает новый объект.
74
wizard
parents: 49
diff changeset
48
wizard
parents: 49
diff changeset
49 =item C<[get] name>
wizard
parents: 49
diff changeset
50
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
51 Возвращает имя пользователя.
74
wizard
parents: 49
diff changeset
52
wizard
parents: 49
diff changeset
53 =item C<[get,set] description>
wizard
parents: 49
diff changeset
54
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
55 Возвращает описание пользователя.
74
wizard
parents: 49
diff changeset
56
wizard
parents: 49
diff changeset
57 =back
wizard
parents: 49
diff changeset
58
wizard
parents: 49
diff changeset
59 =cut