@Override public void destroy() { lastScan.remove(KEY); } }
@Override public void refreshConfigurationSchemes(Long customFieldId) { fieldConfigSchemeManager.init(); customFieldsById.remove(customFieldId); }
private void invalidateChildrenCacheEntry(final Long directoryId, final String parentName, final MembershipType type) { MembershipKey key = MembershipKey.getKey(directoryId, parentName, type); childrenCache.remove(key); }
@Override public void remove(final long directoryId, final String name) { cache.remove(getKeyLowerCase(directoryId, name)); }
private void invalidateParentsCacheEntry(final Long directoryId, final String childName, final MembershipType type) { MembershipKey key = MembershipKey.getKey(directoryId, childName, type); parentsCache.remove(key); }
public void remove(BandanaContext context, String key) { cache.remove(new PersisterKey(context, key)); } }
private void flushFavourites(final ApplicationUser user, final SharedEntity.TypeDescriptor<?> typeDescriptor) { if (user != null) { favouritesCache.remove(new Key(user.getKey(), typeDescriptor)); } }
protected void refreshCaches(final Long id) { // Remove the scheme's field layout from the cache fieldLayoutCache.remove(id == null ? NULL_ID_SENTINEL : id); // Clear the ColumnLayout cache ComponentAccessor.getColumnLayoutManager().refresh(); }
public void updateDefaultRoleActors(final DefaultRoleActors defaultRoleActors) { delegate.updateDefaultRoleActors(defaultRoleActors); this.defaultRoleActors.remove(defaultRoleActors.getProjectRoleId()); }
public void unregisterLoggedInUser(String userName, String sessionId) { Set<String> sessionIds = getLoggedInUserSessionIds(userName); sessionIds.remove(sessionId); if (sessionIds.isEmpty()) { getLoggedInUsersCache().remove(userName); } else { cacheLoggedInUser(userName, sessionIds); } } }
public JiraWorkflow createDraftWorkflow(final ApplicationUser author, final JiraWorkflow parentWorkflow) throws DataAccessException, IllegalStateException, IllegalArgumentException { final JiraWorkflow draftWorkflow = delegate.createDraftWorkflow(author, parentWorkflow); draftWorkflowCache.remove(parentWorkflow.getName()); return draftWorkflow; }
@Override public void removeContextsForConfigScheme(@Nonnull FieldConfigScheme fieldConfigScheme) { worker.removeContextsForConfigScheme(fieldConfigScheme); if (fieldConfigScheme.getField() != null) { fieldContextCache.remove(fieldConfigScheme.getField().getId()); configSchemeIssueTypeCache.remove(fieldConfigScheme.getId()); } }
public OptionSet updateOptionSet(@Nonnull FieldConfig config, Collection optionIds) { notNull("config", config); try { return optionSetManager.updateOptionSet(config, optionIds); } finally { cache.remove(config.getId()); } }
@Override public void restoreSearchRequestColumnLayout(SearchRequest searchRequest) throws ColumnLayoutStorageException { resetFilterColumnLayout(searchRequest.getId()); // Clear the search request column layout and search request column layout items from caches filterColumnLayoutCache.remove(searchRequest.getId()); }
@Override public void storeAttributes(final User user, final Map<String, Set<String>> attributes) throws UserNotFoundException { // Need the user's id, which is only in the database and not in the cache. final Long userId = findUserId(user); for (final Map.Entry<String, Set<String>> attribute : Assertions.notNull(attributes).entrySet()) { updateAttribute(userId, user, attribute); } // Clear the cache for this user userAttributesCache.remove(new AttributeKey(user.getDirectoryId(), userId)); }
public void updateIssueTypeScreenSchemeEntity(final IssueTypeScreenSchemeEntity issueTypeScreenSchemeEntity) { ofBizDelegator.store(issueTypeScreenSchemeEntity.getGenericValue()); schemeCache.remove(issueTypeScreenSchemeEntity.getFieldScreenScheme().getId()); }
public void removeIssueTypeScreenScheme(final IssueTypeScreenScheme issueTypeScreenScheme) { getOfBizDelegator().removeValue(issueTypeScreenScheme.getGenericValue()); schemeCache.remove(issueTypeScreenScheme.getId()); }
@Override public void removeCustomField(CustomField customField) throws RemoveException { removeCustomFieldAssociations(customField.getId()); customField.remove(); customFieldsById.remove(customField.getIdAsLong()); customFieldsByName.remove(customField.getName()); allCustomFieldIds.reset(); refreshSearchersAndIndexers(); fieldManager.refresh(); }
@Override public void storeEditableUserColumnLayout(EditableUserColumnLayout editableUserColumnLayout) throws ColumnLayoutStorageException { final String userName = editableUserColumnLayout.getUser().getName(); final String userKey = notNull("userKey", userKeyService.getKeyForUsername(userName)); storeEditableColumnLayout(editableUserColumnLayout, userKey); // Clear the user's column layout items from cache userColumnLayoutCache.remove(wrap(userKey)); }
@Override public void removeAttribute(final User user, final String attributeName) throws UserNotFoundException { // Need the user's id, which is only in the database and not in the cache. final GenericValue userGenericValue = findUserGenericValue(user.getDirectoryId(), user.getName()); Long userId = userGenericValue.getLong(UserEntity.USER_ID); ofBizDelegator.removeByAnd(UserAttributeEntity.ENTITY, of(UserAttributeEntity.USER_ID, userGenericValue.getLong(UserEntity.USER_ID), UserAttributeEntity.NAME, attributeName)); userAttributesCache.remove(new AttributeKey(user.getDirectoryId(), userId)); }