Class PluginController<E extends Plugin,​D extends PluginDao<E>,​S extends PluginService<E,​D>>

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        PluginController()
      Default constructor, which calls the type-constructor
      protected PluginController​(java.lang.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​(java.lang.Integer pluginId)
      Checks in which applications the given plugin is contained (and from which it would be removed in case of deletion).
      void setService​(S service)
      We have to use Qualifier to define the correct service here.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PluginController

        public PluginController()
        Default constructor, which calls the type-constructor
      • PluginController

        protected PluginController​(java.lang.Class<E> entityClass)
        Constructor that sets the concrete entity class for the controller. Subclasses MUST call this constructor.
    • Method Detail

      • setService

        @Autowired
        @Qualifier("pluginService")
        public void setService​(S service)
        We have to use Qualifier to define the correct service here. Otherwise, spring can not decide which service has to be autowired here as there are multiple candidates.
        Specified by:
        setService in class AbstractWebController<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")
                                                                         java.lang.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: