@Service(value="fileService") public class FileService<E extends File,D extends FileDao<E>> extends PermissionAwareCrudService<E,D>
File model.permissionCollectionServicedao, logger| Modifier | Constructor and Description |
|---|---|
|
FileService()
Default constructor, which calls the type-constructor
|
protected |
FileService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setDao(D dao)
We have to use
Qualifier to define the correct dao here. |
E |
uploadFile(org.springframework.web.multipart.MultipartFile file)
Method persists a given MultipartFile as a bytearray in the database
|
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionServicedelete, findAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNodegetDao, getEntityClasspublic FileService()
@Autowired @Qualifier(value="fileDao") public void setDao(D dao)
Qualifier to define the correct dao here.
Otherwise, spring can not decide which dao has to be autowired here
as there are multiple candidates.Copyright © 2020 terrestris GmbH & Co. KG. All rights reserved.