Package de.terrestris.shoguncore.service
Class WpsProcessExecuteService<E extends WpsProcessExecute,D extends WpsProcessExecuteDao<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.WpsParameterService<E,D>
-
- de.terrestris.shoguncore.service.WpsReferenceService<E,D>
-
- de.terrestris.shoguncore.service.WpsProcessExecuteService<E,D>
-
@Service("wpsProcessExecuteService") public class WpsProcessExecuteService<E extends WpsProcessExecute,D extends WpsProcessExecuteDao<E>> extends WpsReferenceService<E,D>Service class for theWpsProcessExecutemodel.- Author:
- Nils Bühner
- See Also:
AbstractCrudService
-
-
Field Summary
-
Fields inherited from class de.terrestris.shoguncore.service.PermissionAwareCrudService
permissionCollectionService
-
Fields inherited from class de.terrestris.shoguncore.service.AbstractDaoService
dao, logger
-
-
Constructor Summary
Constructors Modifier Constructor Description WpsProcessExecuteService()Default constructor, which calls the type-constructorprotectedWpsProcessExecuteService(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 wpsProcessExecute)Removes the passed WpsProcessExecute from all WpsPlugins and afterwards deletes the WpsProcessExecute itself.WpsPluginService<WpsPlugin,WpsPluginDao<WpsPlugin>>getWpsPluginService()List<String>preCheckDelete(Integer wpsId)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
-
-
-
-
Method Detail
-
delete
@PreAuthorize("hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#plugin, \'DELETE\')") public void delete(E wpsProcessExecute)Removes the passed WpsProcessExecute from all WpsPlugins and afterwards deletes the WpsProcessExecute itself. This overrides the generic method to deleteAbstractCrudService.delete(de.terrestris.shoguncore.model.PersistentObject).- Overrides:
deletein classAbstractCrudService<E extends WpsProcessExecute,D extends WpsProcessExecuteDao<E>>- Parameters:
wpsProcessExecute-
-
setDao
@Autowired @Qualifier("wpsProcessExecuteDao") 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.- Overrides:
setDaoin classWpsReferenceService<E extends WpsProcessExecute,D extends WpsProcessExecuteDao<E>>- Parameters:
dao- the dao to set
-
preCheckDelete
@PreAuthorize("hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#wpsId, \'de.terrestris.shoguncore.model.wps.WpsProcessExecute\', \'DELETE\')") @Transactional(readOnly=true) public List<String> preCheckDelete(Integer wpsId)- Parameters:
wpsId-- Returns:
- List of
WpsPlugins that are connected to the givenWpsProcessExecute
-
getWpsPluginService
public WpsPluginService<WpsPlugin,WpsPluginDao<WpsPlugin>> getWpsPluginService()
- Returns:
- the wpsPluginService
-
-