public class ReferenceSetServiceImpl extends AbstractReferenceSetServiceImpl implements ReferenceSetService
|Constructor and Description|
|Modifier and Type||Method and Description|
checkAugmentor, checkDao, checkGenerator, getReferenceSetAsynch, getReferenceSetWithAugmentationAsynch, setReferenceSetAugmentor, setReferenceSetDao, setT2ReferenceGenerator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ReferenceSet getReferenceSet(T2Reference id) throws ReferenceSetServiceException
T2Reference. Note that this method blocks and may take some time to return in the case of distributed reference managers; if this is likely to be an issue then you should use the asynchronous form
getReferenceSetAsynchinstead of this method.
public ReferenceSet getReferenceSetWithAugmentation(T2Reference id, Set<Class<ExternalReferenceSPI>> ensureTypes, ReferenceContext context) throws ReferenceSetServiceException
getReferenceSetbut with the additional option to specify a set of
ExternalReferenceSPIclasses. The reference set manager will attempt to ensure that the returned
ReferenceSetcontains an instance of at least one of the specified classes. This method blocks, and may potentially incur both the remote lookup overhead of the simpler version of this call and any translation logic. It is strongly recommended that you do not use this version of the call and instead use the asynchronous form
If the translation logic cannot provide at least one of the required
types this call will fail, even if the
ReferenceSet requested is
ensureTypes- a set of
ExternalReferenceSPIclasses. The framework will attempt to ensure there is an instance of at least one of these classes in the returned
context- if translation of references is required the translation infrastructure will need information in this
If null the implementation should insert a new empty context and proceed.
public ReferenceSet registerReferenceSet(Set<ExternalReferenceSPI> references, ReferenceContext context) throws ReferenceSetServiceException
ExternalReferenceSPIinstances, all of which should point to byte equivalent data, and return the newly created
ReferenceSet. This method blocks on the underlying store, but guarantees that the returned value has been persisted.
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.
public boolean delete(T2Reference reference) throws ReferenceServiceException
public void deleteReferenceSetsForWorkflowRun(String workflowRunId) throws ReferenceServiceException
ReferenceSetS used by the specific workflow run.
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.