public abstract class AbstractReferenceSetServiceImpl extends AbstractServiceImpl implements ReferenceSetService
Modifier and Type | Field and Description |
---|---|
protected ReferenceSetAugmentor |
referenceSetAugmentor |
protected ReferenceSetDao |
referenceSetDao |
protected T2ReferenceGenerator |
t2ReferenceGenerator |
Constructor and Description |
---|
AbstractReferenceSetServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAugmentor()
Check that the reference set augmentor is configured
|
protected void |
checkDao()
Check that the reference set dao is configured
|
protected void |
checkGenerator()
Check that the t2reference generator is configured
|
void |
getReferenceSetAsynch(T2Reference id,
ReferenceSetServiceCallback callback)
Functionality the same as
getReferenceSet but in asynchronous mode, returning immediately and
using the supplied callback to communicate its results. |
void |
getReferenceSetWithAugmentationAsynch(T2Reference id,
Set<Class<ExternalReferenceSPI>> ensureTypes,
ReferenceContext context,
ReferenceSetServiceCallback callback)
Functionality as
getReferenceSetWithAugmentation but with the addition of a callback
interface to report the result or failure of the method. |
void |
setReferenceSetAugmentor(ReferenceSetAugmentor rse)
Inject the ReferenceSetAugmentor used to translate or construct new
ExternalReferenceSPI instances within a ReferenceSet
|
void |
setReferenceSetDao(ReferenceSetDao dao)
Inject the reference set data access object.
|
void |
setT2ReferenceGenerator(T2ReferenceGenerator t2rg)
Inject the T2Reference generator used to allocate new IDs when
registering sets of ExternalReferenceSPI
|
executeRunnable, makeExecutionThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, deleteReferenceSetsForWorkflowRun, getReferenceSet, getReferenceSetWithAugmentation, registerReferenceSet
protected ReferenceSetDao referenceSetDao
protected T2ReferenceGenerator t2ReferenceGenerator
protected ReferenceSetAugmentor referenceSetAugmentor
public final void setReferenceSetDao(ReferenceSetDao dao)
public final void setT2ReferenceGenerator(T2ReferenceGenerator t2rg)
public final void setReferenceSetAugmentor(ReferenceSetAugmentor rse)
protected final void checkDao() throws ReferenceSetServiceException
ReferenceSetServiceException
- if the dao is still nullprotected final void checkGenerator() throws ReferenceSetServiceException
ReferenceSetServiceException
- if the generator is still nullprotected final void checkAugmentor() throws ReferenceSetServiceException
ReferenceSetServiceException
- if the reference set augmentor is still nullpublic final void getReferenceSetAsynch(T2Reference id, ReferenceSetServiceCallback callback) throws ReferenceSetServiceException
ReferenceSetService
getReferenceSet
but in asynchronous mode, returning immediately and
using the supplied callback to communicate its results.getReferenceSetAsynch
in interface ReferenceSetService
id
- a T2Reference
identifying a ReferenceSet
to
retrievecallback
- a ReferenceSetServiceCallback
used to convey the
results of the asynchronous callReferenceSetServiceException
- 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 void getReferenceSetWithAugmentationAsynch(T2Reference id, Set<Class<ExternalReferenceSPI>> ensureTypes, ReferenceContext context, ReferenceSetServiceCallback callback) throws ReferenceSetServiceException
getReferenceSetWithAugmentation
but with the addition of a callback
interface to report the result or failure of the method.getReferenceSetWithAugmentationAsynch
in interface ReferenceSetService
id
- a T2Reference
identifying a ReferenceSet
to
retrieveensureTypes
- a set of ExternalReferenceSPI
classes. The framework
will attempt to ensure there is an instance of at least one of
these classes in the returned ReferenceSet
context
- if translation of references is required the translation
infrastructure will need information in this
ReferenceContext
parameter.
If null the implementation should insert a new empty context and proceed.
callback
- a ReferenceSetServiceCallback
used to convey the
results of the asynchronous call *ReferenceSetServiceException
- 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.Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.