it.eng.spagobi.analiticalmodel.document.dao
Interface ISubObjectDAO

All Superinterfaces:
ISpagoBIDao
All Known Implementing Classes:
SubObjectDAOHibImpl

public interface ISubObjectDAO
extends ISpagoBIDao


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

Method Detail

saveSubObject

java.lang.Integer saveSubObject(java.lang.Integer idBIObj,
                                SubObject subObj)
                                throws it.eng.spago.error.EMFUserError
Save a subObject of the object.

Parameters:
idBIObj - the id of the biobject parent
subObj - the sub obj
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

modifySubObject

java.lang.Integer modifySubObject(java.lang.Integer idBIObj,
                                  SubObject subObj)
                                  throws it.eng.spago.error.EMFUserError
Modify a subObject of the object.

Parameters:
idBIObj - the id of the biobject parent
subObj - the sub obj
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getAccessibleSubObjects

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

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

getSubObject

SubObject getSubObject(java.lang.Integer idSubObj)
                       throws it.eng.spago.error.EMFUserError
Gets the InputStream of the subobjects content.

Parameters:
idSubObj - the id of the subobject
Returns:
SubObject the subobject loaded
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

deleteSubObject

void deleteSubObject(java.lang.Integer idSub)
                     throws it.eng.spago.error.EMFUserError
Delete a subObject.

Parameters:
idSub - the id sub
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

deleteSubObjectSameConnection

void deleteSubObjectSameConnection(java.lang.Integer idSub,
                                   org.hibernate.Session aSession)
                                   throws it.eng.spago.error.EMFUserError
Delete a subObject mantaining the previous connection.

Parameters:
idSub - the id sub
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getSubObjects

java.util.List getSubObjects(java.lang.Integer idBIObj)
                             throws it.eng.spago.error.EMFUserError
Gets the detail of all the biobject subobjects.

Parameters:
idBIObj - the id of the biobject parent
Returns:
List of SubObject objects
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getPublicSubObjects

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

Parameters:
idBIObj - the id of the biobject parent
Returns:
List of SubObject objects
Throws:
it.eng.spago.error.EMFUserError - the EMF user error

getSubObjectByNameAndBIObjectId

SubObject getSubObjectByNameAndBIObjectId(java.lang.String name,
                                          java.lang.Integer idBIObj)
                                          throws it.eng.spago.error.EMFUserError
Gets the subobject specified by its name and document id in input

Parameters:
name - 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