Package org.appng.appngizer.controller
Class DatabaseController
- java.lang.Object
-
- org.appng.appngizer.controller.ControllerBase
-
- org.appng.appngizer.controller.DatabaseController
-
@RestController public class DatabaseController extends ControllerBase
-
-
Field Summary
-
Fields inherited from class org.appng.appngizer.controller.ControllerBase
configurer, context, coreService, databaseService, session, templateService
-
-
Constructor Summary
Constructors Constructor Description DatabaseController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addApplicationLink(String site, DatabaseConnection dbc, Database fromDomain)
org.springframework.http.ResponseEntity<Database>
getDatabaseConnection(String name, Integer id)
org.springframework.http.ResponseEntity<Database>
getDatabaseConnectionForApplication(String site, String app)
org.springframework.http.ResponseEntity<Databases>
getDatabaseConnections(String name)
org.springframework.http.ResponseEntity<Database>
info()
protected org.springframework.http.ResponseEntity<Database>
info(DatabaseConnection platformConnection)
org.springframework.http.ResponseEntity<Database>
initialize(boolean isManaged)
org.springframework.http.ResponseEntity<Database>
updateDatabaseConnection(String name, Integer id, Database database)
org.springframework.http.ResponseEntity<Database>
updateDatabaseConnectionforApplication(String site, String app, Database database)
org.springframework.http.ResponseEntity<Database>
updateRootConnection(Database database)
-
Methods inherited from class org.appng.appngizer.controller.ControllerBase
getDatabaseStatus, getSharedSecret, onBusinessException, onConstraintViolationException
-
-
-
-
Method Detail
-
info
@GetMapping("/platform/database") public org.springframework.http.ResponseEntity<Database> info() throws Exception
- Throws:
Exception
-
updateRootConnection
@PutMapping("/platform/database") public org.springframework.http.ResponseEntity<Database> updateRootConnection(@RequestBody Database database) throws Exception
- Throws:
Exception
-
initialize
@PostMapping("/platform/database/initialize") public org.springframework.http.ResponseEntity<Database> initialize(@RequestParam(name="managed",required=false,defaultValue="false") boolean isManaged) throws Exception
- Throws:
Exception
-
info
protected org.springframework.http.ResponseEntity<Database> info(DatabaseConnection platformConnection) throws DatatypeConfigurationException
- Throws:
DatatypeConfigurationException
-
getDatabaseConnections
@GetMapping("/site/{name}/database") public org.springframework.http.ResponseEntity<Databases> getDatabaseConnections(@PathVariable("name") String name)
-
addApplicationLink
protected void addApplicationLink(String site, DatabaseConnection dbc, Database fromDomain)
-
getDatabaseConnectionForApplication
@GetMapping("/site/{site}/application/{app}/database") public org.springframework.http.ResponseEntity<Database> getDatabaseConnectionForApplication(@PathVariable("site") String site, @PathVariable("app") String app)
-
updateDatabaseConnectionforApplication
@PutMapping("/site/{site}/application/{app}/database") public org.springframework.http.ResponseEntity<Database> updateDatabaseConnectionforApplication(@PathVariable("site") String site, @PathVariable("app") String app, @RequestBody Database database)
-
getDatabaseConnection
@GetMapping("/site/{name}/database/{id}") public org.springframework.http.ResponseEntity<Database> getDatabaseConnection(@PathVariable("name") String name, @PathVariable("id") Integer id)
-
-