44 lines
1.7 KiB
Java
44 lines
1.7 KiB
Java
package net.gepafin.tendermanagement.service.impl;
|
|
|
|
import net.gepafin.tendermanagement.dao.CommunicationDao;
|
|
import net.gepafin.tendermanagement.model.request.CommunicationRequestBean;
|
|
import net.gepafin.tendermanagement.model.response.ApplicationAmendmentResponse;
|
|
import net.gepafin.tendermanagement.model.response.CommunicationResponseBean;
|
|
import net.gepafin.tendermanagement.service.CommunicationService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
@Service
|
|
public class CommunicationServiceImpl implements CommunicationService {
|
|
|
|
@Autowired
|
|
CommunicationDao communicationDao;
|
|
|
|
@Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public CommunicationResponseBean addCommentToAmendmentRequest(CommunicationRequestBean communicationRequestBean, Long amendmentId) {
|
|
|
|
return communicationDao.addCommentToAmendmentRequest(communicationRequestBean, amendmentId);
|
|
}
|
|
@Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public String deleteComment(Long amendmentId, Long commentId) {
|
|
|
|
return communicationDao.deleteComment(amendmentId, commentId);
|
|
}
|
|
@Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public CommunicationResponseBean updateAmendmentComment(CommunicationRequestBean communicationRequestBean, Long amendmentId, Long commentId) {
|
|
|
|
return communicationDao.updateAmendmentComment(communicationRequestBean, amendmentId, commentId);
|
|
}
|
|
@Override
|
|
@Transactional(readOnly = true)
|
|
public ApplicationAmendmentResponse getAmendmentComments(Long id) {
|
|
|
|
return communicationDao.getAmendmentComments(id);
|
|
}
|
|
}
|