Class MongoRefreshTokenRepository
- java.lang.Object
-
- com.rcore.database.mongo.commons.port.impl.AbstractMongoRepository<ID,E,D,F>
-
- io.foodtechlab.common.mongo.port.AbstractMongoSafeDeleteRepository<String,ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity,RefreshTokenDoc,ru.foodtechlab.lib.auth.service.domain.token.port.filter.RefreshTokenFilters>
-
- ru.foodtechlab.lib.auth.service.infrastructure.database.mongo.token.port.MongoRefreshTokenRepository
-
- All Implemented Interfaces:
com.rcore.domain.commons.port.CreateUpdateRepository<ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity>,com.rcore.domain.commons.port.CRUDRepository<String,ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity,ru.foodtechlab.lib.auth.service.domain.token.port.filter.RefreshTokenFilters>,com.rcore.domain.commons.port.DeleteRepository<String>,com.rcore.domain.commons.port.ReadRepository<String,ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity,ru.foodtechlab.lib.auth.service.domain.token.port.filter.RefreshTokenFilters>,io.foodtechlab.common.domain.port.SafeDeleteCRUDRepository<String,ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity,ru.foodtechlab.lib.auth.service.domain.token.port.filter.RefreshTokenFilters>,io.foodtechlab.common.domain.port.SafeDeleteRepository<String>,io.foodtechlab.common.domain.port.SafeReadRepository<String,ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity,ru.foodtechlab.lib.auth.service.domain.token.port.filter.RefreshTokenFilters>,ru.foodtechlab.lib.auth.service.domain.token.port.RefreshTokenRepository
@Repository public class MongoRefreshTokenRepository extends io.foodtechlab.common.mongo.port.AbstractMongoSafeDeleteRepository<String,ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity,RefreshTokenDoc,ru.foodtechlab.lib.auth.service.domain.token.port.filter.RefreshTokenFilters> implements ru.foodtechlab.lib.auth.service.domain.token.port.RefreshTokenRepository
-
-
Constructor Summary
Constructors Constructor Description MongoRefreshTokenRepository(RefreshTokenDocMapper mapper, org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeactivateByCredentialId(String credentialId)voidexpireRefreshToken(ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity refreshTokenEntity)List<ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity>findAllActiveByUserId(String userId)protected com.rcore.database.mongo.commons.query.AbstractExampleQuerygetSearchQuery(ru.foodtechlab.lib.auth.service.domain.token.port.filter.RefreshTokenFilters filters)-
Methods inherited from class io.foodtechlab.common.mongo.port.AbstractMongoSafeDeleteRepository
delete, findById, forceFindById, permanentDelete, restore
-
Methods inherited from class com.rcore.database.mongo.commons.port.impl.AbstractMongoRepository
count, exist, find, findSearch, save
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.rcore.domain.commons.port.ReadRepository
count, exist, find, findById
-
-
-
-
Constructor Detail
-
MongoRefreshTokenRepository
public MongoRefreshTokenRepository(RefreshTokenDocMapper mapper, org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
-
-
Method Detail
-
expireRefreshToken
public void expireRefreshToken(ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity refreshTokenEntity)
- Specified by:
expireRefreshTokenin interfaceru.foodtechlab.lib.auth.service.domain.token.port.RefreshTokenRepository
-
findAllActiveByUserId
public List<ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity> findAllActiveByUserId(String userId)
- Specified by:
findAllActiveByUserIdin interfaceru.foodtechlab.lib.auth.service.domain.token.port.RefreshTokenRepository
-
deactivateByCredentialId
public void deactivateByCredentialId(String credentialId)
- Specified by:
deactivateByCredentialIdin interfaceru.foodtechlab.lib.auth.service.domain.token.port.RefreshTokenRepository
-
getSearchQuery
protected com.rcore.database.mongo.commons.query.AbstractExampleQuery getSearchQuery(ru.foodtechlab.lib.auth.service.domain.token.port.filter.RefreshTokenFilters filters)
- Specified by:
getSearchQueryin classcom.rcore.database.mongo.commons.port.impl.AbstractMongoRepository<String,ru.foodtechlab.lib.auth.service.domain.token.entity.RefreshTokenEntity,RefreshTokenDoc,ru.foodtechlab.lib.auth.service.domain.token.port.filter.RefreshTokenFilters>
-
-