public void deleteErrorDocumentsForWorkflowRun(String workflowRunId) throws ReferenceServiceException { checkDao(); errorDao.deleteErrorDocumentsForWFRun(workflowRunId); }
ReferenceContext context) throws ErrorDocumentServiceException { context = EmptyReferenceContext.checkContext(context); checkDao(); checkGenerator(); T2Reference ref = getGenerator(context).nextErrorDocumentReference( depth); T2ReferenceImpl typedId = T2ReferenceImpl.getAsImpl(ref);
private static ReferenceService createReferenceService() { SimpleT2ReferenceGenerator referenceGenerator = new SimpleT2ReferenceGenerator(); ReferenceSetAugmentorImpl referenceSetAugmentor = new ReferenceSetAugmentorImpl(); referenceSetAugmentor.setBuilders((List<ExternalReferenceBuilderSPI<?>>) getBuilders()); referenceSetAugmentor.setTranslators(getTranslators()); ReferenceSetServiceImpl referenceSetService = new ReferenceSetServiceImpl(); referenceSetService.setT2ReferenceGenerator(referenceGenerator); referenceSetService.setReferenceSetDao(new InMemoryReferenceSetDao()); referenceSetService.setReferenceSetAugmentor(referenceSetAugmentor); ListServiceImpl listService = new ListServiceImpl(); listService.setT2ReferenceGenerator(referenceGenerator); listService.setListDao(new InMemoryListDao()); ErrorDocumentServiceImpl errorDocumentService = new ErrorDocumentServiceImpl(); errorDocumentService.setT2ReferenceGenerator(referenceGenerator); errorDocumentService.setErrorDao(new InMemoryErrorDocumentDao()); ReferenceServiceImpl referenceService = new ReferenceServiceImpl(); referenceService.setReferenceSetService(referenceSetService); referenceService.setListService(listService); referenceService.setErrorDocumentService(errorDocumentService); referenceService.setConverters(getConverters()); referenceService.setValueBuilders(getValueBuilders()); return referenceService; }
public ErrorDocument registerError(String message, Set<T2Reference> errors, int depth, ReferenceContext context) throws ErrorDocumentServiceException { checkDao(); checkGenerator(); context = EmptyReferenceContext.checkContext(context); T2Reference ref = getGenerator(context).nextErrorDocumentReference( depth); T2ReferenceImpl typedId = T2ReferenceImpl.getAsImpl(ref);
public ErrorDocument registerError(String message, Set<T2Reference> errors, int depth, ReferenceContext context) throws ErrorDocumentServiceException { checkDao(); checkGenerator();
public ErrorDocument getError(T2Reference id) throws ErrorDocumentServiceException { checkDao(); try { return errorDao.get(id); } catch (Throwable t) { throw new ErrorDocumentServiceException(t); } }
public ErrorDocument registerError(String message, Set<T2Reference> errors, int depth) throws ErrorDocumentServiceException { checkDao(); checkGenerator();
public ErrorDocument getError(T2Reference id) throws ErrorDocumentServiceException { checkDao(); try { return errorDao.get(id); } catch (Throwable t) { throw new ErrorDocumentServiceException(t); } }
public boolean delete(T2Reference reference) throws ReferenceServiceException { checkDao(); ErrorDocument doc = errorDao.get(reference); if (doc==null) return false; return errorDao.delete(doc); }
public ErrorDocument getError(T2Reference id) throws ErrorDocumentServiceException { checkDao(); try { return errorDao.get(id); } catch (Throwable t) { throw new ErrorDocumentServiceException(t); } }