@Transactional(propagation=SUPPORTS,
readOnly=true)
public interface ListService
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)
|
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. |
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.
|
@Transactional(propagation=REQUIRED, readOnly=false) IdentifiedList<T2Reference> registerList(List<T2Reference> items, ReferenceContext context) throws ListServiceException
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.
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.@Transactional(propagation=REQUIRED, readOnly=false) IdentifiedList<T2Reference> registerEmptyList(int depth, ReferenceContext context) throws ListServiceException
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.
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 argumentIdentifiedList<T2Reference> getList(T2Reference id) throws ListServiceException
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).void getListAsynch(T2Reference id, ListServiceCallback callback) throws ListServiceException
getList
but in
asynchronous mode, returning immediately and using the supplied callback
to communicate its results.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.@Transactional(propagation=SUPPORTS, readOnly=false) boolean delete(T2Reference reference) throws ReferenceServiceException
ReferenceServiceException
@Transactional(propagation=SUPPORTS, readOnly=false) void deleteIdentifiedListsForWorkflowRun(String workflowRunId) throws ReferenceServiceException
IdentifiedList
S used by the specific workflow run.ReferenceServiceException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.