Package de.terrestris.shoguncore.service
Class InterceptorRuleService<E extends InterceptorRule,D extends InterceptorRuleDao<E>>
- java.lang.Object
-
- de.terrestris.shoguncore.service.AbstractDaoService<E,D>
-
- de.terrestris.shoguncore.service.AbstractCrudService<E,D>
-
- de.terrestris.shoguncore.service.PermissionAwareCrudService<E,D>
-
- de.terrestris.shoguncore.service.InterceptorRuleService<E,D>
-
- Type Parameters:
E-D-
@Service("interceptorRuleService") public class InterceptorRuleService<E extends InterceptorRule,D extends InterceptorRuleDao<E>> extends PermissionAwareCrudService<E,D>- Author:
- Daniel Koch, Kai Volland, terrestris GmbH & Co. KG
-
-
Field Summary
-
Fields inherited from class de.terrestris.shoguncore.service.PermissionAwareCrudService
permissionCollectionService
-
Fields inherited from class de.terrestris.shoguncore.service.AbstractDaoService
dao, logger
-
-
Constructor Summary
Constructors Modifier Constructor Description InterceptorRuleService()Default constructor, which calls the type-constructorprotectedInterceptorRuleService(Class<E> entityClass)Constructor that sets the concrete entity class for the service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(E e)List<E>findAllRulesForServiceAndEvent(String service, String event)voidsaveOrUpdate(E e)voidsetDao(D dao)We have to useQualifierto define the correct dao here.EupdatePartialWithJsonNode(E entity, com.fasterxml.jackson.databind.JsonNode jsonObject, com.fasterxml.jackson.databind.ObjectMapper objectMapper)-
Methods inherited from class de.terrestris.shoguncore.service.PermissionAwareCrudService
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionService
-
Methods inherited from class de.terrestris.shoguncore.service.AbstractCrudService
findAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById
-
Methods inherited from class de.terrestris.shoguncore.service.AbstractDaoService
getDao, getEntityClass
-
-
-
-
Method Detail
-
findAllRulesForServiceAndEvent
@Transactional(readOnly=true) public List<E> findAllRulesForServiceAndEvent(String service, String event)
- Parameters:
service-event-- Returns:
-
saveOrUpdate
public void saveOrUpdate(E e)
- Overrides:
saveOrUpdatein classAbstractCrudService<E extends InterceptorRule,D extends InterceptorRuleDao<E>>
-
updatePartialWithJsonNode
public E updatePartialWithJsonNode(E entity, com.fasterxml.jackson.databind.JsonNode jsonObject, com.fasterxml.jackson.databind.ObjectMapper objectMapper) throws IOException
- Overrides:
updatePartialWithJsonNodein classAbstractCrudService<E extends InterceptorRule,D extends InterceptorRuleDao<E>>- Returns:
- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
delete
public void delete(E e)
- Overrides:
deletein classAbstractCrudService<E extends InterceptorRule,D extends InterceptorRuleDao<E>>
-
setDao
@Autowired @Qualifier("interceptorRuleDao") public void setDao(D dao)We have to useQualifierto define the correct dao here. Otherwise, spring can not decide which dao has to be autowired here as there are multiple candidates.- Overrides:
setDaoin classPermissionAwareCrudService<E extends InterceptorRule,D extends InterceptorRuleDao<E>>- Parameters:
dao- the dao to set
-
-