|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDossierDAO
Defines all the methods needed for access contents of dossier template.
Dossier template is a zip file containing the presentation template (.ppt),
the process definition file (.xml file) and dossier configuration file (.sbidossier file).
The first operation you must perform is to unzipped the template using the init
method:
this method returns the path of the temporary folder where template was unzipped:
this path is built as BASE_TEMP_FOLDER + DOSSIER_ID + UUID where:
BASE_TEMP_FOLDER is the temporary base folder configured in dossier.xml;
DOSSIER_ID is the document id;
UUID is a time based random string.
You have to keep this path in order to invoke other methods (those methods work on this folder).
The storeTemplate
method builds the new zip template file and saves it into the database.
Then you can invoke clean
method in order to delete temporary folder.
Method Summary | |
---|---|
void |
addConfiguredDocument(ConfiguredBIDocument doc,
java.lang.String pathTempFolder)
Adds the configured document. |
void |
clean(java.lang.String pathTempFolder)
Clean. |
void |
deleteConfiguredDocument(java.lang.String docLogicalName,
java.lang.String pathTempFolder)
Delete configured document. |
ConfiguredBIDocument |
getConfiguredDocument(java.lang.String docLogicalName,
java.lang.String pathTempFolder)
Gets the configured document. |
java.util.List |
getConfiguredDocumentList(java.lang.String pathTempFolder)
Gets the configured document list. |
java.lang.Integer |
getDossierId(java.lang.String pathTempFolder)
Gets the dossier id. |
java.io.InputStream |
getPresentationTemplateContent(java.lang.String pathTempFolder)
Gets the presentation template content. |
java.lang.String |
getPresentationTemplateFileName(java.lang.String pathTempFolder)
Gets the presentation template file name. |
java.io.InputStream |
getProcessDefinitionContent(java.lang.String pathTempFolder)
Gets the process definition content. |
java.lang.String |
getProcessDefinitionFileName(java.lang.String pathTempFolder)
Gets the process definition file name. |
java.lang.String |
init(BIObject dossier)
Inits the. |
void |
storePresentationTemplateFile(java.lang.String templateFileName,
byte[] templateContent,
java.lang.String pathTempFolder)
Store presentation template file. |
void |
storeProcessDefinitionFile(java.lang.String pdFileName,
byte[] pdFileContent,
java.lang.String pathTempFolder)
Store process definition file. |
void |
storeTemplate(java.lang.Integer dossierId,
java.lang.String pathTempFolder)
Store template. |
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao |
---|
getUserProfile, setUserID, setUserProfile |
Method Detail |
---|
java.lang.String init(BIObject dossier)
dossier
- the dossier
void clean(java.lang.String pathTempFolder)
pathTempFolder
- the path temp foldervoid storeTemplate(java.lang.Integer dossierId, java.lang.String pathTempFolder)
dossierId
- the dossier idpathTempFolder
- the path temp folderjava.lang.Integer getDossierId(java.lang.String pathTempFolder)
pathTempFolder
- the path temp folder
java.util.List getConfiguredDocumentList(java.lang.String pathTempFolder)
pathTempFolder
- the path temp folder
void addConfiguredDocument(ConfiguredBIDocument doc, java.lang.String pathTempFolder)
doc
- the docpathTempFolder
- the path temp foldervoid deleteConfiguredDocument(java.lang.String docLogicalName, java.lang.String pathTempFolder)
docLogicalName
- the doc logical namepathTempFolder
- the path temp folderConfiguredBIDocument getConfiguredDocument(java.lang.String docLogicalName, java.lang.String pathTempFolder)
docLogicalName
- the doc logical namepathTempFolder
- the path temp folder
void storePresentationTemplateFile(java.lang.String templateFileName, byte[] templateContent, java.lang.String pathTempFolder)
templateFileName
- the template file nametemplateContent
- the template contentpathTempFolder
- the path temp folderjava.lang.String getPresentationTemplateFileName(java.lang.String pathTempFolder)
pathTempFolder
- the path temp folder
java.io.InputStream getPresentationTemplateContent(java.lang.String pathTempFolder)
pathTempFolder
- the path temp folder
void storeProcessDefinitionFile(java.lang.String pdFileName, byte[] pdFileContent, java.lang.String pathTempFolder)
pdFileName
- the pd file namepdFileContent
- the pd file contentpathTempFolder
- the path temp folderjava.lang.String getProcessDefinitionFileName(java.lang.String pathTempFolder)
pathTempFolder
- the path temp folder
java.io.InputStream getProcessDefinitionContent(java.lang.String pathTempFolder)
pathTempFolder
- the path temp folder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |