@RestController @RequestMapping(value="/eci") public class EciController extends Object
| Constructor and Description |
|---|
EciController() |
| Modifier and Type | Method and Description |
|---|---|
UIResult |
bindEntityToEC(BigInteger entityId,
EciEntityConstant entityClass,
String ecId,
String ecName,
String ecProjectId,
UUID projectUuid)
Binding entity from service atp-environments.
|
Set<String> |
getEcProjectId(BigInteger projectId,
UUID projectUuid)
Get project ids from atp-environment.
|
void |
unbindEntitiesByEcProject(String ecProjectId,
UUID projectUuid)
Unbind entity from service atp-environments by project.
|
UIResult |
unbindEntityFromEC(UIIdentifiedObject[] objects,
EciEntityConstant entityClassName,
UUID projectUuid)
Unbinding entity from service atp-environments.
|
org.qubership.automation.itf.ui.controls.eci.EciController.UpdateEntitiesByEcProjectStructure |
updateEntitiesByEcProject(String ecProjectId,
UUID projectUuid)
Update entity from service atp-environments by project.
|
UIResult |
updateEntityFromEc(BigInteger entityId,
BigInteger entityParentId,
EciEntityConstant entityClassName,
String entity,
UUID projectUuid)
Update entity from service atp-environments.
|
void |
updateEnvironmentsFromEc(ECEnvironment[] ecEnvironments,
UUID projectUuid)
Update environments from environment configurator.
|
void |
updateSystemsFromEc(ECSystem[] ecSystems,
UUID projectUuid)
Update systems from environment configurator.
|
void |
uploadEnvironmentsFromEc(BigInteger projectId,
UUID projectUuid,
ECEnvironment[] ecEnvironments)
Upload environments from service atp-environments.
|
void |
uploadTransportsFromEc(ECConnection[] ecConnections,
UUID projectUuid)
Upload transports from environment configurator.
|
@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")")
@RequestMapping(value="/project",
method=GET)
public Set<String> getEcProjectId(@RequestParam(value="projectId")
BigInteger projectId,
@RequestParam(value="projectUuid")
UUID projectUuid)
projectUuid - project UUID@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@RequestMapping(value="/bind",
method=PUT)
public UIResult bindEntityToEC(@RequestParam(value="id")
BigInteger entityId,
@RequestParam(value="class")
EciEntityConstant entityClass,
@RequestParam(value="ecId")
String ecId,
@RequestParam(value="ecName")
String ecName,
@RequestParam(value="ecProjectId")
String ecProjectId,
@RequestParam(value="projectUuid")
UUID projectUuid)
entityId - object identityClass - class for an entityecId - string format of id an entity from service atp-environmentsecName - string format of name an entity from service atp-environmentsecProjectId - string format of project id from service atp-environmentsprojectUuid - project UUID@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@RequestMapping(value="/update",
method=PUT)
public UIResult updateEntityFromEc(@RequestParam(value="entityId")
BigInteger entityId,
@RequestParam(value="parentId")
BigInteger entityParentId,
@RequestParam(value="className")
EciEntityConstant entityClassName,
@RequestBody(required=false)
String entity,
@RequestParam(value="projectUuid")
UUID projectUuid)
entityId - object identityParentId - parent object unique identifierentityClassName - class for an entityentity - string format of an entityprojectUuid - project UUID@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@RequestMapping(value="/unbind",
method=PUT)
public UIResult unbindEntityFromEC(@RequestBody
UIIdentifiedObject[] objects,
@RequestParam(value="entityClass")
EciEntityConstant entityClassName,
@RequestParam(value="projectUuid")
UUID projectUuid)
objects - array of objects to bindentityClassName - class for an entityprojectUuid - project UUID@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@RequestMapping(value="/upload/environments",
method=PUT)
public void uploadEnvironmentsFromEc(@RequestParam
BigInteger projectId,
@RequestParam(value="projectUuid")
UUID projectUuid,
@RequestBody
ECEnvironment[] ecEnvironments)
projectId - ITF project idprojectUuid - project UUIDecEnvironments - array environment models@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@RequestMapping(value="/update/environments",
method=PUT)
public void updateEnvironmentsFromEc(@RequestBody
ECEnvironment[] ecEnvironments,
@RequestParam(value="projectUuid")
UUID projectUuid)
ecEnvironments - environment from environment configuratorprojectUuid - project UUID@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@RequestMapping(value="/update/systems",
method=PUT)
public void updateSystemsFromEc(@RequestBody
ECSystem[] ecSystems,
@RequestParam(value="projectUuid")
UUID projectUuid)
ecSystems - systems from environment configuratorprojectUuid - project UUID@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@RequestMapping(value="/update/transports",
method=PUT)
public void uploadTransportsFromEc(@RequestBody
ECConnection[] ecConnections,
@RequestParam(value="projectUuid")
UUID projectUuid)
ecConnections - connections from environment configuratorprojectUuid - project UUID@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@GetMapping(value="/get/byproject/{ecProjectId}")
public org.qubership.automation.itf.ui.controls.eci.EciController.UpdateEntitiesByEcProjectStructure updateEntitiesByEcProject(@PathVariable(value="ecProjectId")
String ecProjectId,
@RequestParam(value="projectUuid")
UUID projectUuid)
ecProjectId - project id from atp-environmentprojectUuid - project UUIDUpdateEntitiesByEcProjectStructure updated entitys.@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@RequestMapping(value="/unbind/byproject/{ecProjectId}",
method=GET)
public void unbindEntitiesByEcProject(@PathVariable(value="ecProjectId")
String ecProjectId,
@RequestParam(value="projectUuid")
UUID projectUuid)
ecProjectId - project id from atp-environmentprojectUuid - project UUIDCopyright © 2025. All rights reserved.