@Service(value="mapService") public class MapService<E extends Map,D extends MapDao<E>> extends ModuleService<E,D>
Module model.AbstractCrudServicepermissionCollectionServicedao, logger| Modifier | Constructor and Description |
|---|---|
|
MapService()
Default constructor, which calls the type-constructor
|
protected |
MapService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
Set<E> |
findMapsWithLayer(Layer layer) |
void |
setDao(D dao)
We have to use
Qualifier to define the correct dao here. |
List<Layer> |
setLayersForMap(Integer mapModuleId,
List<Integer> layerIds)
TODO secure this method!?
|
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionServicedelete, findAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNodegetDao, getEntityClasspublic MapService()
@Autowired @Qualifier(value="mapDao") 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.@PreAuthorize(value="hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#layer, \'READ\')") @Transactional(readOnly=true) public Set<E> findMapsWithLayer(Layer layer)
@PreAuthorize(value="hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#mapModuleId, \'de.terrestris.shoguncore.model.module.Map\', \'UPDATE\')") public List<Layer> setLayersForMap(Integer mapModuleId, List<Integer> layerIds) throws Exception
layerIds - ExceptionCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.