Moving study models to study package; creating Dynamo Study and DAO

No, that's just the name of the role for a researcher for this study (that
role is scoped to a specific study, so for example, if this field says
"pd_researcher", you must have that as a role to do researcher stuff in the
PD app. You won't be able to do research stuff in any other app. Actually a
good point here is that the researcher role needs to be a unique string
vis-a-vis other studies. I will probably just set it as
<identifier>_researcher because that's sure to be unique.

(I will remove the ILikeJson() method, that was a test)

Alx

On Tue, Nov 11, 2014 at 11:21 AM, Eric Wu <notifications@github.com> wrote:

> In test/org/sagebionetworks/bridge/dynamodb/DynamoStudyDaoTest.java:
>
> > +    }
> > +
> > +    @Test
> > +    public void iLikeJson() throws Exception {
> > +        Study2 study = createStudy();
> > +
> > +        System.out.println(BridgeObjectMapper.get().writeValueAsString(study));
> > +    }
> > +
> > +    private Study2 createStudy() {
> > +        Study2 study = new DynamoStudy();
> > +        study.setIdentifier(RandomStringUtils.randomAlphabetic(5));
> > +        study.setMaxParticipants(100);
> > +        study.setMinAgeOfConsent(18);
> > +        study.setName(RandomStringUtils.randomAlphabetic(5));
> > +        study.setResearcherRole("researcher");
>
> Does the list of researcher roles also have 'admin', 'backfill'? What are
> the list of research roles?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Sage-Bionetworks/BridgePF/pull/308/files#r20173208>.
>