/** * Returns the {@link com.cloudbees.plugins.credentials.domains.DomainCredentials} * * @return the {@link com.cloudbees.plugins.credentials.domains.DomainCredentials} * @since 3.10 */ @SuppressWarnings("unused") // used by stapler public List<DomainCredentials> getDomainCredentials() { return DomainCredentials.asList(getDomainCredentialsMap()); }
/** * Get all the credentials. * * @return all the credentials. * @since 1.5 */ @SuppressWarnings("unused") // used by stapler public List<DomainCredentials> getDomainCredentials() { return DomainCredentials.asList(getDomainCredentialsMap()); }
/** * Get all the credentials. * * @return all the credentials. * @since 1.5 */ @SuppressWarnings("unused") // used by stapler public List<DomainCredentials> getDomainCredentials() { return DomainCredentials.asList(getDomainCredentialsMap()); }
/** * Returns the {@link com.cloudbees.plugins.credentials.domains.DomainCredentials} * * @return the {@link com.cloudbees.plugins.credentials.domains.DomainCredentials} * @since 3.10 */ @SuppressWarnings("unused") // used by stapler public List<DomainCredentials> getDomainCredentials() { return DomainCredentials.asList(getDomainCredentialsMap()); }
/** * Returns the {@link com.cloudbees.plugins.credentials.domains.DomainCredentials} * * @return the {@link com.cloudbees.plugins.credentials.domains.DomainCredentials} * @since 1.5 */ @SuppressWarnings("unused") // used by stapler public List<DomainCredentials> getDomainCredentials() { checkPermission(CredentialsProvider.VIEW); return DomainCredentials.asList(getDomainCredentialsMap()); }
/** * Returns the {@link com.cloudbees.plugins.credentials.domains.DomainCredentials} * * @return the {@link com.cloudbees.plugins.credentials.domains.DomainCredentials} * @since 1.5 */ @SuppressWarnings("unused") // used by stapler public List<DomainCredentials> getDomainCredentials() { checkPermission(CredentialsProvider.VIEW); return DomainCredentials.asList(getDomainCredentialsMap()); }
/** * Helper method used by the {@code domainCredentials.jelly} taglib to ensure the list is valid. * * @param list the list. * @return the list with fixes applied. */ @NonNull public static List<DomainCredentials> fixList(@CheckForNull List<DomainCredentials> list) { Map<Domain, List<Credentials>> map = asMap(list); if (!map.containsKey(Domain.global())) { map.put(Domain.global(), new CopyOnWriteArrayList<Credentials>()); } return asList(map); }
/** * Helper method used by the {@code domainCredentials.jelly} taglib to ensure the list is valid. * * @param list the list. * @return the list with fixes applied. */ @NonNull public static List<DomainCredentials> fixList(@CheckForNull List<DomainCredentials> list) { Map<Domain, List<Credentials>> map = asMap(list); if (!map.containsKey(Domain.global())) { map.put(Domain.global(), new CopyOnWriteArrayList<Credentials>()); } return asList(map); }