it.eng.spagobi.bo.dao
Interface IBIObjectCMSDAO

All Known Implementing Classes:
BIObjectCMSDAOImpl

public interface IBIObjectCMSDAO

Defines all the methods needed for access contents of BIObject into CMS Repository

Author:
Fiscato

Method Summary
 void deleteSubObject(java.lang.String pathParent, java.lang.String name, it.eng.spago.security.IEngUserProfile profile)
          Delete a subObject
 java.util.List getAccessibleSubObjects(java.lang.String pathParent, it.eng.spago.security.IEngUserProfile profile)
          Gets the detail of all the subobjects accessible to the user
 java.io.InputStream getSubObject(java.lang.String pathParent, java.lang.String name, it.eng.spago.security.IEngUserProfile profile)
          Gets the InputStream of the subobjects content
 java.io.InputStream getTemplate(java.lang.String path, it.eng.spago.security.IEngUserProfile profile)
          Get the template of the object
 void saveSubObject(byte[] content, java.lang.String pathParent, java.lang.String name, java.lang.String description, boolean publicVisibility, it.eng.spago.security.IEngUserProfile profile)
          Save a subObject of the object
 

Method Detail

getTemplate

public java.io.InputStream getTemplate(java.lang.String path,
                                       it.eng.spago.security.IEngUserProfile profile)
Get the template of the object

Parameters:
path - Cms path of the object
profile - User Profile
Returns:
InputStream of the template contents

saveSubObject

public void saveSubObject(byte[] content,
                          java.lang.String pathParent,
                          java.lang.String name,
                          java.lang.String description,
                          boolean publicVisibility,
                          it.eng.spago.security.IEngUserProfile profile)
                   throws EMFUserError
Save a subObject of the object

Parameters:
content - byte array containing the content of the subobject
pathParent - the cms path of the parent
name - the name of the new subobject
description - the description of the new subobject
profile - the profile of the user
Throws:
EMFUserError

getAccessibleSubObjects

public java.util.List getAccessibleSubObjects(java.lang.String pathParent,
                                              it.eng.spago.security.IEngUserProfile profile)
Gets the detail of all the subobjects accessible to the user

Parameters:
pathParent - Cms path of the object
profile - Profile of the user
Returns:
List of BIObject.SubObjectDetail objects

getSubObject

public java.io.InputStream getSubObject(java.lang.String pathParent,
                                        java.lang.String name,
                                        it.eng.spago.security.IEngUserProfile profile)
Gets the InputStream of the subobjects content

Parameters:
pathParent - cms path of the object parent
name - name of the subobject
profile - of the user
Returns:
InputStream of the subobject content

deleteSubObject

public void deleteSubObject(java.lang.String pathParent,
                            java.lang.String name,
                            it.eng.spago.security.IEngUserProfile profile)
                     throws EMFUserError
Delete a subObject

Parameters:
pathParent - path of the parent object
name - name of the subObject
profile - Profile of the user
Throws:
EMFUserError