annotate Lib/IMPL/Security/Principal.pm @ 403:7171a8e2e2ba

dirty fix for url encoding
author sergey
date Tue, 20 May 2014 01:26:45 +0400
parents 16ff604298c7
children
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 => [
401
16ff604298c7 minor fixes
cin
parents: 230
diff changeset
16 @{AbstractPrincipal->abstractProps()},
16ff604298c7 minor fixes
cin
parents: 230
diff changeset
17 isNobody => PROP_RW
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
18 ]
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
19 };
97
964587c5183c Added SecureCall to Web QueryHandlers stack
wizard
parents: 74
diff changeset
20
230
6d8092d8ce1b *reworked IMPL::Security
sergey
parents: 180
diff changeset
21 __PACKAGE__->abstractProps([]);
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
22
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
23 my $nobody;
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
24
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
25 sub nobody {
401
16ff604298c7 minor fixes
cin
parents: 230
diff changeset
26 $nobody = $_[0]->new(name => 'nobody', description => '', isNobody => 1) unless $nobody;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
27 return $nobody;
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
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 48
diff changeset
30 1;
74
wizard
parents: 49
diff changeset
31
wizard
parents: 49
diff changeset
32 __END__
wizard
parents: 49
diff changeset
33
wizard
parents: 49
diff changeset
34 =pod
wizard
parents: 49
diff changeset
35
wizard
parents: 49
diff changeset
36 =head1 NAME
wizard
parents: 49
diff changeset
37
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
38 C<IMPL::Security::Principal> Идентификатор пользователя
74
wizard
parents: 49
diff changeset
39
wizard
parents: 49
diff changeset
40 C<[Autofill]>
wizard
parents: 49
diff changeset
41
wizard
parents: 49
diff changeset
42 =head1 MEMBERS
wizard
parents: 49
diff changeset
43
wizard
parents: 49
diff changeset
44 =over
wizard
parents: 49
diff changeset
45
wizard
parents: 49
diff changeset
46 =item C<CTOR(%props)>
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 =item C<[get] name>
wizard
parents: 49
diff changeset
51
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
52 Возвращает имя пользователя.
74
wizard
parents: 49
diff changeset
53
wizard
parents: 49
diff changeset
54 =item C<[get,set] description>
wizard
parents: 49
diff changeset
55
180
d1676be8afcc Перекодировка в utf-8
sourcer
parents: 166
diff changeset
56 Возвращает описание пользователя.
74
wizard
parents: 49
diff changeset
57
wizard
parents: 49
diff changeset
58 =back
wizard
parents: 49
diff changeset
59
wizard
parents: 49
diff changeset
60 =cut