Examples of AppService


Examples of org.joget.apps.app.service.AppService

    @Override
    public FormRowSet load(Element element, String primaryKey, FormData formData) {
       
        FormRowSet results = null;
        if (primaryKey != null && primaryKey.trim().length() > 0) {
            AppService appService = (AppService) FormUtil.getApplicationContext().getBean("appService");
            Form form = FormUtil.findRootForm(element);
            form = findFormForLoadBinder(form);
            if (form == null) {
                form = FormUtil.findRootForm(element);
            }
            if (form != null) {
                results = appService.loadFormDataWithoutTransaction(form, primaryKey);

            }
        }
        return results;
    }
View Full Code Here

Examples of org.joget.apps.app.service.AppService

            if (form == null) {
                return rows;
            }

            // store form data
            AppService appService = (AppService) FormUtil.getApplicationContext().getBean("appService");
            String primaryKeyValue = form.getPrimaryKeyValue(formData);
            rows = appService.storeFormData(form, rows, primaryKeyValue);
        }
        return rows;
    }
View Full Code Here

Examples of org.joget.apps.app.service.AppService

    }
   
    public static String getSelectedFormHtml(String formId, String primaryKey, AppDefinition appDef, WorkflowAssignment assignment, Boolean hideEmpty) {
        String html = "";

        AppService appService = (AppService) AppUtil.getApplicationContext().getBean("appService");
        FormData formData = new FormData();
        if (primaryKey != null && !primaryKey.isEmpty()) {
            formData.setPrimaryKeyValue(primaryKey);
        } else if (assignment != null) {
            formData.setPrimaryKeyValue(appService.getOriginProcessId(assignment.getProcessId()));
        }
        if (assignment != null) {
            formData.setProcessId(assignment.getProcessId());
        }
       
View Full Code Here

Examples of org.joget.apps.app.service.AppService

     * @param appId
     * @param version
     * @return
     */
    public String verifyAppVersion(String appId, String version) {
        AppService appService = (AppService)AppUtil.getApplicationContext().getBean("appService");
        AppDefinitionDao appDefinitionDao = (AppDefinitionDao)AppUtil.getApplicationContext().getBean("appDefinitionDao");
        AppDefinition appDef = appService.getAppDefinition(appId, version);
        if (appDef != null) {
            return null;
        }
        // get latest version
        Long latestVersion = appDefinitionDao.getLatestVersion(appId);
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.