Esempio n. 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);
   }
 }
Esempio n. 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);
   }
 }
Esempio n. 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);
   }
 }
Esempio n. 4
0
 @Override
 public void registrationReference(Reference reference) {
   reference.setRegisteredDate(new Date());
   reference.setState(Reference.ReferenceState.REGISTERED);
   referenceDAO.saveOrUpdate(reference);
 }