@Transactional(propagation=REQUIRED) public abstract class SecurityCodeManagementBase extends Object implements SecurityCodeManagement
Spring Service base class for SecurityCodeManagement, provides access to all
services and entities referenced by this service.
| Constructor and Description |
|---|
SecurityCodeManagementBase() |
| 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.
|
protected abstract void |
handleDeleteAllCodesByUSer(Long userId,
Class<? extends SecurityCode> clazz)
Performs the core logic for
#deleteAllCodesByUSer(Long, Class extends
SecurityCode>) |
protected abstract SecurityCode |
handleFindByCode(String code)
Performs the core logic for
findByCode(String) |
protected abstract <T> T |
handleFindByCode(String code,
Converter<SecurityCode,T> converter) |
protected abstract void |
handleRemoveCode(Long id)
Performs the core logic for
removeCode(Long) |
void |
removeCode(Long id)
Remove the given code.
|
public void deleteAllCodesByUser(Long userId, Class<? extends SecurityCode> clazz)
SecurityCodeManagementdeleteAllCodesByUser in interface SecurityCodeManagementuserId - The user.clazz - The type of security code.@Transactional(readOnly=true) public SecurityCode findByCode(String code)
SecurityCodeManagementfindByCode in interface SecurityCodeManagementcode - The code value@Transactional(readOnly=true) public <T> T findByCode(String code, Converter<SecurityCode,T> converter)
SecurityCodeManagementfindByCode in interface SecurityCodeManagementT - type of the conversion resultcode - The code valueconverter - the converter to create the result object from the found codeprotected abstract void handleDeleteAllCodesByUSer(Long userId, Class<? extends SecurityCode> clazz)
#deleteAllCodesByUSer(Long, Class extends
SecurityCode>)protected abstract SecurityCode handleFindByCode(String code)
findByCode(String)protected abstract <T> T handleFindByCode(String code, Converter<SecurityCode,T> converter)
protected abstract void handleRemoveCode(Long id)
removeCode(Long)public void removeCode(Long id)
SecurityCodeManagementremoveCode in interface SecurityCodeManagementid - Id of the code to remove.SecurityCodeManagement.removeCode(Long)Copyright © 2019 Communote team. All rights reserved.