Last change
on this file since 15 was
15,
checked in by nanardon, 15 years ago
|
|
-
Property svn:keywords set to
Id Rev
|
File size:
483 bytes
|
Line | |
---|
1 | package LATMOS::Accounts::Bases::Dummy::User; |
---|
2 | |
---|
3 | use strict; |
---|
4 | use warnings; |
---|
5 | use base qw(LATMOS::Accounts::Bases::Objects); |
---|
6 | |
---|
7 | our $VERSION = (q$Rev$ =~ /^Rev: (\d+) /)[0]; |
---|
8 | |
---|
9 | my %fields_map = ( |
---|
10 | username => 'username', |
---|
11 | homeDirectory => 'home', |
---|
12 | ); |
---|
13 | |
---|
14 | sub new { |
---|
15 | my ($class, $base, $id) = @_; |
---|
16 | bless {}, $class; |
---|
17 | } |
---|
18 | |
---|
19 | sub _canonical_fields { |
---|
20 | my ($self) = @_; |
---|
21 | return keys %fields_map; |
---|
22 | } |
---|
23 | |
---|
24 | sub _get_field_name { |
---|
25 | my ($self, $field) = @_; |
---|
26 | return $fields_map{$field}; |
---|
27 | } |
---|
28 | |
---|
29 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.