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

All Known Implementing Classes:
DossierPresentationsDAOHibImpl

public interface IDossierPresentationsDAO

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

Method Summary
 void deletePresentations(java.lang.Integer dossierId)
          Delete presentations.
 void deletePresentationVersion(java.lang.Integer dossierId, java.lang.Integer versionId)
          Delete presentation version.
 DossierPresentation getCurrentPresentation(java.lang.Integer dossierId, java.lang.Long workflowProcessId)
          Gets the current presentation.
 java.lang.Integer getNextProg(java.lang.Integer dossierId)
          Gets the next prog.
 byte[] getPresentationVersionContent(java.lang.Integer dossierId, java.lang.Integer versionId)
          Gets the presentation version content.
 java.util.List getPresentationVersions(java.lang.Integer dossierId)
          Gets the presentation versions.
 void insertPresentation(DossierPresentation dossierPresentation)
          Insert presentation.
 void updatePresentation(DossierPresentation dossierPresentation)
          Update presentation.
 

Method Detail

getPresentationVersionContent

byte[] getPresentationVersionContent(java.lang.Integer dossierId,
                                     java.lang.Integer versionId)
                                     throws it.eng.spago.error.EMFInternalError
Gets the presentation version content.

Parameters:
dossierId - the dossier id
versionId - the version id
Returns:
the presentation version content
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getPresentationVersions

java.util.List getPresentationVersions(java.lang.Integer dossierId)
                                       throws it.eng.spago.error.EMFInternalError
Gets the presentation versions.

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

deletePresentationVersion

void deletePresentationVersion(java.lang.Integer dossierId,
                               java.lang.Integer versionId)
                               throws it.eng.spago.error.EMFInternalError
Delete presentation version.

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

deletePresentations

void deletePresentations(java.lang.Integer dossierId)
                         throws it.eng.spago.error.EMFInternalError
Delete presentations.

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

insertPresentation

void insertPresentation(DossierPresentation dossierPresentation)
                        throws it.eng.spago.error.EMFUserError,
                               it.eng.spago.error.EMFInternalError
Insert presentation.

Parameters:
dossierPresentation - the dossier presentation
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
it.eng.spago.error.EMFInternalError - the EMF internal error

updatePresentation

void updatePresentation(DossierPresentation dossierPresentation)
                        throws it.eng.spago.error.EMFInternalError
Update presentation.

Parameters:
dossierPresentation - the dossier presentation
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getCurrentPresentation

DossierPresentation getCurrentPresentation(java.lang.Integer dossierId,
                                           java.lang.Long workflowProcessId)
                                           throws it.eng.spago.error.EMFInternalError
Gets the current presentation.

Parameters:
dossierId - the dossier id
workflowProcessId - the workflow process id
Returns:
the current presentation
Throws:
it.eng.spago.error.EMFInternalError - the EMF internal error

getNextProg

java.lang.Integer getNextProg(java.lang.Integer dossierId)
                              throws it.eng.spago.error.EMFInternalError
Gets the next prog.

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