@Service(value="wpsProcessExecuteService") public class WpsProcessExecuteService<E extends WpsProcessExecute,D extends WpsProcessExecuteDao<E>> extends WpsReferenceService<E,D>
WpsProcessExecute model.AbstractCrudServicepermissionCollectionServicedao, logger| Modifier | Constructor and Description |
|---|---|
|
WpsProcessExecuteService()
Default constructor, which calls the type-constructor
|
protected |
WpsProcessExecuteService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(E wpsProcessExecute)
Removes the passed WpsProcessExecute from all WpsPlugins and afterwards
deletes the WpsProcessExecute itself.
|
WpsPluginService<WpsPlugin,WpsPluginDao<WpsPlugin>> |
getWpsPluginService() |
List<String> |
preCheckDelete(Integer wpsId) |
void |
setDao(D dao)
We have to use
Qualifier to define the correct dao here. |
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionServicefindAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNodegetDao, getEntityClasspublic WpsProcessExecuteService()
@PreAuthorize(value="hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#plugin, \'DELETE\')") public void delete(E wpsProcessExecute)
AbstractCrudService.delete(de.terrestris.shoguncore.model.PersistentObject).delete in class AbstractCrudService<E extends WpsProcessExecute,D extends WpsProcessExecuteDao<E>>wpsProcessExecute - @Autowired @Qualifier(value="wpsProcessExecuteDao") 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.setDao in class WpsReferenceService<E extends WpsProcessExecute,D extends WpsProcessExecuteDao<E>>dao - the dao to set@PreAuthorize(value="hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#wpsId, \'de.terrestris.shoguncore.model.wps.WpsProcessExecute\', \'DELETE\')") @Transactional(readOnly=true) public List<String> preCheckDelete(Integer wpsId)
wpsId - WpsPlugins that are connected to the given WpsProcessExecutepublic WpsPluginService<WpsPlugin,WpsPluginDao<WpsPlugin>> getWpsPluginService()
Copyright © 2020 terrestris GmbH & Co. KG. All rights reserved.