Package it.eng.spagobi.analiticalmodel.document.dao

Examples of it.eng.spagobi.analiticalmodel.document.dao.IObjNoteDAO


 
  private void saveNotes(String execIdentifier, Integer objectId, String notes, ObjNote objnote, String owner, String visibility,IEngUserProfile profile)
      throws Exception {
    logger.debug("IN");
    try {
      IObjNoteDAO objNoteDAO = DAOFactory.getObjNoteDAO();
      objNoteDAO.setUserProfile(profile);
      if (objnote != null) {
        //Modify note
        objnote.setContent(notes.getBytes());
        objnote.setIsPublic((visibility.equalsIgnoreCase("PUBLIC")?true:false));
        objNoteDAO.modifyExecutionNotes(objnote);
      } else {
        //Insert new note
        objnote = new ObjNote();
        objnote.setContent(notes.getBytes());
        objnote.setExecReq(execIdentifier);
        objnote.setIsPublic((visibility.equalsIgnoreCase("PUBLIC")?true:false));
        objnote.setOwner(owner);
        objNoteDAO.saveExecutionNotes(objectId, objnote);
      }
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here


       
   
       String notes = "";
      try
       
        IObjNoteDAO objNoteDAO = DAOFactory.getObjNoteDAO();
        ObjNote objnotes = objNoteDAO.getExecutionNotes(new Integer(objectid), execIdentifier);
       
        if(objnotes!=null){
          byte[] notestemp = objnotes.getContent();
          notes = new BASE64Encoder().encode(notestemp);
          //notes = new String(objnotes.getContent());
View Full Code Here

      try
          IBIObjectDAO objectDAO = DAOFactory.getBIObjectDAO();
          BIObject biobject = objectDAO.loadBIObjectById(new Integer(objectid));
          EMFErrorHandler errorHandler = getErrorHandler();
         
          IObjNoteDAO objNoteDAO = DAOFactory.getObjNoteDAO();
          objNoteDAO.setUserProfile(profile);
          ObjNote objNote = objNoteDAO.getExecutionNotes(new Integer(objectid), execIdentifier);
          if(objNote!=null) {
            objNote.setContent(notes.getBytes());
            objNote.setExecReq(execIdentifier);
              if(errorHandler.isOKBySeverity(EMFErrorSeverity.ERROR)) {
                objNoteDAO.modifyExecutionNotes(objNote);
                }
           
          } else {
            objNote = new ObjNote();
            objNote.setContent(notes.getBytes());
            objNote.setExecReq(execIdentifier);
            if(errorHandler.isOKBySeverity(EMFErrorSeverity.ERROR)) {
              objNoteDAO.saveExecutionNotes(biobject.getId(), objNote);
                }         
          }
      } catch (Exception e) {
        logger.warn("Error while saving notes", e);
      }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.analiticalmodel.document.dao.IObjNoteDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.