Last change
on this file since e6c2521 was e6c2521, checked in by darsov2 <62809499+darsov2@…>, 6 months ago |
images upload/download impl, other fixes
|
-
Property mode
set to
100644
|
File size:
734 bytes
|
Line | |
---|
1 | package com.tourMate.services.impl;
|
---|
2 |
|
---|
3 | import com.tourMate.dao.TokenDao;
|
---|
4 | import com.tourMate.entities.Token;
|
---|
5 | import com.tourMate.services.TokenManager;
|
---|
6 | import org.springframework.beans.factory.annotation.Autowired;
|
---|
7 | import org.springframework.stereotype.Service;
|
---|
8 |
|
---|
9 | import java.time.LocalDateTime;
|
---|
10 |
|
---|
11 | @Service
|
---|
12 | public class TokenManagerImpl implements TokenManager {
|
---|
13 | @Autowired
|
---|
14 | TokenDao tokenDao;
|
---|
15 |
|
---|
16 |
|
---|
17 | @Override
|
---|
18 | public void saveToken(Token token) {
|
---|
19 | tokenDao.saveToken(token);
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | public Token getToken(String token) {
|
---|
24 | return tokenDao.getToken(token);
|
---|
25 | }
|
---|
26 |
|
---|
27 | @Override
|
---|
28 | public void setConfirmedAt(String token) {
|
---|
29 | tokenDao.setConfirmedAt(token, LocalDateTime.now());
|
---|
30 | }
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.