Package com.cloudbees.plugins.credentials.common

Examples of com.cloudbees.plugins.credentials.common.StandardListBoxModel


            }

            public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context,
                                                       @QueryParameter String remote) {
                if (context == null || !context.hasPermission(Item.CONFIGURE)) {
                    return new StandardListBoxModel();
                }
                return fillCredentialsIdItems(context, remote);
            }
View Full Code Here


              if (remote == null) {
                      domainRequirements = Collections.<DomainRequirement>emptyList();
              } else {
                  domainRequirements = URIRequirementBuilder.fromUri(remote.trim()).build();
              }
              return new StandardListBoxModel()
                      .withEmptySelection()
                      .withMatching(
                              CredentialsMatchers.anyOf(
                                      CredentialsMatchers.instanceOf(StandardUsernamePasswordCredentials.class),
                                      CredentialsMatchers.instanceOf(StandardCertificateCredentials.class),
View Full Code Here

      return Jenkins.getInstance().getDescriptorByType(SubversionSCM.ModuleLocation.DescriptorImpl.class).doCheckRemote(req, context, value);
    }

    public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context, @QueryParameter String tagsDir) {
      if (context == null || !context.hasPermission(Item.BUILD)) {
        return new StandardListBoxModel();
      }
      return Jenkins.getInstance().getDescriptorByType(
              SubversionSCM.ModuleLocation.DescriptorImpl.class).fillCredentialsIdItems(context, tagsDir);
    }
View Full Code Here

            }

            public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context,
                                                         @QueryParameter String realm) {
                if (context == null || !context.hasPermission(Item.CONFIGURE)) {
                    return new StandardListBoxModel();
                }
                List<DomainRequirement> domainRequirements;
                if (realm == null) {
                    domainRequirements = Collections.<DomainRequirement>emptyList();
                } else {
                    if (realm.startsWith("<") && realm.contains(">")) {
                        int index = realm.indexOf('>');
                        assert index > 1;
                        domainRequirements = URIRequirementBuilder.fromUri(realm.substring(1, index).trim()).build();
                    } else {
                        domainRequirements = Collections.<DomainRequirement>emptyList();
                    }
                }
                return new StandardListBoxModel()
                        .withEmptySelection()
                        .withMatching(
                                CredentialsMatchers.anyOf(
                                        CredentialsMatchers.instanceOf(StandardUsernamePasswordCredentials.class),
                                        CredentialsMatchers.instanceOf(StandardCertificateCredentials.class),
View Full Code Here

                                context,
                                ACL.SYSTEM,
                                domainRequirements)
                );
            }
            return new StandardListBoxModel()
                    .withEmptySelection()
                    .withMatching(
                            CredentialsMatchers.anyOf(
                                    CredentialsMatchers.instanceOf(StandardUsernamePasswordCredentials.class),
                                    CredentialsMatchers.instanceOf(StandardCertificateCredentials.class),
View Full Code Here

         */
        @SuppressWarnings("unused") // by stapler
        public ListBoxModel doFillCredentialsIdItems(@AncestorInPath SCMSourceOwner context,
                                                     @QueryParameter String remoteBase) {
            if (context == null || !context.hasPermission(Item.CONFIGURE)) {
                return new StandardListBoxModel();
            }
            List<DomainRequirement> domainRequirements;
            domainRequirements = URIRequirementBuilder.fromUri(remoteBase.trim()).build();
            return new StandardListBoxModel()
                    .withEmptySelection()
                    .withMatching(
                            CredentialsMatchers.anyOf(
                                    CredentialsMatchers.instanceOf(StandardUsernamePasswordCredentials.class),
                                    CredentialsMatchers.instanceOf(StandardCertificateCredentials.class),
View Full Code Here

TOP

Related Classes of com.cloudbees.plugins.credentials.common.StandardListBoxModel

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.