Class MapService<E extends Map,​D extends MapDao<E>>

    • Constructor Detail

      • MapService

        public MapService()
        Default constructor, which calls the type-constructor
      • MapService

        protected MapService​(Class<E> entityClass)
        Constructor that sets the concrete entity class for the service. Subclasses MUST call this constructor.
    • Method Detail

      • setDao

        @Autowired
        @Qualifier("mapDao")
        public void setDao​(D dao)
        We have to use Qualifier to define the correct dao here. Otherwise, spring can not decide which dao has to be autowired here as there are multiple candidates.
        Overrides:
        setDao in class ModuleService<E extends Map,​D extends MapDao<E>>
        Parameters:
        dao - the dao to set
      • findMapsWithLayer

        @PreAuthorize("hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#layer, \'READ\')")
        @Transactional(readOnly=true)
        public Set<E> findMapsWithLayer​(Layer layer)
      • setLayersForMap

        @PreAuthorize("hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#mapModuleId, \'de.terrestris.shoguncore.model.module.Map\', \'UPDATE\')")
        public List<Layer> setLayersForMap​(Integer mapModuleId,
                                           List<Integer> layerIds)
                                    throws Exception
        TODO secure this method!?
        Parameters:
        layerIds -
        Throws:
        Exception