|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.bo.dao.cms.BIObjectCMSDAOImpl
public class BIObjectCMSDAOImpl
Implements all the methods for access the biobject cms contents
Constructor Summary | |
---|---|
BIObjectCMSDAOImpl()
|
Method Summary | |
---|---|
void |
deleteSnapshot(java.lang.String snapshotPath)
Delete a snapshot |
void |
deleteSubObject(java.lang.String pathParent,
java.lang.String name)
Delete a subObject |
void |
exportDocument(BIObject obj,
java.lang.String destFolder,
boolean exportSubObjects,
boolean exportSnapshots)
Exports a document node |
void |
fillBIObjectTemplate(BIObject obj)
Given a BIObject at input, fills it with template information. |
java.util.List |
getAccessibleSubObjects(java.lang.String pathParent,
it.eng.spago.security.IEngUserProfile profile)
Gets the list of all the current user accessible subObject. |
java.lang.String |
getExecutionNotes(java.lang.String biobjPath,
java.lang.String execIdentif)
Get Notes for a specific execution of the biobject |
java.util.List |
getSnapshots(java.lang.String pathParent)
Gets the list of the snapshot details that are children of a biobject |
java.io.InputStream |
getSubObject(java.lang.String pathParent,
java.lang.String name)
Gets the inputStream of the subObject content |
java.util.List |
getSubObjects(java.lang.String pathParent)
Gets the list of all the subObjects which belongs to a biobject. |
java.io.InputStream |
getTemplate(java.lang.String path)
Get the template of the object |
java.lang.String |
importDocument(java.lang.String sourceFolder)
Imports a document |
void |
saveExecutionNotes(java.lang.String biobjPath,
java.lang.String execIdentif,
java.lang.String notes)
Save Notes for a specific execution of the biobject |
void |
saveSnapshot(byte[] content,
java.lang.String pathParent,
java.lang.String name,
java.lang.String description)
Save a snapshot 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 |
void |
saveTemplate(byte[] content,
java.lang.String path,
java.lang.String templateName)
Save a subObject of the object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BIObjectCMSDAOImpl()
Method Detail |
---|
public java.io.InputStream getTemplate(java.lang.String path)
getTemplate
in interface IBIObjectCMSDAO
Path
- cms path of the objectprofile
- Profile of the current user
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 it.eng.spago.error.EMFUserError
saveSubObject
in interface IBIObjectCMSDAO
content
- the byte content of the subobjectpathParent
- the cms path of the object fathername
- name of the subojectdescription
- Description of the subobjectpublicVisibility
- Visibility of the subObject, if true the object is public
if false the object is visibile only to the ownerprofile
- Profile of the current user useful to get the owner use rof the subobject
it.eng.spago.error.EMFUserError
public java.util.List getAccessibleSubObjects(java.lang.String pathParent, it.eng.spago.security.IEngUserProfile profile)
getAccessibleSubObjects
in interface IBIObjectCMSDAO
profile
- Profile of the current userpathParent
- cms path of the father biobject
public java.io.InputStream getSubObject(java.lang.String pathParent, java.lang.String name)
getSubObject
in interface IBIObjectCMSDAO
pathParent
- cms path of the parent objectname
- name of the subObject
public void deleteSubObject(java.lang.String pathParent, java.lang.String name) throws it.eng.spago.error.EMFUserError
deleteSubObject
in interface IBIObjectCMSDAO
pathParent
- path of the parent objectname
- name of the subObject
it.eng.spago.error.EMFUserError
public void fillBIObjectTemplate(BIObject obj)
IBIObjectCMSDAO
BIObject
at input, fills it with template information.
fillBIObjectTemplate
in interface IBIObjectCMSDAO
obj
- The object to fill template information in.it.eng.spagobi.bo.dao.IBIObjectDAO#fillBIObjectTemplate(it.eng.spagobi.bo.BIObject)
public java.util.List getSubObjects(java.lang.String pathParent)
getSubObjects
in interface IBIObjectCMSDAO
pathParent
- cms path of the father biobject
public void saveExecutionNotes(java.lang.String biobjPath, java.lang.String execIdentif, java.lang.String notes) throws java.lang.Exception
saveExecutionNotes
in interface IBIObjectCMSDAO
biobjPath
- path of the biobject executedexecIdentif
- identifier of the executionnotes
- notes to save
java.lang.Exception
public java.lang.String getExecutionNotes(java.lang.String biobjPath, java.lang.String execIdentif) throws java.lang.Exception
getExecutionNotes
in interface IBIObjectCMSDAO
biobjPath
- path of the biobject executedexecIdentif
- identifier of the execution
java.lang.Exception
public void saveTemplate(byte[] content, java.lang.String path, java.lang.String templateName) throws it.eng.spago.error.EMFUserError
saveTemplate
in interface IBIObjectCMSDAO
content
- byte array containing the content of the templatepath
- the cms path of the document
it.eng.spago.error.EMFUserError
public void deleteSnapshot(java.lang.String snapshotPath) throws it.eng.spago.error.EMFUserError
IBIObjectCMSDAO
deleteSnapshot
in interface IBIObjectCMSDAO
snapshotPath
- path of the snapshot
it.eng.spago.error.EMFUserError
public java.util.List getSnapshots(java.lang.String pathParent)
IBIObjectCMSDAO
getSnapshots
in interface IBIObjectCMSDAO
pathParent
- Cms path of the biobject
public void saveSnapshot(byte[] content, java.lang.String pathParent, java.lang.String name, java.lang.String description) throws it.eng.spago.error.EMFUserError
IBIObjectCMSDAO
saveSnapshot
in interface IBIObjectCMSDAO
content
- byte array containing the content of the snapshotpathParent
- the cms path of the parentname
- the name of the new subobjectdescription
- the description of the new subobject
it.eng.spago.error.EMFUserError
public void exportDocument(BIObject obj, java.lang.String destFolder, boolean exportSubObjects, boolean exportSnapshots) throws it.eng.spago.error.EMFUserError
IBIObjectCMSDAO
exportDocument
in interface IBIObjectCMSDAO
obj
- The BIObject document to be exported: its node is supposed to be existingdestFolder
- The folder where document will be serializedexportSubObjects
- Flag indicating if the subobjects must be exportedexportSnapshots
- Flag indicating if the snapshots must be exported
it.eng.spago.error.EMFUserError
public java.lang.String importDocument(java.lang.String sourceFolder) throws it.eng.spago.error.EMFUserError
IBIObjectCMSDAO
importDocument
in interface IBIObjectCMSDAO
sourceFolder
- The folder where document will be deserialized from
it.eng.spago.error.EMFUserError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |