public abstract class AbstractListServiceImpl extends AbstractServiceImpl implements ListService
Modifier and Type | Field and Description |
---|---|
protected ListDao |
listDao |
protected T2ReferenceGenerator |
t2ReferenceGenerator |
Constructor and Description |
---|
AbstractListServiceImpl() |
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 |
getListAsynch(T2Reference id,
ListServiceCallback callback)
Functionality the same as
getList but in
asynchronous mode, returning immediately and using the supplied callback
to communicate its results. |
void |
setListDao(ListDao dao)
Inject the list data access object.
|
void |
setT2ReferenceGenerator(T2ReferenceGenerator t2rg)
Inject the T2Reference generator used to allocate new IDs when
registering lists of T2Reference
|
executeRunnable, makeExecutionThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, deleteIdentifiedListsForWorkflowRun, getList, registerEmptyList, registerList
protected ListDao listDao
protected T2ReferenceGenerator t2ReferenceGenerator
public final void setListDao(ListDao dao)
public final void setT2ReferenceGenerator(T2ReferenceGenerator t2rg)
protected final void checkDao() throws ListServiceException
ListServiceException
- if the dao is still nullprotected final void checkGenerator() throws ListServiceException
ListServiceException
- if the generator is still nullpublic final void getListAsynch(T2Reference id, ListServiceCallback callback) throws ListServiceException
ListService
getList
but in
asynchronous mode, returning immediately and using the supplied callback
to communicate its results.getListAsynch
in interface ListService
id
- a T2Reference
identifying an IdentifiedList
to
retrievecallback
- a ListServiceCallback
used to convey the results of
the asynchronous callListServiceException
- 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.