public class CacheKey extends Object
| Constructor and Description |
|---|
CacheKey(String path,
String languageCode)
A key used to identify a cache entry.
|
CacheKey(String path,
String languageCode,
String accessToken,
String userAuthId)
A key used to identify a cache entry.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAccessToken()
Get the access token that should be used on REST calls to the MDR when a user is logged in.
|
String |
getLanguageCode()
Get the language code for the request.
|
String |
getPath()
Get the MDR REST path to call.
|
String |
getUserAuthId()
Get the user authentication server id.
|
int |
hashCode() |
void |
setAccessToken(String accessToken)
Set the access token that should be used on REST calls to the MDR when a user is logged in.
|
void |
setLanguageCode(String languageCode)
Set the language code for the request.
|
void |
setPath(String path)
Set the MDR REST path to call.
|
void |
setUserAuthId(String userAuthId)
Set the user authentication server id.
|
String |
toString() |
public CacheKey(String path, String languageCode)
path - the MDR REST path to calllanguageCode - the language code for the requestpublic CacheKey(String path, String languageCode, String accessToken, String userAuthId)
path - the MDR REST path to calllanguageCode - the language code for the requestaccessToken - Access token, obtained from OSSE.Auth, that should be used on REST calls to
the MDR when a user is logged in. Use null for anonymous access.userAuthId - The user authentication server id of the user who is logged in. It is used
for the cache loader key - the user specific calls are cached across
sessions. Use null for anonymous access.public final String getPath()
public final void setPath(String path)
path - the MDR REST path to callpublic final String getLanguageCode()
public final void setLanguageCode(String languageCode)
languageCode - the language code for the requestpublic final String getAccessToken()
public final void setAccessToken(String accessToken)
accessToken - Access token, obtained from OSSE.Auth.public final String getUserAuthId()
public final void setUserAuthId(String userAuthId)
userAuthId - the user authentication server id of the user who is logged in. Use null for
anonymous access.Copyright © 2022 Samply Community. All rights reserved.