@SuppressWarnings("unchecked") protected Map<String, String> getInstallParameters(String pkgId) { Map<String, String> params = (Map<String, String>) getContext().getRequest().getAttribute(getStorageKey(pkgId)); if (params == null) { params = new HashMap<>(); } return params; }
@SuppressWarnings("unchecked") protected Map<String, String> getInstallParameters(String pkgId) { Map<String, String> params = (Map<String, String>) getContext().getRequest().getAttribute(getStorageKey(pkgId)); if (params == null) { params = new HashMap<>(); } return params; }
protected void storeInstallParameters(String pkgId, Map<String, String> params) { getContext().getRequest().setAttribute(getStorageKey(pkgId), params); }
protected void clearInstallParameters(String pkgId) { getContext().getRequest().setAttribute(getStorageKey(pkgId), null); }
protected void storeInstallParameters(String pkgId, Map<String, String> params) { getContext().getRequest().setAttribute(getStorageKey(pkgId), params); }
protected void clearInstallParameters(String pkgId) { getContext().getRequest().setAttribute(getStorageKey(pkgId), null); }
FormData fdata = getContext().getForm(); Map<String, String> params = getInstallParameters(pkgId); for (Field field : form.getFields()) {
public Object doBulkInstall(@PathParam("pkgId") String pkgId, @QueryParam("source") String source, @QueryParam("confirm") Boolean confirm) { if (!RequestHelper.isInternalLink(getContext())) { return getView("installError").arg("e", new NuxeoException("Installation seems to have been started from an external link.")).arg(
FormData fdata = getContext().getForm(); Map<String, String> params = getInstallParameters(pkgId); for (Field field : form.getFields()) {
public Object doBulkInstall(@PathParam("pkgId") String pkgId, @QueryParam("source") String source, @QueryParam("confirm") Boolean confirm) { if (!RequestHelper.isInternalLink(getContext())) { return getView("installError").arg("e", new NuxeoException("Installation seems to have been started from an external link.")).arg(
@Path(value = "run/{pkgId}") public Object doInstall(@PathParam("pkgId") String pkgId, @QueryParam("source") String source) { if (!RequestHelper.isInternalLink(getContext())) { return getView("installError").arg("e", new NuxeoException("Installation seems to have been started from an external link.")).arg(
@Path(value = "run/{pkgId}") public Object doInstall(@PathParam("pkgId") String pkgId, @QueryParam("source") String source) { if (!RequestHelper.isInternalLink(getContext())) { return getView("installError").arg("e", new NuxeoException("Installation seems to have been started from an external link.")).arg(