return FormValidation.error("Unacceptable characters"); FormValidation problem = checkForDuplicates(value, context, context); if (problem != null) { return problem; User me = User.current(); if (me != null) { problem = checkForDuplicates(value, context, me); if (problem != null) { return problem; problem = checkForDuplicates(value, context, j); if (problem != null) { return problem;
return FormValidation.error("Unacceptable characters"); FormValidation problem = checkForDuplicates(value, context, context); if (problem != null) { return problem; User me = User.current(); if (me != null) { problem = checkForDuplicates(value, context, me); if (problem != null) { return problem; problem = checkForDuplicates(value, context, j); if (problem != null) { return problem;
/** * Gets the check id url for the specified store. * * @param store the store. * @return the url of the id check endpoint. * @throws UnsupportedEncodingException if the JVM does not implement the JLS. */ public String getCheckIdUrl(CredentialsStore store) throws UnsupportedEncodingException { ModelObject context = store.getContext(); for (ContextResolver r : ExtensionList.lookup(ContextResolver.class)) { String token = r.getToken(context); if (token != null) { return Jenkins.getActiveInstance().getRootUrlFromRequest() + "/" + getDescriptorUrl() + "/checkId?provider=" + r.getClass().getName() + "&token=" + URLEncoder.encode(token, "UTF-8"); } } return Jenkins.getActiveInstance().getRootUrlFromRequest() + "/" + getDescriptorUrl() + "/checkId?provider=null&token=null"; }
/** * Gets the check id url for the specified store. * * @param store the store. * @return the url of the id check endpoint. * @throws UnsupportedEncodingException if the JVM does not implement the JLS. */ public String getCheckIdUrl(CredentialsStore store) throws UnsupportedEncodingException { ModelObject context = store.getContext(); for (ContextResolver r : ExtensionList.lookup(ContextResolver.class)) { String token = r.getToken(context); if (token != null) { return Jenkins.getActiveInstance().getRootUrlFromRequest() + "/" + getDescriptorUrl() + "/checkId?provider=" + r.getClass().getName() + "&token=" + URLEncoder.encode(token, "UTF-8"); } } return Jenkins.getActiveInstance().getRootUrlFromRequest() + "/" + getDescriptorUrl() + "/checkId?provider=null&token=null"; }