com.aurel.track.report.datasource.accounting
Class AccountingDatasourceBase

java.lang.Object
  extended by com.aurel.track.report.datasource.accounting.AccountingDatasourceBase
All Implemented Interfaces:
IPluggableDatasouce
Direct Known Subclasses:
PersPrjAccSum, PrjCcAccPersSum, PrjDateAccPersDetail

public abstract class AccountingDatasourceBase
extends java.lang.Object
implements IPluggableDatasouce


Nested Class Summary
protected static class AccountingDatasourceBase.AccountigReports
          The defined operation modes 0 - overview of own costs 1 - overview of all costs
protected static class AccountingDatasourceBase.OperationMode
          The defined operation modes 0 - overview of own costs 1 - overview of all costs
protected static interface AccountingDatasourceBase.PARAMETER_NAME
           
protected static class AccountingDatasourceBase.TimeInterval
          The defined time intervals
 
Constructor Summary
AccountingDatasourceBase()
           
 
Method Summary
protected  AccountingReportConfigStruct getConfigData(java.util.Map parameters, java.lang.Integer userID)
          Get
 boolean implementSerialization()
          Whether the getSerializedDatasource(OutputStream outputStream, Object datasource) returns null or not
protected  java.util.Map loadParametersBeforeExecute(java.util.Map parameters, java.lang.Integer personID)
          Prepares the lists before execute because they might be needed by filtering the data
 java.util.Map prepareParameters(java.util.Map parameters, DatasourceDescriptor datasourceDescriptor, java.lang.Integer personID, java.util.Locale locale)
          Prepares the parameters map: 1.
 void serializeDatasource(java.io.OutputStream outputStream, java.lang.Object datasource)
          Serializes the raw data source object into an OutputStream (typically an XML file) - For jar templates (freemarker) it might be not needed to serialize the datasource object because it is a proprietary object built specifically for the template - For zip templates (jasper, fop, etc.) it is typically needed to take the serialized raw datasource as a file and use it as data source by editing the template file using a template editing tool If the serialized raw data is not needed then just return null, but then implementSerialization() should also return false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aurel.track.report.datasource.IPluggableDatasouce
getDatasource
 

Constructor Detail

AccountingDatasourceBase

public AccountingDatasourceBase()
Method Detail

prepareParameters

public java.util.Map prepareParameters(java.util.Map parameters,
                                       DatasourceDescriptor datasourceDescriptor,
                                       java.lang.Integer personID,
                                       java.util.Locale locale)
Prepares the parameters map: 1. for first rendering 2. after each submit which needs re-rendering of the configuration page (for example refreshing some lists etc., typically using a hidden field set through javascript before submit) 3. after the submit for getting the datasource or generating the report

Specified by:
prepareParameters in interface IPluggableDatasouce
Returns:

serializeDatasource

public void serializeDatasource(java.io.OutputStream outputStream,
                                java.lang.Object datasource)
Description copied from interface: IPluggableDatasouce
Serializes the raw data source object into an OutputStream (typically an XML file) - For jar templates (freemarker) it might be not needed to serialize the datasource object because it is a proprietary object built specifically for the template - For zip templates (jasper, fop, etc.) it is typically needed to take the serialized raw datasource as a file and use it as data source by editing the template file using a template editing tool If the serialized raw data is not needed then just return null, but then implementSerialization() should also return false

Specified by:
serializeDatasource in interface IPluggableDatasouce
Parameters:
outputStream - typically the OutputStream of the HttpResponse object
datasource - typically DOM Document object or any other proprietary object

implementSerialization

public boolean implementSerialization()
Description copied from interface: IPluggableDatasouce
Whether the getSerializedDatasource(OutputStream outputStream, Object datasource) returns null or not

Specified by:
implementSerialization in interface IPluggableDatasouce
Returns:

getConfigData

protected AccountingReportConfigStruct getConfigData(java.util.Map parameters,
                                                     java.lang.Integer userID)
Get

Parameters:
parameters -
userID -
Returns:

loadParametersBeforeExecute

protected java.util.Map loadParametersBeforeExecute(java.util.Map parameters,
                                                    java.lang.Integer personID)
Prepares the lists before execute because they might be needed by filtering the data

Parameters:
parameters -
personID -
Returns:


Issue Tracking with Track+: Home Page      Copyright © 2008 Trackplus. All Rights Reserved.