Interface CustomizedRememberMeTokenEntityRepository<D>
- Type Parameters:
D- the persisted domain type ofPersistentRememberMeToken
- All Known Subinterfaces:
JpaRememberMeTokenEntityRepository<D>,RememberMeTokenEntityRepository<D>
- All Known Implementing Classes:
JpaCustomizedRememberMeTokenEntityRepository
public interface CustomizedRememberMeTokenEntityRepository<D>
Additional functionality for
RememberMeTokenEntityRepository.-
Method Summary
Modifier and TypeMethodDescriptionintdeleteBySeriesAndUsername(String series, String username) Deletes allPersistentRememberMeTokenrecords in the datastore for the given series/username.intdeleteByUsername(String username) Deletes allPersistentRememberMeTokenrecords in the datastore for the given user.voidSaves the givenrememberMeToken.voidupdateBySeries(String series, String tokenValue, Instant lastUsed) Finds and updates the existing token in the datastore byseries.
-
Method Details
-
save
Saves the givenrememberMeToken.- Parameters:
rememberMeToken- the token to save
-
updateBySeries
Finds and updates the existing token in the datastore byseries.- Parameters:
series- thePersistentRememberMeToken.getSeries()to use to find the token to updatetokenValue- the newPersistentRememberMeToken.getTokenValue()to set on the tokenlastUsed- the newPersistentRememberMeToken.getDate()to set on the token
-
deleteByUsername
Deletes allPersistentRememberMeTokenrecords in the datastore for the given user.- Parameters:
username- thePersistentRememberMeToken.getUsername()for which all tokens should be deleted- Returns:
- the number of deleted rows
-
deleteBySeriesAndUsername
Deletes allPersistentRememberMeTokenrecords in the datastore for the given series/username.- Parameters:
series- thePersistentRememberMeToken.getSeries()that must match for the token to be deletedusername- thePersistentRememberMeToken.getUsername()that must match for the token to be deleted- Returns:
- the number of deleted rows
-