@Service(value="layerService") public class LayerService<E extends Layer,D extends LayerDao<E>> extends PermissionAwareCrudService<E,D>
Layer model.PermissionAwareCrudServicepermissionCollectionServicedao, logger| Modifier | Constructor and Description |
|---|---|
|
LayerService()
Default constructor, which calls the type-constructor
|
protected |
LayerService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(E layer) |
void |
setDao(D dao)
We have to use
Qualifier to define the correct dao here. |
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionServicefindAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNodegetDao, getEntityClasspublic LayerService()
@Autowired @Qualifier(value="layerDao") 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.Copyright © 2020 terrestris GmbH & Co. KG. All rights reserved.