|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.engines.dossier.dao.DossierDAOHibImpl
public class DossierDAOHibImpl
IDossierDAO implementation using database and hibernate mapping
it.eng.spagobi.engines.dossier.dao.IDossierDAO
Field Summary | |
---|---|
static java.lang.String |
DOSSIER_CONF_FILE_NAME
|
static java.io.File |
tempBaseFolder
|
static java.lang.String |
TEMPLATE_FILE_NAME
|
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO |
---|
TENANT_FILTER_NAME |
Constructor Summary | |
---|---|
DossierDAOHibImpl()
|
Method Summary | |
---|---|
void |
addConfiguredDocument(ConfiguredBIDocument doc,
java.lang.String pathTempFolder)
Adds the configured document. |
void |
clean(java.lang.String pathTempFolder)
Clean. |
static void |
copyInputStream(java.io.InputStream in,
java.io.OutputStream out)
Copy input stream. |
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 class it.eng.spagobi.commons.dao.AbstractHibernateDAO |
---|
commitIfActiveAndClose, disableTenantFilter, enableTenantFilter, getSession, getTenant, getUserProfile, logException, rollbackIfActiveAndClose, setTenant, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao |
---|
getUserProfile, setTenant, setUserID, setUserProfile |
Field Detail |
---|
public static final java.lang.String TEMPLATE_FILE_NAME
public static final java.lang.String DOSSIER_CONF_FILE_NAME
public static java.io.File tempBaseFolder
Constructor Detail |
---|
public DossierDAOHibImpl()
Method Detail |
---|
public java.lang.String init(BIObject dossier)
IDossierDAO
init
in interface IDossierDAO
dossier
- the dossier
public void storeTemplate(java.lang.Integer dossierId, java.lang.String pathTempFolder)
IDossierDAO
storeTemplate
in interface IDossierDAO
dossierId
- the dossier idpathTempFolder
- the path temp folderpublic static final void copyInputStream(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- the inout
- the out
java.io.IOException
- Signals that an I/O exception has occurred.public void addConfiguredDocument(ConfiguredBIDocument doc, java.lang.String pathTempFolder)
IDossierDAO
addConfiguredDocument
in interface IDossierDAO
doc
- the docpathTempFolder
- the path temp folderpublic void deleteConfiguredDocument(java.lang.String docLogicalName, java.lang.String pathTempFolder)
IDossierDAO
deleteConfiguredDocument
in interface IDossierDAO
docLogicalName
- the doc logical namepathTempFolder
- the path temp folderpublic java.io.InputStream getProcessDefinitionContent(java.lang.String pathTempFolder)
IDossierDAO
getProcessDefinitionContent
in interface IDossierDAO
pathTempFolder
- the path temp folder
public java.lang.String getProcessDefinitionFileName(java.lang.String pathTempFolder)
IDossierDAO
getProcessDefinitionFileName
in interface IDossierDAO
pathTempFolder
- the path temp folder
public java.io.InputStream getPresentationTemplateContent(java.lang.String pathTempFolder)
IDossierDAO
getPresentationTemplateContent
in interface IDossierDAO
pathTempFolder
- the path temp folder
public java.lang.String getPresentationTemplateFileName(java.lang.String pathTempFolder)
IDossierDAO
getPresentationTemplateFileName
in interface IDossierDAO
pathTempFolder
- the path temp folder
public ConfiguredBIDocument getConfiguredDocument(java.lang.String docLogicalName, java.lang.String pathTempFolder)
IDossierDAO
getConfiguredDocument
in interface IDossierDAO
docLogicalName
- the doc logical namepathTempFolder
- the path temp folder
public java.util.List getConfiguredDocumentList(java.lang.String pathTempFolder)
IDossierDAO
getConfiguredDocumentList
in interface IDossierDAO
pathTempFolder
- the path temp folder
public void storeProcessDefinitionFile(java.lang.String pdFileName, byte[] pdFileContent, java.lang.String pathTempFolder)
IDossierDAO
storeProcessDefinitionFile
in interface IDossierDAO
pdFileName
- the pd file namepdFileContent
- the pd file contentpathTempFolder
- the path temp folderpublic void storePresentationTemplateFile(java.lang.String templateFileName, byte[] templateContent, java.lang.String pathTempFolder)
IDossierDAO
storePresentationTemplateFile
in interface IDossierDAO
templateFileName
- the template file nametemplateContent
- the template contentpathTempFolder
- the path temp folderpublic java.lang.Integer getDossierId(java.lang.String pathTempFolder)
IDossierDAO
getDossierId
in interface IDossierDAO
pathTempFolder
- the path temp folder
public void clean(java.lang.String pathTempFolder)
IDossierDAO
clean
in interface IDossierDAO
pathTempFolder
- the path temp folder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |