5 use Catalyst
::Authentication
::User
;
6 use CXGN
::People
::Person
;
8 has
'dbh' => ( isa
=> 'Ref',
13 has
'sp_person_id' => ( isa
=> 'Int',
18 has
'user' => ( isa
=> 'Object',
23 has
'bcs_schema' => (isa
=> 'Bio::Chado::Schema',
28 has
'metadata_schema' => (isa
=> 'CXGN::Metadata::Schema',
32 has
'phenome_schema' => ( isa
=> 'CXGN::Phenome::Schema',
36 has
'sgn_schema' => ( isa
=> 'SGN::Schema',
43 my $catalyst_user = Catalyst
::Authentication
::User
->new();
44 my $sgn_user = CXGN
::People
::Person
->new($args->{dbh
}, $args->{sp_person_id
});
45 $catalyst_user->set_object($sgn_user);
46 $self->user($catalyst_user);
57 if ($name eq 'Bio::Chado::Schema') {
58 return $self->bcs_schema();
60 if ($name eq 'CXGN::Phenome::Schema') {
61 return $self->phenome_schema();
63 if ($name eq 'SGN::Schema') {
64 return $self->sgn_schema();
66 if ($name eq 'CXGN::Metadata::Schema') {
67 return $self->metadata_schema();