it.eng.spagobi.engines.dossier.dao
Interface IDossierPartsTempDAO

All Superinterfaces:
ISpagoBIDao
All Known Implementing Classes:
DossierPartsTempDAOHibImpl

public interface IDossierPartsTempDAO
extends ISpagoBIDao

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

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 interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setUserID, setUserProfile
 

Method Detail

storeImage

void storeImage(java.lang.Integer dossierId,
                byte[] image,
                java.lang.String docLogicalName,
                int pageNum,
                java.lang.Long workflowProcessId)
                throws it.eng.spago.error.EMFInternalError
Store image.

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

getImagesOfDossierPart

java.util.Map getImagesOfDossierPart(java.lang.Integer dossierId,
                                     int pageNum,
                                     java.lang.Long workflowProcessId)
                                     throws it.eng.spago.error.EMFInternalError
Gets the images of dossier part.

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

getNotesOfDossierPart

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

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

storeNote

void storeNote(java.lang.Integer dossierId,
               int pageNum,
               byte[] noteContent,
               java.lang.Long workflowProcessId)
               throws it.eng.spago.error.EMFInternalError
Store note.

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

cleanDossierParts

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

Parameters:
dossierId - The id of the dossier
workflowProcessId - The id of the process
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

eraseDossierParts

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

Parameters:
dossierId - The dossier id
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error