Package com.jamonapi

Examples of com.jamonapi.Monitor.stop()


      monitor.stop();
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "BIObject in input is null!!");
    }
    if (profile == null){
      logger.warn("User profile in input is null!!");
      monitor.stop();
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "User profile in input is null!!");
    }
    String state = obj.getStateCode();
    if ("SUSP".equalsIgnoreCase(state)) {
      monitor.stop();
View Full Code Here


      monitor.stop();
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "User profile in input is null!!");
    }
    String state = obj.getStateCode();
    if ("SUSP".equalsIgnoreCase(state)) {
      monitor.stop();
      return false;
    }


    List foldersId = obj.getFunctionalities();
View Full Code Here


    List foldersId = obj.getFunctionalities();
    if (foldersId == null || foldersId.size() == 0){
      logger.warn("BIObject does not belong to any functionality!!");
      monitor.stop();
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "BIObject does not belong to any functionality!!");
    }
    Iterator foldersIdIt = foldersId.iterator();
    while (foldersIdIt.hasNext()) {
      Integer folderId = (Integer) foldersIdIt.next();
View Full Code Here

          canSee = checkProfileVisibility(obj, profile);
        }
        break;
      }
    }
    monitor.stop();
    logger.debug("OUT.canSee=" + canSee);
    return canSee;
  }

View Full Code Here

          canSee = false;
        }
      }
    }
    logger.debug("OUT.canSee=" + canSee);
    monitor.stop();
    return canSee;
  }

  /**
   * Checks if the document in input has profiled visibility constraints. If it is the case, checks if the user in input has
View Full Code Here

    logger.debug("IN: obj label is [" + obj.getLabel() + "]; user is [" + ((UserProfile)profile).getUserId().toString() + "]");
    boolean toReturn = true;
    String profVisibility = obj.getProfiledVisibility();
    if (profVisibility == null || profVisibility.trim().equals("")) {
      logger.debug("Biobject with label [" + obj.getLabel() + "] has no profile visibility contraints.");
      monitor.stop();
      return true;
    }
    logger.debug("Biobject with label [" + obj.getLabel() + "] has profile visibility contraints = [" + profVisibility + "]");
    String[] constraints = profVisibility.split(" AND ");
    for (int i = 0; i < constraints.length; i++) {
View Full Code Here

          break;
        }
      }
    }
    logger.debug("OUT.canSee=" + toReturn);
    monitor.stop();
    return toReturn;
  }

  /**
   * returns the list of correct roles of the input profile for the execution of the document with the specified input
View Full Code Here

      logger.debug("User is NOT able to execute action");
      correctRoles = DAOFactory.getBIObjectDAO()
      .getCorrectRolesForExecution(objectId);
    }
    logger.debug("OUT");
    monitor.stop();
    return correctRoles;
  }
 
  /**
   * Retrieves the correct permission on folder that the user must have in order to execute the document: eg:
View Full Code Here

        throw new SpagoBIServiceException("Impossible to find a dataset whose label is [" + dataSetLabel + "]", t);
      }
      Assert.assertNotNull(dataSet, "Impossible to find a dataset whose label is [" + dataSetLabel + "]");
      Monitor monitorLD =MonitorFactory.start("SpagoBI_Console.ExecuteDataSetAction.service.LoadData")
      dataSet.loadData();
      monitorLD.stop();
      dataStore = dataSet.getDataStore();
      Assert.assertNotNull(dataStore, "The dataStore returned by loadData method of the class [" + dataSet.getClass().getName()+ "] cannot be null");
         
     
      dataSetJSON = null;
View Full Code Here

            continue;
          }
        }
      }
    }
    monitor.stop();
    logger.debug("OUT");
  }

  private List loadCorrectRolesForExecution() throws EMFInternalError, EMFUserError {
    logger.debug("IN");
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.