@RestController public class ConfigController extends Object
| Constructor and Description |
|---|
ConfigController() |
| Modifier and Type | Method and Description |
|---|---|
UIConfig |
getAuthTypeProperty(String property) |
UIConfig |
getIntegrationConfigProperty(BigInteger projectId,
String configName,
String property,
UUID projectUuid) |
List<UIConfig> |
getPropertiesForRun(String prefix,
String truncPrefix,
BigInteger projectId,
UUID projectUuid) |
UIConfig |
getProperty(String property,
String projectId,
String defaultValue,
UUID projectUuid) |
UIConfig |
getProperty(String property,
UUID projectUuid) |
void |
setProperties(Properties properties,
UUID projectUuid) |
@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@RequestMapping(value="/config/set",
method=POST)
public void setProperties(@RequestBody
Properties properties,
@RequestParam(value="projectUuid")
UUID projectUuid)
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")")
@RequestMapping(value="/config/get",
method=GET)
public UIConfig getProperty(@RequestParam(value="property",defaultValue="")
String property,
@RequestParam(value="projectUuid")
UUID projectUuid)
@Transactional(readOnly=true)
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")")
@RequestMapping(value="/config/getByProjectId",
method=GET)
public UIConfig getProperty(@RequestParam(value="property",defaultValue="")
String property,
@RequestParam(value="projectId",defaultValue="")
String projectId,
@RequestParam(value="defaultValue",defaultValue="")
String defaultValue,
@RequestParam(value="projectUuid")
UUID projectUuid)
@RequestMapping(value="/config/getAuthType",
method=GET)
public UIConfig getAuthTypeProperty(@RequestParam(value="property",defaultValue="authentication.type")
String property)
@Transactional(readOnly=true)
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")")
@RequestMapping(value="/config/get/properties/for_run",
method=GET)
public List<UIConfig> getPropertiesForRun(@RequestParam(value="prefix",defaultValue="")
String prefix,
@RequestParam(value="truncPrefix",defaultValue="true")
String truncPrefix,
@RequestParam(value="projectId")
BigInteger projectId,
@RequestParam(value="projectUuid")
UUID projectUuid)
@Transactional(readOnly=true)
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")")
@RequestMapping(value="/integration/config/get",
method=GET)
public UIConfig getIntegrationConfigProperty(@RequestParam(value="projectId")
BigInteger projectId,
@RequestParam(value="configName",defaultValue="")
String configName,
@RequestParam(value="property",defaultValue="")
String property,
@RequestParam(value="projectUuid")
UUID projectUuid)
Copyright © 2025. All rights reserved.