it.eng.spagobi.engines.dossier.dao
Class DossierPartsTempDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.engines.dossier.dao.DossierPartsTempDAOHibImpl
All Implemented Interfaces:
ISpagoBIDao, IDossierPartsTempDAO

public class DossierPartsTempDAOHibImpl
extends AbstractHibernateDAO
implements IDossierPartsTempDAO

Author:
Zerbetto (davide.zerbetto@eng.it)

Field Summary
static java.lang.String IMAGE
           
static java.lang.String NOTE
           
 
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
TENANT_FILTER_NAME
 
Constructor Summary
DossierPartsTempDAOHibImpl()
           
 
Method Summary
 void cleanDossierParts(java.lang.Integer dossierId, java.lang.Long workflowProcessId)
          Erases the dossier temporary parts for the process specified at input.
 void eraseDossierParts(java.lang.Integer dossierId)
          Erases the dossier temporary parts for all the processes that involve the dossier specified at input.
 java.util.Map getImagesOfDossierPart(java.lang.Integer dossierId, int pageNum, java.lang.Long workflowProcessId)
          Gets the images of dossier part.
 byte[] getNotesOfDossierPart(java.lang.Integer dossierId, int pageNum, java.lang.Long workflowProcessId)
          Gets the notes of dossier part.
 void storeImage(java.lang.Integer dossierId, byte[] image, java.lang.String docLogicalName, int pageNum, java.lang.Long workflowProcessId)
          Store image.
 void storeNote(java.lang.Integer dossierId, int pageNum, byte[] noteContent, java.lang.Long workflowProcessId)
          Store note.
 
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

IMAGE

public static final java.lang.String IMAGE
See Also:
Constant Field Values

NOTE

public static final java.lang.String NOTE
See Also:
Constant Field Values
Constructor Detail

DossierPartsTempDAOHibImpl

public DossierPartsTempDAOHibImpl()
Method Detail

getImagesOfDossierPart

public java.util.Map getImagesOfDossierPart(java.lang.Integer dossierId,
                                            int pageNum,
                                            java.lang.Long workflowProcessId)
                                     throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPartsTempDAO
Gets the images of dossier part.

Specified by:
getImagesOfDossierPart in interface IDossierPartsTempDAO
Parameters:
dossierId - the dossier id
pageNum - the page num
workflowProcessId - the workflow process id
Returns:
the images of dossier part
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

storeNote

public void storeNote(java.lang.Integer dossierId,
                      int pageNum,
                      byte[] noteContent,
                      java.lang.Long workflowProcessId)
               throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPartsTempDAO
Store note.

Specified by:
storeNote in interface IDossierPartsTempDAO
Parameters:
dossierId - the dossier id
pageNum - the page num
noteContent - the note content
workflowProcessId - the workflow process id
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

storeImage

public void storeImage(java.lang.Integer dossierId,
                       byte[] image,
                       java.lang.String docLogicalName,
                       int pageNum,
                       java.lang.Long workflowProcessId)
                throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPartsTempDAO
Store image.

Specified by:
storeImage in interface IDossierPartsTempDAO
Parameters:
dossierId - the dossier id
image - the image
docLogicalName - the doc logical name
pageNum - the page num
workflowProcessId - the workflow process id
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getNotesOfDossierPart

public byte[] getNotesOfDossierPart(java.lang.Integer dossierId,
                                    int pageNum,
                                    java.lang.Long workflowProcessId)
                             throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPartsTempDAO
Gets the notes of dossier part.

Specified by:
getNotesOfDossierPart in interface IDossierPartsTempDAO
Parameters:
dossierId - the dossier id
pageNum - the page num
workflowProcessId - the workflow process id
Returns:
the notes of dossier part
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

cleanDossierParts

public void cleanDossierParts(java.lang.Integer dossierId,
                              java.lang.Long workflowProcessId)
                       throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPartsTempDAO
Erases the dossier temporary parts for the process specified at input.

Specified by:
cleanDossierParts in interface IDossierPartsTempDAO
Parameters:
dossierId - The id of the dossier
workflowProcessId - The id of the process
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

eraseDossierParts

public void eraseDossierParts(java.lang.Integer dossierId)
                       throws it.eng.spago.error.EMFInternalError
Description copied from interface: IDossierPartsTempDAO
Erases the dossier temporary parts for all the processes that involve the dossier specified at input.

Specified by:
eraseDossierParts in interface IDossierPartsTempDAO
Parameters:
dossierId - The dossier id
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error