Examples of ExtensionBundle


Examples of com.adito.extensions.ExtensionBundle

                        new Permission[] { PolicyConstants.PERM_PERSONAL_CREATE_EDIT_AND_DELETE }));
  }

  public void coreEvent(CoreEvent evt) {
    if (evt.getId() == CoreEventConstants.REMOVING_EXTENSION) {
      ExtensionBundle bundle = (ExtensionBundle) evt.getParameter();
      for (Iterator itr = bundle.iterator(); itr.hasNext();) {
        ExtensionDescriptor app = (ExtensionDescriptor) itr.next();
        try {
          ApplicationShortcutDatabaseFactory.getInstance().removeApplicationShortcuts(app.getId());
        } catch (Exception e) {
          log.error("Failed to remove application shortcuts for removed extension " + bundle.getId());
        }
      }
    }

  }
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.