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;
}
Aggregations