Package org.jabusuite.core.modules.session

Examples of org.jabusuite.core.modules.session.ModulesRemote


    @Override
    protected FmEditJbsBaseObject createEditForm() {
        Logger logger = Logger.getLogger(PnCustomerList.class);
        try {
            logger.debug("Checking if module "+HierarchyCustomer.class.getSimpleName()+" exists...");
            ModulesRemote moduleManagement = (ModulesRemote)ClientTools.getRemoteBean(ModulesRemote.class);
            if (moduleManagement.hasModule(HierarchyCustomer.class.getSimpleName(), ClientGlobals.getUser(), ClientGlobals.getCompany())) {
                logger.debug("Module exists - opening FmHierarchyCustomerEdit");
                return new FmHierarchyCustomerEdit();
            } else {
               logger.debug("Module does not exist - opening FmCustomerEdit");
               return new FmCustomerEdit();
View Full Code Here


    }
   
    protected boolean checkModules(JbsUser user) {
        boolean hasModules = false;
        try {
            ModulesRemote moduleManagement = (ModulesRemote)ClientTools.getRemoteBean(ModulesRemote.class);
            List<Module> modules = moduleManagement.getAllModules(user, null);
            hasModules = (modules!=null) && (modules.size()>0);
            if (!hasModules) {
                JbsOptionPane.showErrorDialog(this, JbsL10N.getString("Login.noLoginPermission"));
            }
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.jabusuite.core.modules.session.ModulesRemote

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.