E - D - @Service(value="interceptorRuleService") public class InterceptorRuleService<E extends InterceptorRule,D extends InterceptorRuleDao<E>> extends PermissionAwareCrudService<E,D>
permissionCollectionServicedao, logger| Modifier | Constructor and Description |
|---|---|
|
InterceptorRuleService()
Default constructor, which calls the type-constructor
|
protected |
InterceptorRuleService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
List<E> |
findAllRulesForServiceAndEvent(String service,
String event) |
void |
setDao(D dao)
We have to use
Qualifier to define the correct dao here. |
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionServicedelete, findAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNodegetDao, getEntityClasspublic InterceptorRuleService()
@Transactional(readOnly=true) public List<E> findAllRulesForServiceAndEvent(String service, String event)
service - event - @Autowired @Qualifier(value="interceptorRuleDao") public void setDao(D dao)
Qualifier to define the correct dao here.
Otherwise, spring can not decide which dao has to be autowired here
as there are multiple candidates.setDao in class PermissionAwareCrudService<E extends InterceptorRule,D extends InterceptorRuleDao<E>>dao - the dao to setCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.