/** * Sets the duration formatter with a new instance of a particular formatter chosen based on the settings in the * application properties and authentication context * * @param applicationProperties application properties * @param authenticationContext authentication context */ public void updateFormatters(ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext) { formatterRef.reset(); }
@Override public void refresh() { helperResettableLazyReference.reset(); }
public void refresh() { allIssueIndexers.reset(); } }
/** * Invoked by {@link OfBizCacheFlushingManager} to ensure caches are being flushed in the right order on * {@link com.atlassian.crowd.event.migration.XMLRestoreFinishedEvent} */ public synchronized void flushCache() { directoryCache.reset(); }
@EventListener public void onClearCache(@SuppressWarnings("unused") final ClearCacheEvent event) { cache.reset(); }
@Override public TrustedApplicationInfo store(final String user, final TrustedApplicationInfo info) { final TrustedApplicationInfo result = delegate.store(user, info); cache.reset(); return result; }
@EventListener public void onClearCache(final ClearCacheEvent event) { cache.reset(); }
public ProjectRole addProjectRole(final ProjectRole projectRole) { try { return delegate.addProjectRole(projectRole); } finally { projectRoles.reset(); } }
@SuppressWarnings ({ "UnusedDeclaration" }) @EventListener public void onClearCache(final ClearCacheEvent event) { fieldConfigsById.reset(); }
private void removeWorkflowFromCache(final String name) { workflowCache.remove(name); allNamesCache.reset(); }
public void setUserFormatKeyForType(final String userFormatType, final String moduleKey) { mappingPSRef.get().setString(userFormatType, moduleKey); mappingPSRef.reset(); }
private void removeService(final JiraServiceContainer jiraServiceContainer) { serviceConfigStore.removeServiceConfig(jiraServiceContainer); unscheduleJob(jiraServiceContainer); servicesReference.reset(); }
@EventListener public void onClearCache(final ClearCacheEvent event) { workflowCache.removeAll(); allNamesCache.reset(); }
@EventListener public void onEvent(final IssueSecuritySchemeDeletedEvent event) { clearUsersLevels(); idToSecurityLevelCache.reset(); }
public void removeRemoteAddress(final long applicationId, final RemoteAddress remoteAddress) { ofBizDelegator.removeByAnd(RemoteAddressEntity.ENTITY, of(RemoteAddressEntity.APPLICATION_ID, applicationId, RemoteAddressEntity.ADDRESS, remoteAddress.getAddress())); // Rebuild the full cache (this would be very rare) applicationCache.reset(); }
public void updateOptions(Collection<Option> options) { super.updateOptions(options); for (Option option : options) { removeOptionFromCaches(option); } optionsCache.removeAll(); allCache.reset(); }
public Option createOption(FieldConfig fieldConfig, Long parentOptionId, Long sequence, String value) { Option option = super.createOption(fieldConfig, parentOptionId, sequence, value); removeOptionFromCaches(option); optionsCache.removeAll(); allCache.reset(); return option; }
public FieldConfig create(final FieldConfig config, final List<FieldConfigItemType> configurationItemTypes) { final Map<String, Object> fields = transformToFieldsMap(config); final GenericValue createdGV = EntityUtils.createValue(ENTITY_TABLE_NAME, fields); fieldConfigsById.reset(); return transformToDomainObject(createdGV, configurationItemTypes); }
public synchronized Directory update(final Directory directory) throws DirectoryNotFoundException { final GenericValue gv = DirectoryEntity.setData(directory, findDirectoryById(directory.getId())); gv.set(DirectoryEntity.UPDATED_DATE, new Timestamp(System.currentTimeMillis())); storeDirectory(gv); storeAttributes(directory); storeOperations(directory); // Rebuild the full cache (this would be very rare) directoryCache.reset(); // Find the latest copy of the Directory return findById(directory.getId()); }
private void pushMessage(final ApplicationUser user) { final String key = user != null ? user.getKey() : null; propertiesReference.get().setString(PS_KEY_USER, key == null ? "" : key); propertiesReference.get().setDate(PS_KEY_TIME, getCurrentDate()); propertiesReference.reset(); }