de.terrestris.shoguncore.service.LayerService Maven / Gradle / Ivy
package de.terrestris.shoguncore.service;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Service;
import de.terrestris.shoguncore.dao.LayerDao;
import de.terrestris.shoguncore.dao.MapDao;
import de.terrestris.shoguncore.model.layer.Layer;
import de.terrestris.shoguncore.model.module.Map;
/**
* Service class for the {@link Layer} model.
*
* @author Nils Bühner
* @see PermissionAwareCrudService
*/
@Service("layerService")
public class LayerService>
extends PermissionAwareCrudService {
/**
* Default constructor, which calls the type-constructor
*/
@SuppressWarnings("unchecked")
public LayerService() {
this((Class) Layer.class);
}
/**
* Constructor that sets the concrete entity class for the service.
* Subclasses MUST call this constructor.
*/
protected LayerService(Class entityClass) {
super(entityClass);
}
/**
* We have to use {@link Qualifier} to define the correct dao here.
* Otherwise, spring can not decide which dao has to be autowired here
* as there are multiple candidates.
*/
@Override
@Autowired
@Qualifier("layerDao")
public void setDao(D dao) {
this.dao = dao;
}
/**
*
*/
@Autowired
@Qualifier("mapService")
MapService
© 2015 - 2025 Weber Informatics LLC | Privacy Policy