Examples of eraseBIObject()


Examples of it.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO.eraseBIObject()

      // check that the functionality specified is the user one or that user is administrator

      // first case: user is administrator
      if(profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)){
        biobjdao.eraseBIObject(obj, fId);
        logger.debug("Object deleted by administrator")
      }
      else
      {
        ILowFunctionalityDAO functDAO = DAOFactory.getLowFunctionalityDAO();
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO.eraseBIObject()

          logger.error("Functionality does not exist");
          throw new Exception("Functionality does not exist");         
        }

        if(lowFunc.getPath().equals("/"+userId)){ // folder is current user one
          biobjdao.eraseBIObject(obj, fId);
          logger.debug("Object deleted");
        }
        else{
          logger.error("Functionality is not user's one");
          throw new Exception("Functionality  is not user's one");         
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO.eraseBIObject()

        }

        if (userProfile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)) {
          // delete document
          try {
            dao.eraseBIObject(biObject, iFunc);
            logger.debug("Object deleted by administrator");
          } catch (EMFUserError e) {
            logger.error("Error to delete Document", e);
            throw new SpagoBIServiceException(SERVICE_NAME, "Error to delete Document", e);
          }
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO.eraseBIObject()

            logger.error("Functionality does not exist");
            throw new Exception("Functionality does not exist");         
          }

          if(lowFunc.getPath().equals("/"+userId)){ // folder is current user one
            dao.eraseBIObject(biObject, iFunc);
            logger.debug("Object deleted");
          }
          else{
            logger.error("Functionality is not user's one");
            throw new Exception("Functionality  is not user's one");         
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO.eraseBIObject()

      String idFunctStr = (String) request.getAttribute(ObjectsTreeConstants.FUNCT_ID);
      if (idFunctStr != null) {
        Integer idFunct = new Integer(idFunctStr);
        if (profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)) {
          // deletes the document from the specified folder, no matter the permissions
          objdao.eraseBIObject(obj, idFunct);
        } else {
          // deletes the document from the specified folder if the profile is a developer for that folder
          if (ObjectsAccessVerifier.canDev(obj.getStateCode(), idFunct, profile)) {
            objdao.eraseBIObject(obj, idFunct);
          }
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO.eraseBIObject()

          // deletes the document from the specified folder, no matter the permissions
          objdao.eraseBIObject(obj, idFunct);
        } else {
          // deletes the document from the specified folder if the profile is a developer for that folder
          if (ObjectsAccessVerifier.canDev(obj.getStateCode(), idFunct, profile)) {
            objdao.eraseBIObject(obj, idFunct);
          }
        }
      } else {
        if (profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)) {
          if (initialPath != null && !initialPath.trim().equals("")) {
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO.eraseBIObject()

            for (Iterator it = funcsId.iterator(); it.hasNext(); ) {
              Integer idFunct = (Integer) it.next();
              LowFunctionality folder = DAOFactory.getLowFunctionalityDAO().loadLowFunctionalityByID(idFunct, false);
              String folderPath = folder.getPath();
              if (folderPath.equalsIgnoreCase(initialPath) || folderPath.startsWith(initialPath + "/")) {
                objdao.eraseBIObject(obj, idFunct);
              }
            }
          } else {
            // deletes the document from all the folders, no matter the permissions
            objdao.eraseBIObject(obj, null);
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO.eraseBIObject()

                objdao.eraseBIObject(obj, idFunct);
              }
            }
          } else {
            // deletes the document from all the folders, no matter the permissions
            objdao.eraseBIObject(obj, null);
          }
        } else {
          // deletes the document from all the folders on which the profile is a developer
          List funcsId = obj.getFunctionalities();
          for (Iterator it = funcsId.iterator(); it.hasNext(); ) {
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO.eraseBIObject()

          // deletes the document from all the folders on which the profile is a developer
          List funcsId = obj.getFunctionalities();
          for (Iterator it = funcsId.iterator(); it.hasNext(); ) {
            Integer idFunct = (Integer) it.next();
            if (ObjectsAccessVerifier.canDev(obj.getStateCode(), idFunct, profile)) {
              objdao.eraseBIObject(obj, idFunct);
            }
          }
        }
      }
      /*
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.