@Profile(value={"mongo","fongo"})
@Service
public class UserRepositoryImpl
extends Object
implements UserRepositoryIf
| Constructor and Description |
|---|
UserRepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String userId) |
boolean |
exists(String userId) |
Optional<UserEntity> |
findById(String id) |
List<String> |
findExpiredUser() |
Optional<LocalDateTime> |
getRulesLastChangeDate(String id) |
void |
save(UserEntity userEntity) |
void |
setRulesLastChangeDate(String userId,
LocalDateTime dateTime) |
public Optional<UserEntity> findById(String id)
findById in interface UserRepositoryIfpublic List<String> findExpiredUser()
findExpiredUser in interface UserRepositoryIfpublic Optional<LocalDateTime> getRulesLastChangeDate(String id)
getRulesLastChangeDate in interface UserRepositoryIfpublic void setRulesLastChangeDate(String userId, LocalDateTime dateTime)
setRulesLastChangeDate in interface UserRepositoryIfpublic boolean exists(String userId)
exists in interface UserRepositoryIfpublic void save(UserEntity userEntity)
save in interface UserRepositoryIfpublic void delete(String userId)
delete in interface UserRepositoryIfCopyright © 2020. All rights reserved.