Class LayerService<E extends Layer,​D extends LayerDao<E>>

    • Constructor Detail

      • LayerService

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

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

      • setDao

        @Autowired
        @Qualifier("layerDao")
        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 PermissionAwareCrudService<E extends Layer,​D extends LayerDao<E>>
        Parameters:
        dao - the dao to set
      • delete

        @PreAuthorize("hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#layer, \'DELETE\')")
        public void delete​(E layer)
        Overrides:
        delete in class AbstractCrudService<E extends Layer,​D extends LayerDao<E>>