Search in sources :

Example 1 with ListBoxModel

use of hudson.util.ListBoxModel in project blueocean-plugin by jenkinsci.

the class BlueOceanCredentialsProvider method getCredentialIds.

@Nonnull
@Override
public <C extends IdCredentials> ListBoxModel getCredentialIds(@Nonnull Class<C> type, @Nullable ItemGroup itemGroup, @Nullable Authentication authentication, @Nonnull List<DomainRequirement> domainRequirements, @Nonnull CredentialsMatcher matcher) {
    ListBoxModel result = new ListBoxModel();
    FolderPropertyImpl prop = propertyOf(itemGroup);
    if (prop != null && prop.domain.test(domainRequirements)) {
        result.add(Messages.BlueOceanCredentialsProvider_DisplayName(), prop.getId());
    }
    return result;
}
Also used : ListBoxModel(hudson.util.ListBoxModel) Nonnull(javax.annotation.Nonnull)

Aggregations

ListBoxModel (hudson.util.ListBoxModel)1 Nonnull (javax.annotation.Nonnull)1