Package com.github.dynamicextensionsalfresco.webscripts.resolutions

Examples of com.github.dynamicextensionsalfresco.webscripts.resolutions.RedirectResolution


@Component
@WebScript(families = "control panel")
public class IndexHandler extends AbstractControlPanelHandler {
  @Uri("/dynamic-extensions/")
  public Resolution redirectToBundles(@Attribute final ResponseHelper response) {
    return new RedirectResolution(Urls.BUNDLES);
  }
View Full Code Here


        responseHelper.flashErrorMessage(String.format("Not a JAR file: %s", file.getFilename()));
      }
    } else {
      responseHelper.flashErrorMessage("No file uploaded.");
    }
        return new RedirectResolution(Urls.BUNDLES);
  }
View Full Code Here

        responseHelper.flashErrorMessage("Error uninstalling Bundle");
      }
    } else {
      responseHelper.flashErrorMessage(String.format("Cannot delete bundle. Bundle with ID %s not found.", id));
    }
    return new RedirectResolution(Urls.BUNDLES);
  }
View Full Code Here

      try {
        bundle.start();
        final String message = String.format("Started bundle %s %s",
            bundle.getHeaders().get(Constants.BUNDLE_NAME), bundle.getVersion());
        responseHelper.flashSuccessMessage(message);
        return new RedirectResolution(Urls.BUNDLES);
      } catch (final BundleException e) {
        responseHelper.flashErrorMessage(String.format("Error starting Bundle: %s", e.getMessage()));
                return new RedirectToBundle(bundle);
            }
    } else {
      responseHelper.flashErrorMessage(String.format("Cannot start bundle. Bundle with ID %d not found.", id));
      return new RedirectResolution("/dynamic-extensions/bundles");
    }
  }
View Full Code Here

TOP

Related Classes of com.github.dynamicextensionsalfresco.webscripts.resolutions.RedirectResolution

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.