public interface MetricCRUDInterface
Modifier and Type | Method and Description |
---|---|
MetricCrudDTO |
changeStateMetric(MetricDTO dto) |
long |
countMetricByState(java.lang.String state,
java.lang.String userId) |
MetricCrudDTO |
createMetric(MetricDTO dto) |
void |
deleteMetricById(java.lang.String id) |
MetricCrudDTO |
getMetricById(java.lang.String id) |
MetricCrudDTO |
getMetricByIdAndVersion(java.lang.String id,
java.lang.String version) |
MetricDTO |
getMetricByIdLastApprovedVersion(java.lang.String id) |
MetricCrudDTO |
getMetricByState(java.lang.String state) |
MetricCrudDTO |
getMetricByStateAndMetricatorId(java.lang.String state,
java.lang.String userId) |
MetricCrudDTO |
getMetricCrudDTOByIdLastApprovedVersion(java.lang.String id) |
MetricCrudDTO |
getMetricOfUser(java.lang.String userId) |
java.util.ArrayList<MetricDTO> |
getMetricsByPointerBusList(java.util.List<PointerBus> list) |
MetricCrudDTO |
updateMetric(MetricDTO dto) |
MetricCrudDTO getMetricById(java.lang.String id) throws BadInputException, NotFoundException
BadInputException
NotFoundException
MetricCrudDTO getMetricByIdAndVersion(java.lang.String id, java.lang.String version) throws BadInputException, NotFoundException
BadInputException
NotFoundException
MetricCrudDTO getMetricOfUser(java.lang.String userId) throws NotFoundException, BadInputException
NotFoundException
BadInputException
MetricCrudDTO updateMetric(MetricDTO dto) throws BadInputException, IllegalStateTransitionException, NotFoundException, DBException
void deleteMetricById(java.lang.String id) throws BadInputException, IllegalStateTransitionException
MetricDTO getMetricByIdLastApprovedVersion(java.lang.String id) throws BadInputException, NotFoundException, BusException, java.io.IOException
BadInputException
NotFoundException
BusException
java.io.IOException
MetricCrudDTO createMetric(MetricDTO dto) throws BadInputException
BadInputException
MetricCrudDTO changeStateMetric(MetricDTO dto) throws BadInputException, IllegalStateTransitionException, NotFoundException, DBException
MetricCrudDTO getMetricCrudDTOByIdLastApprovedVersion(java.lang.String id) throws BadInputException, NotFoundException, BusException, java.io.IOException
BadInputException
NotFoundException
BusException
java.io.IOException
long countMetricByState(java.lang.String state, java.lang.String userId) throws BadInputException, NotFoundException
BadInputException
NotFoundException
MetricCrudDTO getMetricByState(java.lang.String state) throws NotFoundException, BadInputException
NotFoundException
BadInputException
MetricCrudDTO getMetricByStateAndMetricatorId(java.lang.String state, java.lang.String userId) throws NotFoundException, BadInputException
NotFoundException
BadInputException
java.util.ArrayList<MetricDTO> getMetricsByPointerBusList(java.util.List<PointerBus> list)