<< Click to Display Table of Contents >>

Module

This class provides methods related to the data module processing function of OZ Server.


Constructor Detail

Module

public Module(String url, String id, String pw, boolean bAutoLogin, boolean useUSL)

Performs OZ Data Module related functions.

Parameters:

url - URL of OZ Server

id - User ID

pw - User Password

bAutoLogin - Whether to use the AutoLogin

useUSL - Whether to use the USL


Method Detail

addODIParameter

public void addODIParameter(String odiName, String key, String value)

Configures the ODI parameter values to create SDM files. Default ODI parameter values will be used if not configured.

Parameters:

odiName - ODI name

key - ODI parameter name

value - ODI parameter value

addODIParameter

public void addODIParameter(String odiName, String item, String category, Hashtable paramHash) throws IllegalArgumentException

Configures the ODI parameter values to create SDM files. Default ODI parameter values will be used if not configured. Used when creating SDM generation units for each parameter and when each different SDM file is needed depending on the ODI parameter values.

Parameters:

odiName - ODI name set in the Designer

item - ODI file name

category - ODI file path

paramHash - Hashtable where the parameter keys and values are set.

addParameter

public void addParameter(String key, String value)

Configures form parameter values to create SDM files. Default form parameter values will be used if not configured.

Parameters:

key - Form Parameter Name

value - Form Parameter Value

addReport

public IReportInfo addReport(String itemName, String categoryName) throws OZCPException

Adds reports in the process of making multiple reports into one OZD file.

Parameters:

itemName - Item name where reports will be added

categoryName - Category name of the item where reports will be added

addReport

public IReportInfo addReport(String itemName, String categoryName, String displayName) throws OZCPException

Adds reports in the process of making multiple reports into one OZD file.

Parameters:

itemName - Item name where reports will be added

categoryName - Category name of the item where reports will be added

displayName - Report name to appear in the report tree of the OZ Viewer

getODIParameter

public OZParameter[] getODIParameter(String category, String odiName) throws OZCPException

Gets ODI parameter from ODI

Parameters:

category - Category name

odiName - ODI name

getOZD

public InputStream getOZD() throws OZCPException

Create an OZD with multiple reports and gets its Input Stream.

getOZD

public InputStream getOZD(String item, String category, String[] urls)  throws OZCPException

The first type function is a function that gets a report file from the server to create an OZD file.

Parameters:

item - Item name(OZR file name)

category - Category name

urls - The URL of the image file to save together with the OZD

getOZQReportParameter

public OZODIItem[] getOZQReportParameter(String category, String ozqItemName) throws OZCPException

Gets ODI parameter from OZ Query Designer.

Parameters:

category - Category name

ozqItemName - ODI name

getOZReportParameter

public OZReportParameter getOZReportParameter(String category, String reportName) throws OZCPException

Gets ODI parameter and form parameter from report.

Parameters:

category - Category name

reportName - Report name

getOZReportDataSetInfo

public OZDataSetInfo[] getOZReportDataSetInfo(String category, String reportName) throws OZCPException

Gets the dataset information in the report. Returns in the order they are added to the data tree.

Parameters:

category - Category name

reportName - Report name

registODIPath

public void registODIPath(String odiName, String path) throws IllegalArgumentException

Registers an ODI file to dynamically change when creating an OZD.

Parameters:

odiName - ODI name

path - ODI file path

saveOZD

public void saveOZD(String fileName) throws OZCPException

Creates an OZD with multiple reports and saves it in a specific path.

Parameters:

fileName - Category path where the file will be saved and file name

saveOZD

public void saveOZD(String fileName, String item, String category, String[] urls) throws OZCPException

Saves a report file as OZD file.

Parameters:

fileName - OZD file name including the save path

item - Report file(.ozr) name

category - Category name of the report file(.ozr)

urls - URL of the image file to save together with the OZD file

setMemoAllowed

public void setMemoAllowed(boolean allowed)

Sets whether to allow memo or not.

Parameters:

allowed - True or false

setPassword

public void setPassword(String password)

Set password.

Parameters:

password - Password