Package de.terrestris.shoguncore.service
Class PermissionCollectionService<E extends PermissionCollection,D extends PermissionCollectionDao<E>>
- java.lang.Object
-
- de.terrestris.shoguncore.service.AbstractDaoService<E,D>
-
- de.terrestris.shoguncore.service.AbstractCrudService<E,D>
-
- de.terrestris.shoguncore.service.PermissionCollectionService<E,D>
-
@Service("permissionCollectionService") public class PermissionCollectionService<E extends PermissionCollection,D extends PermissionCollectionDao<E>> extends AbstractCrudService<E,D>Service class for thePermissionCollectionmodel.- Author:
- Nils Bühner, Johannes Weskamm
- See Also:
AbstractCrudService
-
-
Field Summary
-
Fields inherited from class de.terrestris.shoguncore.service.AbstractDaoService
dao, logger
-
-
Constructor Summary
Constructors Modifier Constructor Description PermissionCollectionService()Default constructor, which calls the type-constructorprotectedPermissionCollectionService(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 voidsetDao(D dao)We have to useQualifierto define the correct dao here.-
Methods inherited from class de.terrestris.shoguncore.service.AbstractCrudService
delete, findAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNode
-
Methods inherited from class de.terrestris.shoguncore.service.AbstractDaoService
getDao, getEntityClass
-
-
-
-
Method Detail
-
setDao
@Autowired @Qualifier("permissionCollectionDao") 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.- Specified by:
setDaoin classAbstractDaoService<E extends PermissionCollection,D extends PermissionCollectionDao<E>>- Parameters:
dao- the dao to set
-
-