public abstract class AbstractErrorDocumentServiceImpl extends AbstractServiceImpl implements ErrorDocumentService
Modifier and Type | Field and Description |
---|---|
protected ErrorDocumentDao |
errorDao |
protected T2ReferenceGenerator |
t2ReferenceGenerator |
Constructor and Description |
---|
AbstractErrorDocumentServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDao()
Check that the list dao is configured
|
protected void |
checkGenerator()
Check that the t2reference generator is configured
|
void |
getErrorAsynch(T2Reference id,
ErrorDocumentServiceCallback callback)
Functionality the same as
getError but in
asynchronous mode, returning immediately and using the supplied callback
to communicate its results. |
ErrorDocument |
registerError(String message,
int depth,
ReferenceContext context)
Equivalent to
registerError(message, null, depth, context) . |
ErrorDocument |
registerError(Throwable t,
int depth,
ReferenceContext context)
Equivalent to
registerError("", t, depth, context) . |
void |
setErrorDao(ErrorDocumentDao dao)
Inject the error document data access object.
|
void |
setT2ReferenceGenerator(T2ReferenceGenerator t2rg)
Inject the T2Reference generator used to allocate new IDs when
registering ErrorDocuments
|
executeRunnable, makeExecutionThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, deleteErrorDocumentsForWorkflowRun, getChild, getError, registerError, registerError
protected ErrorDocumentDao errorDao
protected T2ReferenceGenerator t2ReferenceGenerator
public final void setErrorDao(ErrorDocumentDao dao)
public final void setT2ReferenceGenerator(T2ReferenceGenerator t2rg)
protected final void checkDao() throws ErrorDocumentServiceException
ListServiceException
- if the dao is still nullErrorDocumentServiceException
protected final void checkGenerator() throws ErrorDocumentServiceException
ListServiceException
- if the generator is still nullErrorDocumentServiceException
public final void getErrorAsynch(T2Reference id, ErrorDocumentServiceCallback callback) throws ErrorDocumentServiceException
ErrorDocumentService
getError
but in
asynchronous mode, returning immediately and using the supplied callback
to communicate its results.getErrorAsynch
in interface ErrorDocumentService
id
- a T2Reference
identifying an ErrorDocument
to
retrievecallback
- a ErrorDocumentServiceCallback
used to convey the
results of the asynchronous callErrorDocumentServiceException
- if the reference set service is not correctly configured.
Exceptions encountered when performing the asynchronous call
are not returned here, for obvious reasons, and are instead
messaged through the callback interface.public final ErrorDocument registerError(String message, int depth, ReferenceContext context) throws ErrorDocumentServiceException
ErrorDocumentService
registerError(message, null, depth, context)
.registerError
in interface ErrorDocumentService
ErrorDocumentServiceException
public final ErrorDocument registerError(Throwable t, int depth, ReferenceContext context) throws ErrorDocumentServiceException
ErrorDocumentService
registerError("", t, depth, context)
.registerError
in interface ErrorDocumentService
ErrorDocumentServiceException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.