Package de.terrestris.shoguncore.web
Class PluginController<E extends Plugin,D extends PluginDao<E>,S extends PluginService<E,D>>
- java.lang.Object
-
- de.terrestris.shoguncore.web.AbstractWebController<E,D,S>
-
- de.terrestris.shoguncore.web.PluginController<E,D,S>
-
- Direct Known Subclasses:
WpsPluginController
@Controller @RequestMapping("/plugins") public class PluginController<E extends Plugin,D extends PluginDao<E>,S extends PluginService<E,D>> extends AbstractWebController<E,D,S>- Author:
- Nils Bühner
-
-
Field Summary
-
Fields inherited from class de.terrestris.shoguncore.web.AbstractWebController
logger, service
-
-
Constructor Summary
Constructors Modifier Constructor Description PluginController()Default constructor, which calls the type-constructorprotectedPluginController(Class<E> entityClass)Constructor that sets the concrete entity class for the controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<?>preCheckDelete(Integer pluginId)Checks in which applications the given plugin is contained (and from which it would be removed in case of deletion).voidsetService(S service)We have to useQualifierto define the correct service here.-
Methods inherited from class de.terrestris.shoguncore.web.AbstractWebController
getEntityClass, getService
-
-
-
-
Method Detail
-
setService
@Autowired @Qualifier("pluginService") public void setService(S service)We have to useQualifierto define the correct service here. Otherwise, spring can not decide which service has to be autowired here as there are multiple candidates.- Specified by:
setServicein classAbstractWebController<E extends Plugin,D extends PluginDao<E>,S extends PluginService<E,D>>- Parameters:
service- the service to set
-
preCheckDelete
@RequestMapping(value="preCheckDelete.action", method=POST) public org.springframework.http.ResponseEntity<?> preCheckDelete(@RequestParam("pluginId") Integer pluginId)Checks in which applications the given plugin is contained (and from which it would be removed in case of deletion).- Parameters:
pluginId-- Returns:
-
-