Merge pull request #5248 from solgenomics/topic/batch_update_trials
[sgn.git] / lib / CXGN / BrAPI / v1 / Common.pm
blobdd23e8c1204924583ef2585825d755cc9d56d58f
1 package CXGN::BrAPI::v1::Common;
3 =head1 NAME
4 CXGN::BrAPI::v1::Common - parent class for BrAPI subclasses.
5 =head1 DESCRIPTION
6 Defines the following properties:
7 =over 4
8 =item bcs_schema
9 A Bio::Chado::Schema object
10 =item metadata_schema
11 A CXGN::Metadata::Schema object
12 =item phenome_schema
13 A CXGN::Phenome::Schema object
14 =item people_schema
15 A CXGN::People::Schema
16 =item page
17 The page to be retrieved
18 =item page_size
19 The current page_size
20 =item status
21 Current BrAPI status information
22 =back
23 =head1 AUTHORS
24 Nicolas Morales <nm529@cornell.edu>
25 Lukas Mueller <lam87@cornell.edu>
26 =cut
28 use Moose;
30 has 'bcs_schema' => (
31 isa => 'Bio::Chado::Schema',
32 is => 'rw',
33 required => 1,
36 has 'metadata_schema' => (
37 isa => 'CXGN::Metadata::Schema',
38 is => 'rw',
39 required => 1,
42 has 'phenome_schema' => (
43 isa => 'CXGN::Phenome::Schema',
44 is => 'rw',
45 required => 1,
48 has 'people_schema' => (
49 isa => 'CXGN::People::Schema',
50 is => 'rw',
51 required => 1,
54 has 'page_size' => (
55 isa => 'Int',
56 is => 'rw',
57 required => 1,
60 has 'page' => (
61 isa => 'Int',
62 is => 'rw',
63 required => 1,
66 has 'status' => (
67 isa => 'ArrayRef[Maybe[HashRef]]',
68 is => 'rw',
69 required => 1,