public interface SecurityCodeManagement
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllCodesByUser(Long userId,
Class<? extends SecurityCode> clazz)
Delete all codes of the given user.
|
SecurityCode |
findByCode(String code)
Find the security code by the code value.
|
<T> T |
findByCode(String code,
Converter<SecurityCode,T> converter)
Find the security code by the code value and convert it.
|
void |
removeCode(Long id)
Remove the given code.
|
void deleteAllCodesByUser(Long userId, Class<? extends SecurityCode> clazz)
userId - The user.clazz - The type of security code.SecurityCode findByCode(String code)
code - The code value<T> T findByCode(String code, Converter<SecurityCode,T> converter)
T - type of the conversion resultcode - The code valueconverter - the converter to create the result object from the found codevoid removeCode(Long id)
id - Id of the code to remove.Copyright © 2019 Communote team. All rights reserved.