public class Experiments extends HasEntry
accountDAO, entryDAO| Constructor and Description |
|---|
Experiments(String userId,
String partId) |
| Modifier and Type | Method and Description |
|---|---|
Study |
createOrUpdateStudy(Study study)
Creates a new study for a particular entry.
|
boolean |
deleteStudy(long studyId)
Deletes a study associated with the specified part and with the specified unique identifier.
|
ArrayList<Study> |
getPartStudies()
Retrieves experiment data associated with a specific entry
|
public Experiments(String userId, String partId)
userId - unique identifier for user making requestpartId - unique identifier for entry whose experiment links are being retrieved. The user making the request
must have read privileges on the entryIllegalArgumentException - if the entry associated with the part identifier cannot be locatedpublic ArrayList<Study> getPartStudies()
PermissionException - if the specified user does not have read privileges on the specified entrypublic Study createOrUpdateStudy(Study study)
Study object
then an update occurs instead of a new object being created.
Only read access is required to create a new study. To update an existing study
the user must be the creator or must have write access on the entry the study is associated withstudy - data for studypublic boolean deleteStudy(long studyId)
createOrUpdateStudy()) or must have write
permissions for the part that the study is associated withstudyId - id of study to be deletedCopyright © 2017. All rights reserved.