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

    • Constructor Detail

      • PluginService

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

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

      • getPluginNamespace

        public String getPluginNamespace()
        Returns:
        the pluginNamespace
      • setPluginNamespace

        public void setPluginNamespace​(String pluginNamespace)
        Parameters:
        pluginNamespace - the pluginNamespace to set
      • getPluginSource

        @Transactional(readOnly=true)
        public String getPluginSource​(String simpleClassName)
                               throws Exception
        Parameters:
        simpleClassName -
        Returns:
        Throws:
        Exception
      • preCheckDelete

        @PreAuthorize("hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(#pluginId, \'de.terrestris.shoguncore.model.Plugin\', \'DELETE\')")
        @Transactional(readOnly=true)
        public List<String> preCheckDelete​(Integer pluginId)
        Parameters:
        pluginId -
        Returns:
        List of application names that contain the given plugin
      • setDao

        @Autowired
        @Qualifier("pluginDao")
        public void setDao​(D dao)
        We have to use Qualifier to define the correct dao here. Otherwise, spring can not decide which dao has to be autowired here as there are multiple candidates.
        Overrides:
        setDao in class PermissionAwareCrudService<E extends Plugin,​D extends PluginDao<E>>
        Parameters:
        dao - the dao to set