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

public class SubObjectDAOHibImpl
extends AbstractHibernateDAO
implements ISubObjectDAO


Constructor Summary
SubObjectDAOHibImpl()
           
 
Method Summary
 void deleteSubObject(java.lang.Integer idSub)
          Delete a subObject.
 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.
 java.util.List getSubObjects(java.lang.Integer idBIObj)
          Gets the detail of all the biobject subobjects.
 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
getSession, logException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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