@RestController public class EnvironmentController extends AbstractController<UIEnvironment,org.qubership.automation.itf.core.model.jpa.environment.Environment>
LOGGER| Constructor and Description |
|---|
EnvironmentController(org.qubership.automation.itf.core.util.report.ReportLinkCollector reportLinkCollector) |
_deleteSubObjects, _isObjectSuitable, asListUIObject, beforeStoreUpdated, checkVersion, create, create, create, create, create, create, delete, delete, delete, delete, getAll, getAllSimple, getAllSuitable, getAllWithEciParams, getById, manager, setSimple, storeUpdated, update, update, updateUIObject, usageInfoListAsStringhaveUsages@Autowired public EnvironmentController(org.qubership.automation.itf.core.util.report.ReportLinkCollector reportLinkCollector)
@Transactional(readOnly=true)
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")")
@RequestMapping(value="/environment/all",
method=GET)
public List<? extends UIObject> getAll(@RequestParam
UUID projectUuid,
@RequestParam
BigInteger projectId)
projectUuid - ATP project UUIDprojectId - ITF project id@Transactional(readOnly=true)
@RequestMapping(value="/environment/allbyparent",
method=GET)
public List<? extends UIObject> getAll(@RequestParam(value="parentId",defaultValue="0")
String parentId)
AbstractControllergetAll in interface EntityController<UIEnvironment>getAll in class AbstractController<UIEnvironment,org.qubership.automation.itf.core.model.jpa.environment.Environment>parentId - parent identifier@Transactional(readOnly=true)
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")")
@RequestMapping(value="/environment",
method=GET)
public UIEnvironment getById(@RequestParam(value="id",defaultValue="0")
String id,
@RequestParam(value="projectUuid")
UUID projectUuid)
@Transactional(readOnly=true)
@RequestMapping(value="/environment/{id}",
method=GET)
public UIEnvironment feignGetById(@PathVariable(value="id")
String id)
@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"CREATE\")")
@RequestMapping(value="/environment",
method=POST)
public UIEnvironment create(@RequestParam(value="parentId",defaultValue="0")
String parentId,
@RequestParam(value="projectId")
BigInteger projectId,
@RequestParam(value="projectUuid")
UUID projectUuid)
@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"UPDATE\")")
@RequestMapping(value="/environment",
method=PUT)
public UIEnvironment update(@RequestBody
UIEnvironment uiEnvironment,
@RequestParam(value="projectUuid")
UUID projectUuid)
@Transactional
@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"DELETE\")")
@RequestMapping(value="/environment",
method=DELETE)
public org.qubership.automation.itf.core.model.communication.message.delete.DeleteEntityResultMessage<String,UITriggerConfiguration> deleteEnv(@RequestBody
Collection<UIEnvironment> objectsToDelete,
@RequestParam(value="projectUuid")
UUID projectUuid)
objectsToDelete - list of objects to deleteprojectUuid - ATP project UUID@Transactional
@RequestMapping(value="/environment/bulk",
method=POST)
public UIResult bulkServerUpdate(@RequestBody
String[] serverData)
serverData - - serverData[0] - old ip address, serverData[1] - new ip address,
serverData[2], [3], ... - ids of Environments to processprotected org.qubership.automation.itf.core.model.jpa.environment.Environment _beforeUpdate(UIEnvironment uiEnvironment, org.qubership.automation.itf.core.model.jpa.environment.Environment environment)
AbstractController_beforeUpdate in class AbstractController<UIEnvironment,org.qubership.automation.itf.core.model.jpa.environment.Environment>uiEnvironment - have param for updateenvironment - updatable objectprotected Class<org.qubership.automation.itf.core.model.jpa.environment.Environment> _getGenericUClass()
AbstractController_getGenericUClass in class AbstractController<UIEnvironment,org.qubership.automation.itf.core.model.jpa.environment.Environment>protected UIEnvironment _newInstanceTClass(org.qubership.automation.itf.core.model.jpa.environment.Environment object)
AbstractController_newInstanceTClass in class AbstractController<UIEnvironment,org.qubership.automation.itf.core.model.jpa.environment.Environment>object - storable for create an object extends UIObjectprotected org.qubership.automation.itf.core.model.common.Storable _getParent(String parentId)
AbstractController_getParent in class AbstractController<UIEnvironment,org.qubership.automation.itf.core.model.jpa.environment.Environment>parentId - parent identifyCopyright © 2025. All rights reserved.