Package org.joget.apps.app.dao

Examples of org.joget.apps.app.dao.AppDefinitionDao


     * @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);
        if (latestVersion != null && latestVersion != 0) {
            return "redirect:/web/console/app/" + appId + "/processes";
        } else {
            // no version found, redirect to home page
            return "redirect:/web/console/home";
View Full Code Here

TOP

Related Classes of org.joget.apps.app.dao.AppDefinitionDao

Copyright © 2018 www.massapicom. 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.