Class RemoteIteratorWebService<WJ,WI,I extends InitialRemoteIteratorData<WI>,N extends RemoteIteratorData<WI>>
- java.lang.Object
-
- de.aristaflow.ilm.ws.base.service.AbstractSubResourceWebService<RemoteIteratorHandler<WI,I,N>>
-
- de.aristaflow.ilm.ws.model.common.collection.AddDataTransformatorRemoteIteratorWebService<WJ,WI,Object,I,N>
-
- de.aristaflow.ilm.ws.model.common.collection.RemoteIteratorWebService<WJ,WI,I,N>
-
- Direct Known Subclasses:
AsRemoteIteratorWebService
,ErrorDataRemoteIteratorWebService
,ExecHistEntryRemoteIteratorWebService
,IdUdtRemoteIteratorWebService
,InstIdRemoteIteratorWebService
,InstRefRemoteIteratorWebService
,InstRemoteIteratorWebService
,InstStatusRemoteIteratorWebService
,NamespaceRemoteIteratorWebService
,NonTransformingRemoteIteratorWebService
,NsRemoteIteratorWebService
,QaRemoteIteratorWebService
,RaRemoteIteratorWebService
,ResInstRemoteIteratorWebService
,ResRemoteIteratorWebService
,TemplIdRemoteIteratorWebService
,TemplKindRemoteIteratorWebService
,TemplRefRemoteIteratorWebService
,TemplRemoteIteratorWebService
,TemplStatusRemoteIteratorWebService
,WorkHistEntryRemoteIteratorWebService
public abstract class RemoteIteratorWebService<WJ,WI,I extends InitialRemoteIteratorData<WI>,N extends RemoteIteratorData<WI>> extends AddDataTransformatorRemoteIteratorWebService<WJ,WI,Object,I,N>
This remote iterator web service simplifiesAddDataTransformatorRemoteIteratorWebService
by avoiding the additional for the transformation. This allows for providing the transformation function in the constructor.- See Also:
RemoteIteratorHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected Function<WJ,WI>
transformator
The transformator function transforming the objects from one model to the other before retrieval.
-
Constructor Summary
Constructors Constructor Description RemoteIteratorWebService(Supplier<I> initDataCreator, Supplier<N> dataCreator, Function<WJ,WI> transformator, AbstractSubResourceWebService<?> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Function<WJ,WI>
getTransformator(Object addData)
Gets the transformator function for the elements of the remote iterator.I
init(RemoteIterator<List<WJ>> remIt, @Positive Integer count)
-
Methods inherited from class de.aristaflow.ilm.ws.model.common.collection.AddDataTransformatorRemoteIteratorWebService
close, getNext, getPrevious, init, keepAlive
-
Methods inherited from class de.aristaflow.ilm.ws.base.service.AbstractSubResourceWebService
getLogger, getLogService, getService, getServiceMetaData, getServiceUris, getSessionFactory, shutdown
-
-
-
-
Method Detail
-
getTransformator
protected Function<WJ,WI> getTransformator(Object addData)
Description copied from class:AddDataTransformatorRemoteIteratorWebService
Gets the transformator function for the elements of the remote iterator. This method will be called when initialising.- Specified by:
getTransformator
in classAddDataTransformatorRemoteIteratorWebService<WJ,WI,Object,I extends InitialRemoteIteratorData<WI>,N extends RemoteIteratorData<WI>>
- Parameters:
addData
- Additional data provided when initialising and required by the transformator function.- Returns:
- The transformator function for the elements of the remote iterator.
-
init
public I init(RemoteIterator<List<WJ>> remIt, @Positive @Positive Integer count) throws DataSourceException, DataConsistencyException
-
-