Пример #1
0
 @Override
 public void printReferencesById(List<Long> referenceIds) {
   for (Long referenceId : referenceIds) {
     Reference reference = referenceDAO.findById(referenceId);
     reference.setState(Reference.ReferenceState.PROCESSED);
     referenceDAO.update(reference);
   }
 }
Пример #2
0
 @Override
 public void readyReferencesById(List<Long> referenceIds) {
   for (Long referenceId : referenceIds) {
     Reference reference = referenceDAO.findById(referenceId);
     reference.setState(Reference.ReferenceState.READY);
     referenceDAO.update(reference);
   }
 }
Пример #3
0
 @Override
 public void issueReferencesById(List<Long> referenceIds) {
   for (Long referenceId : referenceIds) {
     Reference reference = referenceDAO.findById(referenceId);
     reference.setIssuedDate(new Date());
     reference.setState(Reference.ReferenceState.ISSUED);
     referenceDAO.update(reference);
   }
 }
Пример #4
0
 @Override
 public void removeReferencesById(List<Long> referenceIds) {
   for (Long referenceId : referenceIds) {
     referenceDAO.deleteById(referenceId);
   }
 }
Пример #5
0
 @Override
 public void registrationReference(Reference reference) {
   reference.setRegisteredDate(new Date());
   reference.setState(Reference.ReferenceState.REGISTERED);
   referenceDAO.saveOrUpdate(reference);
 }