Package it.eng.spagobi.analiticalmodel.document.bo

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject


  private void updateWorksheetTemplate() throws Exception {
    logger.debug("IN");
    byte[] content = getTemplateContent();
    ObjTemplate objTemp = createNewTemplate(content);
    ExecutionInstance executionInstance = getContext().getExecutionInstance( ExecutionInstance.class.getName() );
    BIObject biobj = executionInstance.getBIObject();
    UserProfile userProfile = (UserProfile) this.getUserProfile();
    logger.info("User with unique identifier " + userProfile.getUserUniqueIdentifier() + ", id " + userProfile.getUserId()
        + ", name " + userProfile.getUserName() + " is updating document with id " + biobj.getId()
        + ", label " + biobj.getLabel() + ", name " + biobj.getName() + "; new template is:");
    logger.info(new String(objTemp.getContent()));
    objDao.modifyBIObject(biobj, objTemp);
    logger.debug("Template of document with id " + biobj.getId() + ", label " + biobj.getLabel() + ", name " + biobj.getName() + " updated");
    JSONObject response = new JSONObject();
    response.put("text", "Operation succeded");
    writeBackToClient( new JSONSuccess(response) );
    logger.debug("OUT");
  }
View Full Code Here


      if (profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)) {
        logger.debug("User [" + ((UserProfile) profile).getUserId() + "] is administrator. He can develop every document");
        monitor.stop();
        return true;
      }
      BIObject obj = DAOFactory.getBIObjectDAO().loadBIObjectById(biObjectID);
      toReturn = canDevBIObject(obj, profile);
    } catch (Exception e) {
      logger.error(e);
      monitor.stop();
      return false;
View Full Code Here

    }
    logger.debug("Worksheet definition : " + wkDefinition);
    logger.debug("Base query definition : " + query);
    logger.debug("Smart filter values : " + smartFilterValues);
    ExecutionInstance executionInstance = getContext().getExecutionInstance( ExecutionInstance.class.getName() );
    BIObject biobj = executionInstance.getBIObject();
    ObjTemplate qbETemplate = biobj.getActiveTemplate();
    String templCont = new String(qbETemplate.getContent());
    WorksheetDriver q = new WorksheetDriver();
    String temp = q.composeWorksheetTemplate(wkDefinition, query, smartFilterValuesString, templCont);
    byte[] content = temp.getBytes();
    logger.debug("OUT");
View Full Code Here

    Assert.assertNotNull(wkDefinition, "Missing worksheet definition");
    Assert.assertNotNull(smartFilterValues, "Missing smart Filter Values");
    logger.debug("Worksheet definition : " + wkDefinition);
    logger.debug("Smart filter values : " + smartFilterValues);
    ExecutionInstance executionInstance = getContext().getExecutionInstance( ExecutionInstance.class.getName() );
    BIObject biobj = executionInstance.getBIObject();
    ObjTemplate qbETemplate = biobj.getActiveTemplate();
    String templCont = new String(qbETemplate.getContent());
    WorksheetDriver q = new WorksheetDriver();
    String temp = q.composeWorksheetTemplate(wkDefinition, null, smartFilterValuesString, templCont);
    byte[] content = temp.getBytes();
    logger.debug("OUT");
View Full Code Here

     * @return true, if is being reexecuteing
     */
    public boolean isBeingReexecuteing (String flowId, BIObject obj) {
      if (!_flows.containsKey(flowId)) return false;
      else {
        BIObject lastObj = getLastExecutionObject(flowId);
        if (lastObj.equals(obj)) return true;
        else return false;
      }
    }
View Full Code Here

        logger.debug("got OBJECT_ID from Request=" + objId);
      }
      }
     
      if (objId != null && !objId.equals("")){
          BIObject obj = DAOFactory.getBIObjectDAO().loadBIObjectById(new Integer(objId));
          if (obj!= null){
            String state = obj.getStateCode();
            if (state!= null && state.equals("DEV")){
              Domain dTemp = DAOFactory.getDomainDAO().loadDomainByCodeAndValue("STATE", "TEST");
              obj.setStateCode("TEST");
              obj.setStateID(dTemp.getValueId());
            }else if (state!= null && state.equals("TEST")){
              Domain dTemp = DAOFactory.getDomainDAO().loadDomainByCodeAndValue("STATE", "REL");
              obj.setStateCode("REL");
              obj.setStateID(dTemp.getValueId());
            }
            DAOFactory.getBIObjectDAO().modifyBIObject(obj);
          }
       }
   
View Full Code Here

        logger.debug("got OBJECT_ID from Request=" + objId);
      }
      }
     
      if (objId != null && !objId.equals("")){
          BIObject obj = DAOFactory.getBIObjectDAO().loadBIObjectById(new Integer(objId));
          if (obj!= null){
            String state = obj.getStateCode();
            if (state!= null && state.equals("REL")){
              Domain dTemp = DAOFactory.getDomainDAO().loadDomainByCodeAndValue("STATE", "TEST");
              obj.setStateCode("TEST");
              obj.setStateID(dTemp.getValueId());
            }else if (state!= null && state.equals("TEST")){
              Domain dTemp = DAOFactory.getDomainDAO().loadDomainByCodeAndValue("STATE", "DEV");
              obj.setStateCode("DEV");
              obj.setStateID(dTemp.getValueId());
            }
            DAOFactory.getBIObjectDAO().modifyBIObject(obj);
          }
       }
   }
View Full Code Here

  } else {
      objectsList = objDAO.loadAllBIObjects(currentFieldOrder);
  }

  for (Iterator it = objectsList.iterator(); it.hasNext();) {
      BIObject obj = (BIObject) it.next();
      SourceBean rowSB = makeListRow(profile, obj);
      if (rowSB != null)
    paginator.addRow(rowSB);
  }
  ListIFace list = new GenericList();
View Full Code Here

      //objects = lowFunct.getBiObjects();
      List tmpObjects = DAOFactory.getBIObjectDAO().loadBIObjects(Integer.valueOf(functID), profile,isHome);
      objects = new ArrayList();
      if(tmpObjects != null) {
                for(Iterator it = tmpObjects.iterator(); it.hasNext();) {
                    BIObject obj = (BIObject)it.next();
                    if(ObjectsAccessVerifier.checkProfileVisibility(obj, profile))
                      objects.add(obj);
                }
      }
      HttpServletRequest httpRequest = getHttpRequest();
View Full Code Here

    }
  }
 
 
  private void setLoopbackContext(SourceBean request, String message) throws EMFUserError{
    BIObject obj = null;
    try{
      obj = helper.recoverBIObjectDetails(message);
    } catch (Exception e) {
              logger.error("Exception",e);
    }
    BIObjectParameter biObjPar = helper.recoverBIObjectParameterDetails(obj.getId());
    session.setAttribute("LookupBIObject", obj);
    session.setAttribute("LookupBIObjectParameter", biObjPar);
    session.setAttribute("modality", message);
    session.setAttribute("modalityBkp", message);
  }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.analiticalmodel.document.bo.BIObject

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.