public class ProfileRetrievalServiceImpl extends Object implements ProfileRetrievalService
| Constructor and Description |
|---|
ProfileRetrievalServiceImpl(DFSConfig dfsConfig,
StorageReadService readService,
StorageCheckService checkService,
BucketAccessService access,
GsonSerde serde,
UserProfileCache userProfileCache) |
| Modifier and Type | Method and Description |
|---|---|
UserPrivateProfile |
privateProfile(UserIDAuth ofUser)
Reads user private profile from DFS, uses
UserProfileCache for caching it |
UserPublicProfile |
publicProfile(UserID ofUser)
Reads user public profile from DFS, uses
UserProfileCache for caching it |
boolean |
userExists(UserID ofUser)
Checks if user exists by validating that his both public and private profile files do exist.
|
@Inject public ProfileRetrievalServiceImpl(DFSConfig dfsConfig, StorageReadService readService, StorageCheckService checkService, BucketAccessService access, GsonSerde serde, UserProfileCache userProfileCache)
public UserPublicProfile publicProfile(UserID ofUser)
UserProfileCache for caching itpublicProfile in interface ProfileRetrievalServicepublic UserPrivateProfile privateProfile(UserIDAuth ofUser)
UserProfileCache for caching itprivateProfile in interface ProfileRetrievalServicepublic boolean userExists(UserID ofUser)
userExists in interface ProfileRetrievalServiceCopyright © 2019. All rights reserved.