it.eng.spagobi.analiticalmodel.document.dao
Class SubObjectDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.analiticalmodel.document.dao.SubObjectDAOHibImpl
All Implemented Interfaces:
ISubObjectDAO, ISpagoBIDao

public class SubObjectDAOHibImpl
extends AbstractHibernateDAO
implements ISubObjectDAO


Field Summary
 
Fields inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
TENANT_FILTER_NAME
 
Constructor Summary
SubObjectDAOHibImpl()
           
 
Method Summary
 void deleteSubObject(java.lang.Integer idSub)
          Delete a subObject.
 void deleteSubObjectSameConnection(java.lang.Integer idSub, org.hibernate.Session aSession)
          Delete a subObject mantaining the previous connection.
 java.util.List getAccessibleSubObjects(java.lang.Integer idBIObj, it.eng.spago.security.IEngUserProfile profile)
          Gets the detail of all the subobjects accessible to the user.
 java.util.List getPublicSubObjects(java.lang.Integer idBIObj)
          Gets the detail of all the public biobject subobjects.
 SubObject getSubObject(java.lang.Integer idSubObj)
          Gets the InputStream of the subobjects content.
 SubObject getSubObjectByNameAndBIObjectId(java.lang.String subobjectName, java.lang.Integer idBIObj)
          Gets the subobject specified by its name and document id in input
 java.util.List getSubObjects(java.lang.Integer idBIObj)
          Gets the detail of all the biobject subobjects.
 java.lang.Integer modifySubObject(java.lang.Integer idBIObj, SubObject subObj)
          Modify a subObject of the object.
 java.lang.Integer saveSubObject(java.lang.Integer idBIObj, SubObject subObj)
          Save a subObject of the object.
 
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

SubObjectDAOHibImpl

public SubObjectDAOHibImpl()
Method Detail

getAccessibleSubObjects

public java.util.List getAccessibleSubObjects(java.lang.Integer idBIObj,
                                              it.eng.spago.security.IEngUserProfile profile)
                                       throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubObjectDAO
Gets the detail of all the subobjects accessible to the user.

Specified by:
getAccessibleSubObjects in interface ISubObjectDAO
Parameters:
idBIObj - the id of the biobject parent
profile - Profile of the user
Returns:
List of SubObject objects
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getPublicSubObjects

public java.util.List getPublicSubObjects(java.lang.Integer idBIObj)
                                   throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubObjectDAO
Gets the detail of all the public biobject subobjects.

Specified by:
getPublicSubObjects in interface ISubObjectDAO
Parameters:
idBIObj - the id of the biobject parent
Returns:
List of SubObject objects
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getSubObjects

public java.util.List getSubObjects(java.lang.Integer idBIObj)
                             throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubObjectDAO
Gets the detail of all the biobject subobjects.

Specified by:
getSubObjects in interface ISubObjectDAO
Parameters:
idBIObj - the id of the biobject parent
Returns:
List of SubObject objects
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

deleteSubObject

public void deleteSubObject(java.lang.Integer idSub)
                     throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubObjectDAO
Delete a subObject.

Specified by:
deleteSubObject in interface ISubObjectDAO
Parameters:
idSub - the id sub
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

deleteSubObjectSameConnection

public void deleteSubObjectSameConnection(java.lang.Integer idSub,
                                          org.hibernate.Session aSession)
                                   throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubObjectDAO
Delete a subObject mantaining the previous connection.

Specified by:
deleteSubObjectSameConnection in interface ISubObjectDAO
Parameters:
idSub - the id sub
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getSubObject

public SubObject getSubObject(java.lang.Integer idSubObj)
                       throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubObjectDAO
Gets the InputStream of the subobjects content.

Specified by:
getSubObject in interface ISubObjectDAO
Parameters:
idSubObj - the id of the subobject
Returns:
SubObject the subobject loaded
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

saveSubObject

public java.lang.Integer saveSubObject(java.lang.Integer idBIObj,
                                       SubObject subObj)
                                throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubObjectDAO
Save a subObject of the object.

Specified by:
saveSubObject in interface ISubObjectDAO
Parameters:
idBIObj - the id of the biobject parent
subObj - the sub obj
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

modifySubObject

public java.lang.Integer modifySubObject(java.lang.Integer idBIObj,
                                         SubObject subObj)
                                  throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubObjectDAO
Modify a subObject of the object.

Specified by:
modifySubObject in interface ISubObjectDAO
Parameters:
idBIObj - the id of the biobject parent
subObj - the sub obj
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getSubObjectByNameAndBIObjectId

public SubObject getSubObjectByNameAndBIObjectId(java.lang.String subobjectName,
                                                 java.lang.Integer idBIObj)
                                          throws it.eng.spago.error.EMFUserError
Description copied from interface: ISubObjectDAO
Gets the subobject specified by its name and document id in input

Specified by:
getSubObjectByNameAndBIObjectId in interface ISubObjectDAO
Parameters:
subobjectName - the name of the subobject
idBIObj - the id of the biobject parent
Returns:
the required subobject SubObject
Throws:
it.eng.spago.error.EMFUserError - the EMF user error