public interface MeasurementGoalCRUDInterface
MeasurementGoalCrudDTO getMeasurementGoalById(java.lang.String id) throws BadInputException, NotFoundException
BadInputException
NotFoundException
MeasurementGoal createMeasurementGoal(MeasurementGoal goal)
MeasurementGoalCrudDTO createMeasurementGoal(MeasurementGoalDTO dto) throws BadInputException
BadInputException
MeasurementGoal updateMeasurementGoal(MeasurementGoal goal)
MeasurementGoalCrudDTO updateMeasurementGoal(MeasurementGoalDTO dto) throws DBException, NotFoundException, BadInputException, IllegalStateTransitionException
void deleteMeasurementGoalById(java.lang.String id) throws BadInputException, IllegalStateTransitionException
void deleteMeasurementGoal(MeasurementGoalDTO dto) throws BadInputException, IllegalStateTransitionException
MeasurementGoalCrudDTO getMeasurementGoalByIdAndVersion(java.lang.String id, java.lang.String version) throws BadInputException, NotFoundException
BadInputException
NotFoundException
MeasurementGoalCrudDTO getMeasurementGoalByUser(java.lang.String userId) throws NotFoundException, BadInputException
NotFoundException
BadInputException
MeasurementGoalCrudDTO getMeasurementGoalByIdAndLastApprovedVersion(java.lang.String id) throws BadInputException, NotFoundException
BadInputException
NotFoundException
MeasurementGoalCrudDTO changeStateMeasurementGoal(MeasurementGoalDTO dto) throws BadInputException, IllegalStateTransitionException, NotFoundException, DBException
long countMeasurementGoalByState(java.lang.String state, java.lang.String userId) throws BadInputException, NotFoundException
BadInputException
NotFoundException
MeasurementGoalCrudDTO getMeasurementGoalByState(java.lang.String state, java.lang.String userId) throws NotFoundException, BadInputException
NotFoundException
BadInputException
MeasurementGoalCrudDTO getMeasurementGoalByQuestionerId(java.lang.String questionerId) throws BadInputException, NotFoundException
BadInputException
NotFoundException