Examples of loadById()


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

    parUseList = parUseDAO.loadParametersUseByParId(idPar);

    for (Iterator iterator = parUseList.iterator(); iterator.hasNext();) {
      Object o =  iterator.next();
      ParameterUse parameterUse = (ParameterUse) o;
      SbiParuse sbiParuse = parUseDAO.loadById(parameterUse.getId());

      Set checks =  sbiParuse.getSbiParuseCks();
      Set dets =  sbiParuse.getSbiParuseDets();

      for (Iterator iterator2 = dets.iterator(); iterator2.hasNext();) {
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IRoleDAO.loadByID()

        throw new SpagoBIServiceException(SERVICE_NAME,  "Please enter role name");
      }
    } else if (serviceType != null  && serviceType.equalsIgnoreCase(ROLE_DELETE)) {
      Integer id = getAttributeAsInteger(ID);
      try {
        Role aRole = roleDao.loadByID(id);
        roleDao.eraseRole(aRole);
        logger.debug("Role deleted");
        writeBackToClient( new JSONAcknowledge("Operazion succeded") );

      } catch (Throwable e) {
View Full Code Here

Examples of no.ugland.utransprod.service.PostShipmentManager.loadById()

      }
    } else {
      PostShipmentManager postShipmentManager = (PostShipmentManager) ModelUtil
          .getBean("postShipmentManager");

      PostShipment postShipment = postShipmentManager
          .loadById(transportable.getPostShipment()
              .getPostShipmentId());
      if (postShipment != null) {
        postShipmentSelectionList.setSelection(postShipment);
        if (postShipmentSelectionList.getSelectionIndex() < 0) {
View Full Code Here

Examples of org.joget.apps.app.dao.DatalistDefinitionDao.loadById()

        AppService appService = (AppService) ac.getBean("appService");
        DataListService dataListService = (DataListService) ac.getBean("dataListService");
        DatalistDefinitionDao datalistDefinitionDao = (DatalistDefinitionDao) ac.getBean("datalistDefinitionDao");
        String id = getPropertyString("datalistId");
        AppDefinition appDef = appService.getAppDefinition(getRequestParameterString("appId"), getRequestParameterString("appVersion"));
        DatalistDefinition datalistDefinition = datalistDefinitionDao.loadById(id, appDef);
        DataList dataList = dataListService.fromJson(datalistDefinition.getJson());
       
        if (getPropertyString(Userview.USERVIEW_KEY_NAME) != null && getPropertyString(Userview.USERVIEW_KEY_NAME).trim().length() > 0) {
            dataList.addBinderProperty(Userview.USERVIEW_KEY_NAME, getPropertyString(Userview.USERVIEW_KEY_NAME));
        }
View Full Code Here

Examples of org.joget.apps.app.dao.EnvironmentVariableDao.loadById()

                if (!(value != null && value.trim().length() > 0)) {
                    String envVariable = getPropertyString("envVariable");
                    AppDefinition appDef = AppUtil.getCurrentAppDefinition();
                    ApplicationContext appContext = AppUtil.getApplicationContext();
                    EnvironmentVariableDao environmentVariableDao = (EnvironmentVariableDao) appContext.getBean("environmentVariableDao");
                    EnvironmentVariable env = environmentVariableDao.loadById(envVariable, appDef);

                    int count = 0;

                    if (env != null && env.getValue() != null && env.getValue().trim().length() > 0) {
                        count = Integer.parseInt(env.getValue());
View Full Code Here

Examples of org.joget.apps.app.dao.EnvironmentVariableDao.loadById()

    public String processHashVariable(String variableKey) {
        AppDefinition appDef = (AppDefinition) getProperty("appDefinition");
        if (appDef != null) {
            ApplicationContext appContext = AppUtil.getApplicationContext();
            EnvironmentVariableDao environmentVariableDao = (EnvironmentVariableDao) appContext.getBean("environmentVariableDao");
            EnvironmentVariable env = environmentVariableDao.loadById(variableKey, appDef);
            if (env != null) {
                return env.getValue();
            }
        }
        return null;
View Full Code Here

Examples of org.joget.apps.app.dao.FormDefinitionDao.loadById()

        FormService formService = (FormService) AppUtil.getApplicationContext().getBean("formService");
        String formDefId = getPropertyString("formDefId");
        if (formDefId != null) {
            if (cachedForm == null || !formDefId.equals(cachedFormDefId)) {
                AppDefinition appDef = AppUtil.getCurrentAppDefinition();
                FormDefinition formDef = formDefinitionDao.loadById(formDefId, appDef);
                if (formDef != null) {
                    String formJson = formDef.getJson();
                   
                    if (formJson != null) {
                        form = (Form) formService.createElementFromJson(formJson, false);
View Full Code Here

Examples of org.joget.apps.app.dao.FormDefinitionDao.loadById()

                public Object doInHibernate(Session s) throws HibernateException, SQLException {
                    // get root form
                    Form form = null;
                    FormData formData = new FormData();
                    formData.setPrimaryKeyValue(primaryKeyValue);
                    FormDefinition formDef = formDefinitionDao.loadById(formDefId, appDef);
                    if (formDef != null) {
                        String formJson = formDef.getJson();
                        if (formJson != null) {
                            formJson = AppUtil.processHashVariable(formJson, assignment, StringUtil.TYPE_JSON, null);
                            form = (Form) formService.loadFormFromJson(formJson, formData);
View Full Code Here

Examples of org.joget.apps.app.dao.FormDefinitionDao.loadById()

        String formDefId = getPropertyString("formDefId");
        if (formDefId != null && !formDefId.isEmpty()) {
            // load subform
            AppDefinition appDef = AppUtil.getCurrentAppDefinition();
            FormDefinitionDao formDefinitionDao = (FormDefinitionDao) FormUtil.getApplicationContext().getBean("formDefinitionDao");
            FormDefinition formDef = formDefinitionDao.loadById(formDefId, appDef);
            if (formDef != null) {
                json = formDef.getJson();
            }
        }
        if (json != null && json.trim().length() > 0) {
View Full Code Here

Examples of org.joget.apps.app.dao.FormDefinitionDao.loadById()

        }
       
        Form form = null;
        FormDefinitionDao formDefinitionDao = (FormDefinitionDao) AppUtil.getApplicationContext().getBean("formDefinitionDao");
        FormService formService = (FormService) AppUtil.getApplicationContext().getBean("formService");
        FormDefinition formDef = formDefinitionDao.loadById(formId, appDef);
        String formJson = formDef.getJson();

        if (formJson != null) {
            formJson = AppUtil.processHashVariable(formJson, assignment, StringUtil.TYPE_JSON, null);
            form = (Form) formService.loadFormFromJson(formJson, formData);
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.