public abstract class AbstractReferenceServiceImpl extends AbstractServiceImpl implements ReferenceService
Modifier and Type | Field and Description |
---|---|
protected List<ValueToReferenceConverterSPI> |
converters |
protected ErrorDocumentService |
errorDocumentService |
protected ListService |
listService |
protected ReferenceSetService |
referenceSetService |
protected List<StreamToValueConverterSPI> |
valueBuilders |
Constructor and Description |
---|
AbstractReferenceServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkConverterRegistry()
Check whether the converter registry has been defined, throw a
ReferenceServiceException if not
|
protected void |
checkServices()
Throw a ReferenceServiceException if methods in ReferenceService are
called without the necessary sub-services configured.
|
ErrorDocumentService |
getErrorDocumentService()
Returns the
ErrorDocumentService this ReferenceService uses, use
this when you need functionality from that service explicitly. |
ListService |
getListService()
Returns the
ListService this ReferenceService uses, use this when
you need functionality from that service explicitly. |
ReferenceSetService |
getReferenceSetService()
Returns the
ReferenceSetService this ReferenceService uses, use
this when you need functionality from that service explicitly. |
void |
resolveIdentifierAsynch(T2Reference id,
Set<Class<ExternalReferenceSPI>> ensureTypes,
ReferenceContext context,
ReferenceServiceResolutionCallback callback)
Wraps the synchronous form, using the executeRunnable method to schedule
it.
|
void |
setConverters(List<ValueToReferenceConverterSPI> converters)
Inject value to reference convertor SPI
|
void |
setErrorDocumentService(ErrorDocumentService eds)
Inject error document service
|
void |
setListService(ListService ls)
Inject list service
|
void |
setReferenceSetService(ReferenceSetService rss)
Inject reference set service
|
void |
setValueBuilders(List<StreamToValueConverterSPI> valueBuilders)
Inject stream to value converter SPI
|
executeRunnable, makeExecutionThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, delete, deleteReferencesForWorkflowRun, referenceFromString, register, renderIdentifier, resolveIdentifier, traverseFrom
protected ErrorDocumentService errorDocumentService
protected ReferenceSetService referenceSetService
protected ListService listService
protected List<ValueToReferenceConverterSPI> converters
protected List<StreamToValueConverterSPI> valueBuilders
public final void setConverters(List<ValueToReferenceConverterSPI> converters)
public final void setValueBuilders(List<StreamToValueConverterSPI> valueBuilders)
public final void setErrorDocumentService(ErrorDocumentService eds)
public final void setReferenceSetService(ReferenceSetService rss)
public final void setListService(ListService ls)
protected final void checkServices() throws ReferenceServiceException
ReferenceServiceException
protected final void checkConverterRegistry() throws ReferenceServiceException
ReferenceServiceException
public final ErrorDocumentService getErrorDocumentService()
ReferenceService
ErrorDocumentService
this ReferenceService uses, use
this when you need functionality from that service explicitly.getErrorDocumentService
in interface ReferenceService
public final ListService getListService()
ReferenceService
ListService
this ReferenceService uses, use this when
you need functionality from that service explicitly.getListService
in interface ReferenceService
public final ReferenceSetService getReferenceSetService()
ReferenceService
ReferenceSetService
this ReferenceService uses, use
this when you need functionality from that service explicitly.getReferenceSetService
in interface ReferenceService
public void resolveIdentifierAsynch(T2Reference id, Set<Class<ExternalReferenceSPI>> ensureTypes, ReferenceContext context, ReferenceServiceResolutionCallback callback) throws ReferenceServiceException
resolveIdentifierAsynch
in interface ReferenceService
ReferenceServiceException
- if anything goes wrong with the setup of the resolution job.
Any exceptions during the resolution process itself are
communicated through the callback object.Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.