Package it.eng.spagobi.analiticalmodel.functionalitytree.bo

Examples of it.eng.spagobi.analiticalmodel.functionalitytree.bo.LowFunctionality


    context+="themes/"+currTheme+"/";
       htmlStream.append("        "+treename+" = new dTree('"+treename+"', '" + context + "');\n");
       htmlStream.append("            "+treename+".add(" + dTreeRootId + ",-1,'"+nameTree+"');\n");
       Iterator it = objectsList.iterator();
       while (it.hasNext()) {
         LowFunctionality folder = (LowFunctionality) it.next();
         if (folder.getParentId() == null) addItemForJSTree(htmlStream, folder, true, false, treename);
         else addItemForJSTree(htmlStream, folder, false, false, treename);
       }
       htmlStream.append("        document.getElementById('treeSchedulerFoldersTd" + requestIdentity + "').innerHTML = " + treename + ";\n");
    htmlStream.append("      </script>\n");
    htmlStream.append("  </tr>");
View Full Code Here


    context+="themes/"+currTheme+"/";
       htmlStream.append("        treeCMS = new dTree('treeCMS', '" + context + "');\n");
       htmlStream.append("            treeCMS.add(" + dTreeRootId + ",-1,'"+nameTree+"');\n");
       Iterator it = objectsList.iterator();
       while (it.hasNext()) {
         LowFunctionality folder = (LowFunctionality) it.next();
         if (initialPath != null) {
           if (initialPath.equalsIgnoreCase(folder.getPath())) addItemForJSTree(htmlStream, folder, false, true);
           else addItemForJSTree(htmlStream, folder, false, false);
         } else {
           if (folder.getParentId() == null) addItemForJSTree(htmlStream, folder, true, false);
           else addItemForJSTree(htmlStream, folder, false, false);
         }
       }
      //htmlStream.append("        document.write(treeCMS);\n");
       htmlStream.append("        document.getElementById('treeSchedulerObjTd" + requestIdentity + "').innerHTML = treeCMS;\n");
View Full Code Here

      logger.error("Error while reading functionalities", e);
  }

  List funcs = new ArrayList();
  for (int i = 0; i < functionalities.size(); i++) {
      LowFunctionality functionality = (LowFunctionality) functionalities.get(i);
      if (functionality.getCode().equals(functionalitiyCode)) {

    Integer id = functionality.getId();
    funcs.add(id);
    break;
      }
  }
View Full Code Here

          }
        }
        if (folder != null) {
          //get the folder Id corresponding to the label folder and add it to the return list
          try{
            LowFunctionality func = DAOFactory.getLowFunctionalityDAO().loadLowFunctionalityByCode(folder, false);
            folders.add(func.getId());
          }catch (EMFUserError emf){
            logger.debug("Folder with code: " + folder + " not exists.");
          }
        }
      }
View Full Code Here

      List functs = biobj.getFunctionalities();
      Iterator iterFunct = functs.iterator();
      while (iterFunct.hasNext()) {
        Integer functId = (Integer) iterFunct.next();
        ILowFunctionalityDAO lowFunctDAO = DAOFactory.getLowFunctionalityDAO();
        LowFunctionality funct = lowFunctDAO.loadLowFunctionalityByID(functId, false);
        if (funct.getCodType().equals(SpagoBIConstants.USER_FUNCTIONALITY_TYPE_CODE)) {
          logger.debug("User folder [" + funct.getPath() + "] will be not exported.");
          // if the folder is a personal folder, it is not exported
          continue;
        }
        exporter.insertFunctionality(funct, session);
        exporter.insertObjFunct(biobj, funct, session);
View Full Code Here

    // recursively insert parent functionalities
    Integer parentId = funct.getParentId();
    if(parentId!=null){
      ILowFunctionalityDAO lowFunctDAO = DAOFactory.getLowFunctionalityDAO();
      LowFunctionality functPar = lowFunctDAO.loadLowFunctionalityByID(parentId, false);
      insertFunctionality(functPar, session);
    }
    logger.debug("OUT");

  }
View Full Code Here

    context+="themes/"+currTheme+"/";
       htmlStream.append("        treeCMS = new dTree('treeCMS', '" + context + "');\n");
       htmlStream.append("            treeCMS.add(" + dTreeRootId + ",-1,'"+nameTree+"');\n");
       Iterator it = objectsList.iterator();
       while (it.hasNext()) {
         LowFunctionality folder = (LowFunctionality) it.next();
         /* ********* start luca changes *************** */
         boolean isUserFunct = folder.getCodType().equals(SpagoBIConstants.USER_FUNCTIONALITY_TYPE_CODE);
         if(isUserFunct) {
           continue;
         }
         /* ********* end luca changes ***************** */
         if (initialPath != null) {
           if (initialPath.equalsIgnoreCase(folder.getPath())) addItemForJSTree(htmlStream, folder, true);
           else addItemForJSTree(htmlStream, folder, false);
         } else {
           if (folder.getParentId() == null) addItemForJSTree(htmlStream, folder, true);
           else addItemForJSTree(htmlStream, folder, false);
         }
       }
      //htmlStream.append("        document.write(treeCMS);\n");
      htmlStream.append("        document.getElementById('treeExportObjTd" + requestIdentity + "').innerHTML = treeCMS;\n");
View Full Code Here

    logger.debug("IN.state=" + state);
    if(isAbleToExec(state, profile)) {
      /*if (!state.equals("REL")) {
          return false;
      }*/
      LowFunctionality folder = null;
      try {
        folder = DAOFactory.getLowFunctionalityDAO().loadLowFunctionalityByID(folderId, false);
      } catch (Exception e) {
        logger.error("Exception in loadLowFunctionalityByID", e);
        return false;
View Full Code Here

    boolean canExec = false;
    if(isAbleToExec(state, profile)) {

      Iterator folderIt = folders.iterator();
      while(folderIt.hasNext()){
        LowFunctionality folder =(LowFunctionality) folderIt.next();
        canExec = canExecInternal(folder, profile);
        if (canExec){
          logger.debug("OUT.return true");
          return true;
        }
View Full Code Here

    boolean canDev = false;
    if(isAbleToExec(state, profile)) {

      Iterator folderIt = folders.iterator();
      while(folderIt.hasNext()){
        LowFunctionality folder =(LowFunctionality) folderIt.next();
        canDev = canDevInternal(folder, profile);
        if (canDev){
          logger.debug("OUT.return true");
          monitor.stop();
          return true;
View Full Code Here

TOP

Related Classes of it.eng.spagobi.analiticalmodel.functionalitytree.bo.LowFunctionality

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.