com.trendmicro.grid.acl.ds.jpa
Class ReceivedSourcesHandler

java.lang.Object
  extended by com.trendmicro.grid.acl.ds.jpa.AbstractReceivedResultsHandler<Collection<List<JpaSource>>>
      extended by com.trendmicro.grid.acl.ds.jpa.ReceivedSourcesHandler

public class ReceivedSourcesHandler
extends AbstractReceivedResultsHandler<Collection<List<JpaSource>>>

Implements a handler for syncing source entries contained in processing results.

Creates corresponding collections of source references that can be used to assign them to the package members.

Version:
1.0
Author:
juergen_kellerer, 2010-11-22

Nested Class Summary
 
Nested classes/interfaces inherited from class com.trendmicro.grid.acl.ds.jpa.AbstractReceivedResultsHandler
AbstractReceivedResultsHandler.StorageContext
 
Constructor Summary
ReceivedSourcesHandler(JpaSourceRepository sourceRepository)
          Creates a thread safe instance.
 
Method Summary
 JpaSourceRepository getSourceRepository()
           
protected  Collection<List<JpaSource>> handle(AbstractReceivedResultsHandler.StorageContext context)
          Creates a corresponding collection of source references that can be used to assign them to files.
 
Methods inherited from class com.trendmicro.grid.acl.ds.jpa.AbstractReceivedResultsHandler
getValue, isAfter, isNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceivedSourcesHandler

public ReceivedSourcesHandler(JpaSourceRepository sourceRepository)
Creates a thread safe instance.

Parameters:
sourceRepository - the SourceRepository to use.
Method Detail

getSourceRepository

public JpaSourceRepository getSourceRepository()

handle

protected Collection<List<JpaSource>> handle(AbstractReceivedResultsHandler.StorageContext context)
Creates a corresponding collection of source references that can be used to assign them to files.

Specified by:
handle in class AbstractReceivedResultsHandler<Collection<List<JpaSource>>>
Parameters:
context - the data set to handle.
Returns:
a corresponding collection of source references.