@Override public SortedSet<String> getSupportEntitlementNumbers() { return cache.get().sens(); }
public String[] getWorkflowNames() { final String[] names = allNamesCache.get(); return Arrays.copyOf(names, names.length); }
/** * Formats time duration with given locale * * @param duration time duration to format * @param locale user's locale * @return formatted time duration */ public String getFormattedDuration(Long duration, Locale locale) { return formatterRef.get().format(duration, locale); }
/** * Returns i18n resource key for the current formatter * * @return i18n resource key */ public String getI18nKey() { return formatterRef.get().getI18nKey(); }
/** * Formats time duration with default (system) locale * * @param duration time duration to format * @return formatted time duration */ public String getFormattedDuration(Long duration) { return formatterRef.get().format(duration); }
/** * Formats time duration in the most compact way possible. * * @param duration time duration to format * @return formatted time duration */ public String getShortFormattedDuration(Long duration) { return formatterRef.get().shortFormat(duration); }
@Override public TrustedApplicationInfo get(final long id) { return cache.get().get(id); }
@Override public Project getProjectObjByKeyIgnoreCase(final String projectKey) { return cache.get().getProjectByKeyIgnoreCase(projectKey); }
@Override public KeyPair getKeyPair() { return cache.get().first(); }
@Override public Set<TrustedApplicationData> getAll() { return cache.get().getAll(); }
@Override public TrustedApplicationData getByApplicationId(final String applicationId) { return cache.get().get(applicationId); }
@Nonnull @Override public Map<String, Long> getAllProjectKeys() { return cache.get().getAllProjectKeys(); }
@Nonnull @Override public Set<String> getProjectKeys(final Long projectId) { return cache.get().getProjectKeys(projectId); }
@Override public boolean containsType(final String userFormatType) { return mappingPSRef.get().getString(userFormatType) != null; }
public List<CustomField> getCustomFieldObjects() { List<Long> ids = allCustomFieldIds.get(); List<CustomField> customFields = getCustomFieldsFromIds(ids); Collections.sort(customFields, CustomFieldComparators.byName()); return Collections.unmodifiableList(customFields); }
public Application findByName(final String name) throws ApplicationNotFoundException { for (Application application : applicationCache.get()) { if (application.getName().equals(name)) { return application; } } throw new ApplicationNotFoundException(name); }
@Nonnull @Override public LicenseDetails getLicense(@Nonnull String licenseString) { notNull("licenseString", licenseString); //noinspection RedundantCast return cache.get().lookupByLicenseString(licenseString) .getOrElse((Supplier<LicenseDetails>) () -> licenseDetailsFactory.getLicense(licenseString)); }
public void setUserFormatKeyForType(final String userFormatType, final String moduleKey) { mappingPSRef.get().setString(userFormatType, moduleKey); mappingPSRef.reset(); }