public class UserNoteTOCacheKey extends Object implements CacheKey
UserNoteEntityTO
Constructor and Description |
---|
UserNoteTOCacheKey(Long userId,
Long noteId) |
UserNoteTOCacheKey(UserNoteEntityTO userNoteEntityTO) |
Modifier and Type | Method and Description |
---|---|
String |
getCacheKeyString()
String representation of the cache key which will be used for caching.
|
Long |
getNoteId() |
Long |
getUserId() |
boolean |
isUniquePerClient()
Returns true if the cache key should be treated as client specific.
|
public UserNoteTOCacheKey(Long userId, Long noteId)
userId
- the id of the user for entity to getnoteId
- the id of the note for entity to getpublic UserNoteTOCacheKey(UserNoteEntityTO userNoteEntityTO)
userNoteEntityTO
- use the user and note id to get it from the cachepublic String getCacheKeyString()
getCacheKeyString
in interface CacheKey
public Long getNoteId()
public Long getUserId()
public boolean isUniquePerClient()
isUniquePerClient
in interface CacheKey
Copyright © 2019 Communote team. All rights reserved.