@Override public PropertySet getPropertySet() { return propertySetRef.get(); } }
@SuppressWarnings ("ConstantConditions") @Nonnull @Override public Iterable<HelpUrl> load() { return lazyReference.get(); }
@Override public Collection<String> getIndexedChangeHistoryFieldNames() { return ref.get().keySet(); }
@Override public Collection<IndexedChangeHistoryField> getIndexedChangeHistoryFields() { return Collections.unmodifiableCollection(ref.get().values()); }
/** * Returns the hour of day in the current user's time zone, in 24-hour format. * * @return the hour of day in the current user's time zone */ public String getHourOfDay() { return hourOfDayFormatter.get().format(new Date()); }
@Override public Object getView(final String anActionName, final String aViewName) { return resettableDynamicViewMapping.get().getView(anActionName, aViewName); }
@Override public URI getAvatarURL(ApplicationUser remoteUser, ApplicationUser avatarUser) throws AvatarsDisabledException { return getAvatarURLImpl(remoteUser, false, avatarUser, defaultAvatarSize.get()); }
public NameResolver getNameResolver(String fieldName) { return ref.get().get(fieldName).getNameResolver(); } }
@SuppressWarnings ("ConstantConditions") public MailServer getMailServer(String name) throws MailException { return cacheSupplier.get().getMailServer(name); }
@Nonnull @Override public Map<String, Object> getVelocityParameters(Issue issue, CustomField field, FieldLayoutItem fieldLayoutItem) { Map<String, Object> velocityParameters = super.getVelocityParameters(issue, field, fieldLayoutItem); velocityParameters.put("dateFieldFormat", dateFieldFormat); velocityParameters.put("iso8601Formatter", iso8601Formatter.get()); return velocityParameters; }
@SuppressWarnings ("ConstantConditions") private List<MailServer> getAllServers() { return cacheSupplier.get().getAll(); }
@Override public ClusterLock getLockForName(@Nonnull final String lockName) { lockCleaned.get(); return super.getLockForName(lockName); } }
@Override @ClusterSafe("LOCAL_CACHE") public synchronized void addIndexedChangeHistoryField(IndexedChangeHistoryField field) { ref.get().put(field.getFieldName(), field); }
@Override public void disablePluginModule(final String completeKey) { disablePluginModuleLocalOnly(completeKey); pluginMessageSenderRef.get().sendPluginModuleDisabledMessage(completeKey); }
private void validateAllCustomFields(final Issue issue, final ImmutableSet.Builder<String> builder) { // due to issue object being passed to create method as a plain Issue // we can't get the list of modified fields and have to iterate over all fields // but this is for create method so each fields has to be checked final List<CustomField> customFieldObjects = customFieldManagerLazyReference.get().getCustomFieldObjects(issue); for (final CustomField cf : customFieldObjects) { validateCustomField(issue, builder, cf); } }
@Override public void disablePlugin(final String key) { disablePluginLocalOnly(key); pluginMessageSenderRef.get().sendPluginDisabledMessage(key); }
@EventListener public void onPluginModuleDisabled(final PluginModuleDisabledEvent event) { if (event.getModule() instanceof WebworkModuleDescriptor) { resettableDynamicViewMapping.get().getCache().clear(); } } }
@Override public void enablePlugins(String... keys) { super.enablePlugins(keys); for (String key : keys) { processEnabledPlugin(key); pluginMessageSenderRef.get().sendPluginEnabledMessage(key); } }
private URI getAvatarURLImpl(ApplicationUser remoteUser, boolean skipPermissionCheck, ApplicationUser avatarUser, Size size) { return URI.create(jiraAvatarSupport.get().getAvatar(avatarUser, size != null ? size.getParam() : defaultAvatarSize.get().getParam()).getUrl()); }
@PluginEventListener public void onPluginUpgradedEvent(PluginUpgradedEvent upgradedEvent) { pluginMessageSenderRef.get().sendPluginUpgradedMessage(upgradedEvent.getPlugin().getKey()); }