From 059adbc2c51c79d97aeb19faac81f1128529e4f7 Mon Sep 17 00:00:00 2001 From: "saul.gill" Date: Tue, 27 Jun 2023 14:23:26 +0100 Subject: Removing old implementation of participant restart Particpant will be set as offline at deregister No ac states will be altered at deregister Issue-ID: POLICY-4742 Change-Id: Ifb297805ed4b97938b7f92855e30f978d474b648 Signed-off-by: saul.gill --- .../acm/persistence/provider/ParticipantProvider.java | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'models/src/main') diff --git a/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/provider/ParticipantProvider.java b/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/provider/ParticipantProvider.java index 25d72cb06..597606e17 100644 --- a/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/provider/ParticipantProvider.java +++ b/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/provider/ParticipantProvider.java @@ -182,19 +182,4 @@ public class ParticipantProvider { return ProviderUtils.asEntityList(nodeTemplateStateRepository .findByParticipantId(participantId.toString())); } - - /** - * Reset the Deploy and Lock states of all the ac elements associated with a participant. - * - * @param participantId the participant id associated with the automation composition elements - */ - public void resetParticipantAcElementState(@NonNull final UUID participantId) { - var participantAcElementList = automationCompositionElementRepository - .findByParticipantId(participantId.toString()); - participantAcElementList.forEach(e -> { - e.setDeployState(DeployState.UNDEPLOYED); - e.setLockState(LockState.NONE); - }); - automationCompositionElementRepository.saveAll(participantAcElementList); - } } -- cgit 1.2.3-korg