Package de.innovationgate.wgpublisher.webtml.utils

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.db()


            TMLContext con = fetchInitialContext(Context.getCurrentContext());
            WGAPlugin plugin = con.getwgacore().getPluginSet().getPluginByUniqueName((String) arg1);
            if (plugin == null || !plugin.isActive() || !plugin.isValid()) {
                return null;
            }
            WGDatabase db = con.db(plugin.buildDatabaseKey());
            if (db != null) {
                return new Plugin(db);
            }
            else {
                return null;
View Full Code Here


        }
        else if (ref instanceof WGDatabase) {
            _designContext = tmlContext.getDesignContext().createContextDelegate((WGDatabase) ref, null);
        }
        else if (ref instanceof String) {
            WGDatabase designDB = tmlContext.db((String) ref);
            if (designDB != null && designDB.isSessionOpen()) {
                _designContext = tmlContext.getDesignContext().createContextDelegate((WGDatabase) designDB, null);
            }
        }
        else if (ref instanceof NativeObject) {
View Full Code Here

            if (_currentAction == null) {
                throw new IllegalArgumentException("Cannot determine design of parameter object");
            }

            String dbKey = _currentAction.getModuleDatabase();
            WGDatabase designDB = tmlContext.db(dbKey);       
            if (designDB != null && designDB.isSessionOpen()) {
                _designContext = tmlContext.getDesignContext().createContextDelegate((WGDatabase) designDB, null);
            }
        }
        else {
View Full Code Here

       
        PluginDesignProvider pluginProvider = (PluginDesignProvider) provider;
        String dbKey = pluginProvider.getDesignDBKey();
       
       
        WGDatabase db = context.db(dbKey);
        if (db == null) {
            return null;
        }
       
        return new Plugin(db);
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.