Table of Contents

Interface IUserContextAuthorizationCacheManagement

Namespace
GroupeIsa.Neos.Shared.Contexts
Assembly
GroupeIsa.Neos.Shared.dll

Provides the functionalities of cache management of user context authorizations.

public interface IUserContextAuthorizationCacheManagement

Methods

AddOrReplaceAuthorizedValues<T>(string?, string, string, params T[])

Adds or replaces values in the cache for the specified tenant identifier, user identifier and key context.

void AddOrReplaceAuthorizedValues<T>(string? tenantId, string userId, string key, params T[] values)

Parameters

tenantId string

The tenant identifier.

userId string

The userId identifier.

key string

The key.

values T[]

Values to add or replace.

Type Parameters

T

Type of values.

GetValues<T>(string?, string, string)

Gets the values in the cache for the specified tenant identifier, user identifier and key context.

IEnumerable<T> GetValues<T>(string? tenantId, string userId, string key)

Parameters

tenantId string

The tenant identifier.

userId string

The userId identifier.

key string

The key.

Returns

IEnumerable<T>

The values.

Type Parameters

T

Type of the values.

RemoveAuthorizedValue<T>(string, string, string, T)

Removes a value in the cache for the specified tenant identifier, user identifier and key context.

bool RemoveAuthorizedValue<T>(string tenantId, string userId, string key, T value) where T : notnull

Parameters

tenantId string

The tenant identifier.

userId string

The userId identifier.

key string

The key.

value T

The value to remove.

Returns

bool

A value indicating wether the value has been removed.

Type Parameters

T

Type of the value.

RemoveAuthorizedValue<T>(string, string, T)

Removes a value in the cache for user identifier and key context.

void RemoveAuthorizedValue<T>(string userId, string key, T value) where T : notnull

Parameters

userId string

The userId identifier.

key string

The key.

value T

The value to remove.

Type Parameters

T

Type of the value.

ResetAuthorizedValues(string, string)

Resets the cache for the specified user identifier and key context.

void ResetAuthorizedValues(string userId, string key)

Parameters

userId string

The userId identifier.

key string

The key.

ResetAuthorizedValues(string, string, string)

Resets the cache for the specified tenant identifier, user identifier and key context.

bool ResetAuthorizedValues(string tenantId, string userId, string key)

Parameters

tenantId string

The tenant identifier.

userId string

The userId identifier.

key string

The key.

Returns

bool

A value indicating wether the value has been reset.