source: trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Dummy/User.pm @ 1904

Last change on this file since 1904 was 1350, checked in by nanardon, 9 years ago

Fix id for dummy object

  • Property svn:keywords set to Id Rev
File size: 1017 bytes
Line 
1package LATMOS::Accounts::Bases::Dummy::User;
2
3use strict;
4use warnings;
5use base qw(LATMOS::Accounts::Bases::Objects);
6
7=head1 NAME
8
9LATMOS::Accounts::Bases::Dummy::User - User support for Dummy base
10
11=cut
12
13our $VERSION = (q$Rev$ =~ /^Rev: (\d+) /)[0];
14
15sub _get_attr_schema {
16    {
17        username => {},
18        homeDirectory => { iname => 'home' },
19    }
20}
21
22sub list {
23    return ();
24}
25
26sub new {
27    my ($class, $base, $id) = @_;
28    bless { _id => $id }, $class;
29}
30
31sub _create {
32    my ($class, $id);
33    return 1;
34}
35
361;
37
38__END__
39
40=head1 SEE ALSO
41
42L<LATMOS::Accounts::Bases::Sql>, L<LATMOS::Accounts::Bases::Sql::DataRequest>
43
44=head1 AUTHOR
45
46Olivier Thauvin, E<lt>olivier.thauvin@latmos.ipsl.frE<gt>
47
48=head1 COPYRIGHT AND LICENSE
49
50Copyright (C) 2008, 2009, 2010, 2011, 2012 CNRS SA/CETP/LATMOS
51
52This library is free software; you can redistribute it and/or modify
53it under the same terms as Perl itself, either Perl version 5.10.0 or,
54at your option, any later version of Perl 5 you may have available.
55
56=cut
Note: See TracBrowser for help on using the repository browser.