Search in sources :

Example 1 with DatabaseSettingsCommand

use of org.libresonic.player.command.DatabaseSettingsCommand in project libresonic by Libresonic.

the class DatabaseSettingsController method formBackingObject.

@ModelAttribute
protected void formBackingObject(Model model) throws Exception {
    DatabaseSettingsCommand command = new DatabaseSettingsCommand();
    command.setConfigType(settingsService.getDatabaseConfigType());
    command.setEmbedDriver(settingsService.getDatabaseConfigEmbedDriver());
    command.setEmbedPassword(settingsService.getDatabaseConfigEmbedPassword());
    command.setEmbedUrl(settingsService.getDatabaseConfigEmbedUrl());
    command.setEmbedUsername(settingsService.getDatabaseConfigEmbedUsername());
    command.setJNDIName(settingsService.getDatabaseConfigJNDIName());
    command.setMysqlVarcharMaxlength(settingsService.getDatabaseMysqlVarcharMaxlength());
    command.setUsertableQuote(settingsService.getDatabaseUsertableQuote());
    model.addAttribute("command", command);
}
Also used : DatabaseSettingsCommand(org.libresonic.player.command.DatabaseSettingsCommand) ModelAttribute(org.springframework.web.bind.annotation.ModelAttribute)

Aggregations

DatabaseSettingsCommand (org.libresonic.player.command.DatabaseSettingsCommand)1 ModelAttribute (org.springframework.web.bind.annotation.ModelAttribute)1