it.eng.spagobi.tools.catalogue.dao
Class ArtifactsDAOImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.tools.catalogue.dao.ArtifactsDAOImpl
All Implemented Interfaces:
ISpagoBIDao, IArtifactsDAO

public class ArtifactsDAOImpl
extends AbstractHibernateDAO
implements IArtifactsDAO


Field Summary
 
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
TENANT_FILTER_NAME
 
Constructor Summary
ArtifactsDAOImpl()
           
 
Method Summary
 void eraseArtifact(java.lang.Integer artifactId)
           
 void eraseArtifactContent(java.lang.Integer contentId)
           
 void insertArtifact(Artifact artifact)
           
 void insertArtifactContent(java.lang.Integer artifactId, Content content)
           
 Content loadActiveArtifactContent(java.lang.Integer artifactId)
           
 java.util.List<Artifact> loadAllArtifacts(java.lang.String type)
           
 Artifact loadArtifactById(java.lang.Integer id)
           
 Artifact loadArtifactByNameAndType(java.lang.String name, java.lang.String type)
           
 Content loadArtifactContentById(java.lang.Integer contendId)
           
 java.util.List<Content> loadArtifactVersions(java.lang.Integer artifactId)
           
 void modifyArtifact(Artifact artifact)
           
 void setActiveVersion(java.lang.Integer artifactId, java.lang.Integer contentId)
           
 
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
 

Constructor Detail

ArtifactsDAOImpl

public ArtifactsDAOImpl()
Method Detail

loadArtifactById

public Artifact loadArtifactById(java.lang.Integer id)
Specified by:
loadArtifactById in interface IArtifactsDAO

loadArtifactByNameAndType

public Artifact loadArtifactByNameAndType(java.lang.String name,
                                          java.lang.String type)
Specified by:
loadArtifactByNameAndType in interface IArtifactsDAO

loadAllArtifacts

public java.util.List<Artifact> loadAllArtifacts(java.lang.String type)
Specified by:
loadAllArtifacts in interface IArtifactsDAO

modifyArtifact

public void modifyArtifact(Artifact artifact)
Specified by:
modifyArtifact in interface IArtifactsDAO

insertArtifact

public void insertArtifact(Artifact artifact)
Specified by:
insertArtifact in interface IArtifactsDAO

eraseArtifact

public void eraseArtifact(java.lang.Integer artifactId)
Specified by:
eraseArtifact in interface IArtifactsDAO

insertArtifactContent

public void insertArtifactContent(java.lang.Integer artifactId,
                                  Content content)
Specified by:
insertArtifactContent in interface IArtifactsDAO

eraseArtifactContent

public void eraseArtifactContent(java.lang.Integer contentId)
Specified by:
eraseArtifactContent in interface IArtifactsDAO

loadArtifactContentById

public Content loadArtifactContentById(java.lang.Integer contendId)
Specified by:
loadArtifactContentById in interface IArtifactsDAO

loadActiveArtifactContent

public Content loadActiveArtifactContent(java.lang.Integer artifactId)
Specified by:
loadActiveArtifactContent in interface IArtifactsDAO

loadArtifactVersions

public java.util.List<Content> loadArtifactVersions(java.lang.Integer artifactId)
Specified by:
loadArtifactVersions in interface IArtifactsDAO

setActiveVersion

public void setActiveVersion(java.lang.Integer artifactId,
                             java.lang.Integer contentId)
Specified by:
setActiveVersion in interface IArtifactsDAO