Class PluginController
java.lang.Object
eu.rarogsoftware.rarog.platform.app.rest.plugins.PluginController
@RequestMapping(value="/plugins",
produces="application/json")
@RestController
@AdminOnly
public class PluginController
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void>changePluginState(String pluginKey, BooleanValueBean value) handleResponseStatusException(org.springframework.web.server.ResponseStatusException exception) org.springframework.http.ResponseEntity<Void>installPluginFromFile(jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<Void>installPluginFromForm(org.springframework.web.multipart.MultipartFile multipartFile, Boolean reinstallIfNeeded) org.springframework.http.ResponseEntity<Void>installPluginFromPath(PluginController.PathInstallInstructionBean instructionBean) isPluginEnabled(String pluginKey) org.springframework.http.ResponseEntity<Void>purgePlugin(String pluginKey) org.springframework.http.ResponseEntity<Void>removePlugin(String pluginKey)
-
Constructor Details
-
PluginController
-
-
Method Details
-
getInstalledPlugins
-
installPluginFromPath
@PostMapping(consumes="application/json") public org.springframework.http.ResponseEntity<Void> installPluginFromPath(@RequestBody PluginController.PathInstallInstructionBean instructionBean) -
installPluginFromForm
-
installPluginFromFile
@PostMapping(consumes={"application/octet-stream","application/java-archive"}) public org.springframework.http.ResponseEntity<Void> installPluginFromFile(jakarta.servlet.http.HttpServletRequest request) -
getPlugin
@GetMapping("/{pluginKey}") public PluginController.PluginRecord getPlugin(@PathVariable("pluginKey") String pluginKey) -
removePlugin
-
isPluginEnabled
@GetMapping("/{pluginKey}/enabled") public BooleanValueBean isPluginEnabled(@PathVariable("pluginKey") String pluginKey) -
changePluginState
@PutMapping("/{pluginKey}/enabled") public org.springframework.http.ResponseEntity<Void> changePluginState(@PathVariable("pluginKey") String pluginKey, @RequestBody BooleanValueBean value) -
purgePlugin
-
handleResponseStatusException
-