public class ListServiceImpl extends AbstractListServiceImpl implements ListService
listDao, t2ReferenceGenerator
Constructor and Description |
---|
ListServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(T2Reference reference) |
void |
deleteIdentifiedListsForWorkflowRun(String workflowRunId)
Delete all
IdentifiedList S used by the specific workflow run. |
IdentifiedList<T2Reference> |
getList(T2Reference id)
Retrieve a previously named and registered list of T2Reference instances
identified by the specified T2Reference (which must be of type
T2ReferenceType.IdentifiedList)
|
IdentifiedList<T2Reference> |
registerEmptyList(int depth,
ReferenceContext context)
Register a new empty list with the specified depth.
|
IdentifiedList<T2Reference> |
registerList(List<T2Reference> items,
ReferenceContext context)
Register a new list of T2References.
|
checkDao, checkGenerator, getListAsynch, setListDao, setT2ReferenceGenerator
executeRunnable, makeExecutionThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getListAsynch
public IdentifiedList<T2Reference> getList(T2Reference id) throws ListServiceException
ListService
getList
in interface ListService
id
- identifier of the list of reference to retrieveListServiceException
- if anything goes wrong with the retrieval process or if there
is something wrong with the reference (such as it being of
the wrong reference type).public IdentifiedList<T2Reference> registerEmptyList(int depth, ReferenceContext context) throws ListServiceException
ListService
The created references will be related with a workflow run id passed through ReferenceContext so we can track all data referenced by a specific run.
registerEmptyList
in interface ListService
depth
- the depth of the empty list, must be >=1ListServiceException
- if there is a problem with the storage subsystem or if called
with an invalid depth argumentpublic IdentifiedList<T2Reference> registerList(List<T2Reference> items, ReferenceContext context) throws ListServiceException
ListService
The created references will be related with a workflow run id passed through ReferenceContext so we can track all data referenced by a specific run.
registerList
in interface ListService
items
- the T2Reference instances to store as a list.ListServiceException
- if there is a problem either with the specified list of
references or with the storage subsystem.public boolean delete(T2Reference reference) throws ReferenceServiceException
delete
in interface ListService
ReferenceServiceException
public void deleteIdentifiedListsForWorkflowRun(String workflowRunId) throws ReferenceServiceException
ListService
IdentifiedList
S used by the specific workflow run.deleteIdentifiedListsForWorkflowRun
in interface ListService
ReferenceServiceException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.