com.sap.cloud.sdk.cloudplatform.cache.CacheKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of caching Show documentation
Show all versions of caching Show documentation
Cloud platform functionality for caching.
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.cloud.sdk.cloudplatform.cache;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Optional;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.sap.cloud.sdk.cloudplatform.security.user.UserAccessor;
import com.sap.cloud.sdk.cloudplatform.security.user.exception.UserAccessException;
import com.sap.cloud.sdk.cloudplatform.security.user.exception.UserNotAuthenticatedException;
import com.sap.cloud.sdk.cloudplatform.tenant.TenantAccessor;
import com.sap.cloud.sdk.cloudplatform.tenant.exception.TenantAccessException;
import com.sap.cloud.sdk.cloudplatform.tenant.exception.TenantNotAvailableException;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
/**
* CacheKey with either global visibility, tenant isolation, or tenant & user isolation.
*/
@EqualsAndHashCode
@ToString
public final class CacheKey
{
@Nullable
private final String tenantId;
@Nullable
private final String userName;
@Getter
private final ArrayList