Examples of TemplateBundle


Examples of com.github.dynamicextensionsalfresco.controlpanel.template.TemplateBundle

      final Map<String, Object> model) throws IOException {
    if (bundle != null) {
      if (bundle.getBundleId() == 0) {
        model.put(Variables.SYSTEM_PACKAGE_COUNT, getSystemPackages().size());
      }
      model.put(Variables.BUNDLE, new TemplateBundle(bundle));
    } else {
      return new ErrorResolution(HttpServletResponse.SC_NOT_FOUND);
    }
    return new TemplateResolution(model);
  }
View Full Code Here

Examples of com.github.dynamicextensionsalfresco.controlpanel.template.TemplateBundle

    responseHelper.checkBundleInstallConfiguration();
    if (file != null) {
      if (file.getFilename().endsWith(".jar")) {
        try {
          final Bundle installedBundle = bundleHelper.installBundleInRepository(file);
          responseHelper.setFlashVariable(Variables.INSTALLED_BUNDLE, new TemplateBundle(installedBundle));
        } catch (final Exception e) {
          responseHelper.flashErrorMessage(String.format("Error installing Bundle: %s", e.getMessage()));
        }
      } else {
        responseHelper.flashErrorMessage(String.format("Not a JAR file: %s", file.getFilename()));
View Full Code Here

Examples of com.github.dynamicextensionsalfresco.controlpanel.template.TemplateBundle

  /* Utility operations */

  protected Collection<TemplateBundle> toTemplateBundles(final Collection<Bundle> bundles) {
    final List<TemplateBundle> templateBundles = new ArrayList<TemplateBundle>();
    for (final Bundle bundle : bundles) {
      templateBundles.add(new TemplateBundle(bundle));
    }
    Collections.sort(templateBundles);
    return templateBundles;
  }
View Full Code Here

Examples of com.github.dynamicextensionsalfresco.controlpanel.template.TemplateBundle

        final Map<Long, List<ServiceReference>> servicesByBundleId = getServicesByBundleId();
    final List<TemplateBundle> templateBundles = new ArrayList<TemplateBundle>(servicesByBundleId.keySet().size());
    for (final Entry<Long, List<ServiceReference>> entry : servicesByBundleId.entrySet()) {
      final Bundle bundle = bundleHelper.getBundle(entry.getKey());
      final List<ServiceReference> services = servicesByBundleId.get(entry.getKey());
      templateBundles.add(new TemplateBundle(bundle, services));
    }
    return templateBundles;
  }
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.