Package com.adito.extensions

Examples of com.adito.extensions.ExtensionBundle.stop()


      reload(currentBundle.getId());
      ExtensionBundle newBundle = getExtensionBundle(currentBundle.getId());
      installExtension(newBundle);
      postInstallExtension(newBundle, request);
      if (newBundle.getStatus().isStartedOrActivated()) {
        newBundle.stop();
        newBundle.start();
        newBundle.activate();
      }
      fireBundleEvent(CoreEventConstants.UPDATE_EXTENSION, newBundle);
      return newBundle;
View Full Code Here


        String id = request.getParameter("id");
        PolicyUtil.checkPermission(PolicyConstants.EXTENSIONS_RESOURCE_TYPE,
            PolicyConstants.PERM_CHANGE,
            getSessionInfo(request).getUser());
        ExtensionBundle bundle = ExtensionStore.getInstance().getExtensionBundle(id);
        bundle.stop();
        ActionMessages messages = new ActionMessages();
        messages.add(Globals.MESSAGE_KEY, new ActionMessage("extensionStore.message.applicationDisable", bundle.getName()));
        saveMessages(request, messages);
        return mapping.findForward("list");
    }
View Full Code Here

        ExtensionBundle bundle = ExtensionStore.getInstance().getExtensionBundle(id);
        if (!bundle.canDisable()) {
            throw new Exception("Bundle cannot be disabled.");
        }
        if (!bundle.isContainsPlugin()) {
            bundle.stop();
        }
        ExtensionStore.getInstance().disableExtension(id);
        if(bundle.isContainsPlugin()) {
          GlobalWarningManager.getInstance().addMultipleGlobalWarning(new GlobalWarning(GlobalWarning.MANAGEMENT_USERS, new BundleActionMessage("extensions",
                            "extensionStore.message.stateChangeRestartRequired"), DismissType.DISMISS_FOR_USER));
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.