umich.cac.queryengine
Interface LookupServiceEngine

All Known Implementing Classes:
LookupService, UrwgLookupService

public interface LookupServiceEngine

Interface that new report modules can implement to "plugin" to the report generating module. This allows any arbitrary data source to be used and can take advantage of the existing report infrastructure without modifying any code

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/darkslide/doc/javadoc/umich/cac/queryengine/LookupServiceEngine.html,v 1.1 2003/12/18 17:16:08 rodmach Exp $
Author:
rmach@umich.edu

Method Summary
 java.util.Map getUserData(java.util.Date startDate, java.util.Date endDate)
          Return a Map with key of username, and value of UserData for that user filled in with user statistics
 void setQueryEngine(QueryEngine queryEngine)
          Sets the engine to query used to fetch the user data
 

Method Detail

setQueryEngine

public void setQueryEngine(QueryEngine queryEngine)
Sets the engine to query used to fetch the user data

Parameters:
queryEngine - the QueryEngin to use for obtaining the user data

getUserData

public java.util.Map getUserData(java.util.Date startDate,
                                 java.util.Date endDate)
Return a Map with key of username, and value of UserData for that user filled in with user statistics

Parameters:
startDate - the start date for the jobs
endDate - the end date for the jobs
Returns:
Map with KEY: userName VALUE: UserData object filled in with user stats