Examples of loadByParameterIdandRole()


Examples of it.eng.spagobi.behaviouralmodel.analyticaldriver.dao.IParameterUseDAO.loadByParameterIdandRole()

    logger.debug("IN");
    List<String> toReturn = new ArrayList<String>();
    IParameterUseDAO parusedao;
    try {
      parusedao = DAOFactory.getParameterUseDAO();
      ParameterUse paruse = parusedao.loadByParameterIdandRole(parameter.getParID(), roleToBeUsed);
      Integer manInp = paruse.getManualInput();
      if(manInp.intValue()==1) {
        // modality is manual input, no values can be retrieved
        return toReturn;
      } else {
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.analyticaldriver.dao.IParameterUseDAO.loadByParameterIdandRole()

    logger.debug("parameterId="+parIdStr);
   
    Integer parId = new Integer(parIdStr);
    // check if the parameter use is manual input
    IParameterUseDAO parusedao = DAOFactory.getParameterUseDAO();
    ParameterUse paruse = parusedao.loadByParameterIdandRole(parId, roleName);
    Integer manInp = paruse.getManualInput();
    if(manInp.intValue()==1) {
      String message = "";
      try{
        message = PortletUtilities.getMessage("scheduler.fillparmanually", "component_scheduler_messages");
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.analyticaldriver.dao.IParameterUseDAO.loadByParameterIdandRole()

     
      ParameterUse biParameterExecModality;
      try {
        // load parameter use ...
        IParameterUseDAO parusedao = DAOFactory.getParameterUseDAO();
        biParameterExecModality = parusedao.loadByParameterIdandRole(biparam.getParID(), executionInstance.getExecutionRole());
      } catch (Exception e) {
        throw new SpagoBIServiceException(SERVICE_NAME, "Impossible to find any valid execution modality for parameter [" + id + "] and role [" + executionInstance.getExecutionRole() + "]", e);
      }
     
      Assert.assertNotNull(biParameterExecModality, "Impossible to find any valid execution modality for parameter [" + id + "] and role [" + executionInstance.getExecutionRole() + "]" );
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.analyticaldriver.dao.IParameterUseDAO.loadByParameterIdandRole()

        for (int i = 0; i < rows.size(); i++) {
          paginator.addRow(rows.get(i));
        }
        // filters for correlations
        IParameterUseDAO parusedao = DAOFactory.getParameterUseDAO();
        ParameterUse paruse = parusedao.loadByParameterIdandRole(currbiObjPar.getParID(), roleName);
        list = SelectParametersLookupModule.filterListForParametersCorrelation(paruse, request, list, new HashMap(), errorHandler);
        // gets SourceBean from filtered list
        toReturn = list.getPaginator().getAll();
      }
    }
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.analyticaldriver.dao.IParameterUseDAO.loadByParameterIdandRole()

 
  public List<ObjParuse> getDependencies(BIObjectParameter parameter) {
    List<ObjParuse> biParameterExecDependencies = new ArrayList<ObjParuse>();
    try {
      IParameterUseDAO parusedao = DAOFactory.getParameterUseDAO();
      ParameterUse biParameterExecModality = parusedao.loadByParameterIdandRole(parameter.getParID(), executionRole);
      IObjParuseDAO objParuseDAO = DAOFactory.getObjParuseDAO();
      biParameterExecDependencies.addAll(objParuseDAO.loadObjParuse(parameter.getId(), biParameterExecModality.getUseID()));
    } catch (Exception e) {
      throw new SpagoBIRuntimeException("Impossible to get dependencies", e);
    }
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.analyticaldriver.dao.IParameterUseDAO.loadByParameterIdandRole()

      logger.warn("parameterId is null");

  Integer parId = new Integer(parIdStr);
  // check if the parameter use is manual input
  IParameterUseDAO parusedao = DAOFactory.getParameterUseDAO();
  ParameterUse paruse = parusedao.loadByParameterIdandRole(parId, roleName);
  //check if the parameter is a list or a check list
  String selectionType = paruse.getSelectionType();
 
  if (selectionType!= null && selectionType.equals("CHECK_LIST"))isChecklist = true;
 
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.