Package com.jamonapi

Examples of com.jamonapi.Monitor.stop()


    try {
      logger.debug("IN: obj id = [" + biObjectID + "]; user id = [" + ((UserProfile) profile).getUserId() + "]");
      // if user is administrator, he can develop, no need to make any query to database
      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) {
View Full Code Here


      }
      BIObject obj = DAOFactory.getBIObjectDAO().loadBIObjectById(biObjectID);
      toReturn = canDevBIObject(obj, profile);
    } catch (Exception e) {
      logger.error(e);
      monitor.stop();
      return false;
    }
    logger.debug("OUT: returning " + toReturn);
    monitor.stop();
    return toReturn;
View Full Code Here

      logger.error(e);
      monitor.stop();
      return false;
    }
    logger.debug("OUT: returning " + toReturn);
    monitor.stop();
    return toReturn;
  }

  /**
   * Control if the user can develop the input document
View Full Code Here

    try {
      logger.debug("IN: obj label = [" + obj.getLabel() + "]; user id = [" + ((UserProfile) profile).getUserId() + "]");
      // if user is administrator, he can develop, no need to make any query to database
      if (profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)) {
        logger.debug("User [" + ((UserProfile) profile).getUserId() + "] is administrator. He can develop every document");
        monitor.stop();
        return true;
      }
      // if user is not an administrator and document is not in DEV state, document cannot be developed
      if (!"DEV".equals(obj.getStateCode())) {
        logger.debug("User [" + ((UserProfile) profile).getUserId() + "] is not an administrator and document is not in DEV state, so it cannot be developed");
View Full Code Here

        return true;
      }
      // if user is not an administrator and document is not in DEV state, document cannot be developed
      if (!"DEV".equals(obj.getStateCode())) {
        logger.debug("User [" + ((UserProfile) profile).getUserId() + "] is not an administrator and document is not in DEV state, so it cannot be developed");
        monitor.stop();
        return true;
      }
      // if user is not an administrator and document is in DEV state, we must see if he has development permission
      List folders = obj.getFunctionalities();
      Iterator it = folders.iterator();
View Full Code Here

          break;
        }
      }
    } catch (Exception e) {
      logger.error("Error while loading BIObject", e);
      monitor.stop();
      return false;
    }
    logger.debug("OUT: returning " + toReturn);
    monitor.stop();
    return toReturn;
View Full Code Here

      logger.error("Error while loading BIObject", e);
      monitor.stop();
      return false;
    }
    logger.debug("OUT: returning " + toReturn);
    monitor.stop();
    return toReturn;
  }

  /**
   * Control if the current user can develop new object into the functionality
View Full Code Here

    } catch (Exception e) {
      logger.error("Exception in loadLowFunctionalityByID", e);

      return false;
    } finally {
      monitor.stop();
      logger.debug("OUT");
    }
    return canExecInternal(folder, profile);
  }
View Full Code Here

    try {
      roles = ((UserProfile)profile).getRolesForUse();
    } catch (EMFInternalError emfie) {
      logger.error("EMFInternalError in profile.getRoles");
      logger.debug("OUT.return false");
      monitor.stop();
      return false;
    }

    if(folder.getCodType().equalsIgnoreCase("USER_FUNCT")){
      monitor.stop();
View Full Code Here

      monitor.stop();
      return false;
    }

    if(folder.getCodType().equalsIgnoreCase("USER_FUNCT")){
      monitor.stop();
      return true;
    }
   
    Role[] execRoles = folder.getExecRoles();
    List execRoleNames = new ArrayList();
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.