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 |
|---|---|
void |
delete(E e) |
List<E> |
findAllRulesForServiceAndEvent(String service,
String event) |
void |
saveOrUpdate(E e) |
void |
setDao(D dao)
We have to use
Qualifier to define the correct dao here. |
E |
updatePartialWithJsonNode(E entity,
com.fasterxml.jackson.databind.JsonNode jsonObject,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionServicefindAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadByIdgetDao, getEntityClasspublic InterceptorRuleService()
@Transactional(readOnly=true) public List<E> findAllRulesForServiceAndEvent(String service, String event)
service - event - public void saveOrUpdate(E e)
saveOrUpdate in class AbstractCrudService<E extends InterceptorRule,D extends InterceptorRuleDao<E>>public E updatePartialWithJsonNode(E entity, com.fasterxml.jackson.databind.JsonNode jsonObject, com.fasterxml.jackson.databind.ObjectMapper objectMapper) throws IOException
updatePartialWithJsonNode in class AbstractCrudService<E extends InterceptorRule,D extends InterceptorRuleDao<E>>IOExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionpublic void delete(E e)
delete in class AbstractCrudService<E extends InterceptorRule,D extends InterceptorRuleDao<E>>@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.