Package de.terrestris.shoguncore.service
Class LayerService<E extends Layer,D extends LayerDao<E>>
- java.lang.Object
-
- de.terrestris.shoguncore.service.AbstractDaoService<E,D>
-
- de.terrestris.shoguncore.service.AbstractCrudService<E,D>
-
- de.terrestris.shoguncore.service.PermissionAwareCrudService<E,D>
-
- de.terrestris.shoguncore.service.LayerService<E,D>
-
@Service("layerService") public class LayerService<E extends Layer,D extends LayerDao<E>> extends PermissionAwareCrudService<E,D>Service class for theLayermodel.- Author:
- Nils Bühner
- See Also:
PermissionAwareCrudService
-
-
Field Summary
-
Fields inherited from class de.terrestris.shoguncore.service.PermissionAwareCrudService
permissionCollectionService
-
Fields inherited from class de.terrestris.shoguncore.service.AbstractDaoService
dao, LOG
-
-
Constructor Summary
Constructors Modifier Constructor Description LayerService()Default constructor, which calls the type-constructorprotectedLayerService(java.lang.Class<E> entityClass)Constructor that sets the concrete entity class for the service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(E layer)voidsetDao(D dao)We have to useQualifierto define the correct dao here.-
Methods inherited from class de.terrestris.shoguncore.service.PermissionAwareCrudService
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionService
-
Methods inherited from class de.terrestris.shoguncore.service.AbstractCrudService
findAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNode
-
Methods inherited from class de.terrestris.shoguncore.service.AbstractDaoService
getDao, getEntityClass
-
-
-
-
Constructor Detail
-
LayerService
public LayerService()
Default constructor, which calls the type-constructor
-
LayerService
protected LayerService(java.lang.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 useQualifierto define the correct dao here. Otherwise, spring can not decide which dao has to be autowired here as there are multiple candidates.
-
-