コード例 #1
0
 @Override
 public List<Application> getAllApplicationsByDate(String minDate, String maxDate) {
   LOGGER.info("getAllApplicationsBydate from: " + minDate + " To: " + maxDate);
   return applicationDao.getApplicationsBySetDate(getDate(minDate), getDate(maxDate));
 }
コード例 #2
0
 @Override
 public List<Application> getAllApplications() {
   LOGGER.info("getAllApplications");
   return applicationDao.getAllApplications();
 }
コード例 #3
0
 @Override
 public Application getApplicationById(Integer applicationId) {
   LOGGER.info("SERVICE: get application by id=" + applicationId.toString());
   Assert.notNull(applicationId, "Id should not be null!");
   return applicationDao.getApplicationById(applicationId);
 }
コード例 #4
0
 @Override
 public void updateApplication(Integer applicationId, String updatedDate) {
   LOGGER.info("SERVICE: updateApplication by id=" + applicationId.toString());
   Assert.notNull(applicationId, "Id should not be null");
   applicationDao.updateApplication(applicationId, getDate(updatedDate));
 }
コード例 #5
0
 @Override
 public void deleteApplication(Integer applicationId) {
   LOGGER.info("SERVICE: delete application by id=" + applicationId.toString());
   Assert.notNull(applicationId, "Id should not be null!");
   applicationDao.deleteApplication(applicationId);
 }
コード例 #6
0
 @Override
 public Integer addApplication(Application application) {
   LOGGER.info("SERVICE: addApplication");
   Assert.isNull(application.getApplicationId(), "Id should be null!");
   return applicationDao.addApplication(application);
 }