public List<UserDTO> getReaders(final long studyId) throws InvalidParameterException {
Study aStudy = selectStudy(studyId);
if(aStudy == null){
- throw new InvalidParameterException("studyId", String.valueOf(studyId));
+ throw new InvalidParameterException(PARAM_STUDY_ID, String.valueOf(studyId));
}
List<Relation> relations = aStudy.getRelations(ReaderRelation.class);
List<UserDTO> result = new ArrayList<UserDTO>();
public boolean addReader(final long studyId, final long userId) throws InvalidParameterException {
Study aStudy = selectStudy(studyId);
if(aStudy == null){
- throw new InvalidParameterException("studyId", String.valueOf(studyId));
+ throw new InvalidParameterException(PARAM_STUDY_ID, String.valueOf(studyId));
}
User user = _userService.selectUser(userId);
if(user == null){
public boolean removeReader(final long studyId, final long userId) throws InvalidParameterException {
Study aStudy = selectStudy(studyId);
if(aStudy == null){
- throw new InvalidParameterException("studyId", String.valueOf(studyId));
+ throw new InvalidParameterException(PARAM_STUDY_ID, String.valueOf(studyId));
}
User user = _userService.selectUser(userId);
if(user == null){