/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2021-2024 Nordix Foundation.
+ * Copyright (C) 2021-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@NonNull
private UUID participantId = UUID.randomUUID();
- private Boolean restarting;
-
@NonNull
private DeployState deployState = DeployState.UNDEPLOYED;
this.description = otherElement.description;
this.properties = AcmUtils.cloneMap(otherElement.properties);
this.outProperties = AcmUtils.cloneMap(otherElement.outProperties);
- this.restarting = otherElement.restarting;
this.deployState = otherElement.deployState;
this.lockState = otherElement.lockState;
this.subState = otherElement.subState;
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2023 Nordix Foundation.
+ * Copyright (C) 2023,2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
private ToscaConceptIdentifier nodeTemplateId;
- private Boolean restarting;
-
private AcTypeState state;
private String message;
this.nodeTemplateStateId = copyConstructor.nodeTemplateStateId;
this.participantId = copyConstructor.participantId;
this.nodeTemplateId = new ToscaConceptIdentifier(copyConstructor.nodeTemplateId);
- this.restarting = copyConstructor.restarting;
this.state = copyConstructor.state;
this.message = copyConstructor.message;
this.outProperties = PfUtils.mapMap(copyConstructor.outProperties, UnaryOperator.identity());
@NotNull
private String participantId;
- @Column
- private Boolean restarting;
-
@Column
@NotNull
private DeployState deployState;
this.definition = new PfConceptKey(copyConcept.definition);
this.participantId = copyConcept.participantId;
this.description = copyConcept.description;
- this.properties = (copyConcept.properties != null ? new LinkedHashMap<>(copyConcept.properties) : null);
- this.outProperties =
- (copyConcept.outProperties != null ? new LinkedHashMap<>(copyConcept.outProperties)
- : null);
- this.restarting = copyConcept.restarting;
+ this.properties = PfUtils.mapMap(copyConcept.properties, UnaryOperator.identity());
+ this.outProperties = PfUtils.mapMap(copyConcept.outProperties, UnaryOperator.identity());
this.deployState = copyConcept.deployState;
this.lockState = copyConcept.lockState;
this.subState = copyConcept.subState;
element.setDescription(description);
element.setProperties(PfUtils.mapMap(properties, UnaryOperator.identity()));
element.setOutProperties(PfUtils.mapMap(outProperties, UnaryOperator.identity()));
- element.setRestarting(restarting);
element.setDeployState(deployState);
element.setLockState(lockState);
element.setSubState(subState);
this.description = element.getDescription();
this.properties = PfUtils.mapMap(element.getProperties(), UnaryOperator.identity());
this.outProperties = PfUtils.mapMap(element.getOutProperties(), UnaryOperator.identity());
- this.restarting = element.getRestarting();
this.deployState = element.getDeployState();
this.lockState = element.getLockState();
this.subState = element.getSubState();
return result;
}
- result = ObjectUtils.compare(restarting, other.restarting);
- if (result != 0) {
- return result;
- }
-
result = ObjectUtils.compare(deployState, other.deployState);
if (result != 0) {
return result;
@AttributeOverride(name = "version", column = @Column(name = "nodeTemplate_version"))
private PfConceptKey nodeTemplateId;
- @Column
- private Boolean restarting;
-
@Column
@NotNull
private AcTypeState state;
this.participantId = copyConcept.getParticipantId().toString();
}
this.nodeTemplateId = copyConcept.getNodeTemplateId().asConceptKey();
- this.restarting = copyConcept.getRestarting();
this.state = copyConcept.getState();
this.message = copyConcept.getMessage();
this.outProperties = PfUtils.mapMap(copyConcept.getOutProperties(), UnaryOperator.identity());
nodeTemplateState.setParticipantId(UUID.fromString(this.participantId));
}
nodeTemplateState.setNodeTemplateId(new ToscaConceptIdentifier(this.nodeTemplateId));
- nodeTemplateState.setRestarting(this.restarting);
nodeTemplateState.setState(this.state);
nodeTemplateState.setMessage(this.message);
nodeTemplateState.setOutProperties(PfUtils.mapMap(outProperties, UnaryOperator.identity()));
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2021-2024 Nordix Foundation.
+ * Copyright (C) 2021-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
testJpaAcElement.setMessage(null);
assertEquals(0, testJpaAcElement.compareTo(otherJpaAcElement));
- testJpaAcElement.setRestarting(true);
- assertNotEquals(0, testJpaAcElement.compareTo(otherJpaAcElement));
- testJpaAcElement.setRestarting(null);
- assertEquals(0, testJpaAcElement.compareTo(otherJpaAcElement));
-
testJpaAcElement.setParticipantId(UUID.randomUUID().toString());
assertNotEquals(0, testJpaAcElement.compareTo(otherJpaAcElement));
--- /dev/null
+# ============LICENSE_START=======================================================
+# Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+databaseChangeLog:
+ - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS
+
+ - changeSet:
+ author: policy
+ id: 1800-1
+ changes:
+ - dropColumn:
+ tableName: AutomationCompositionElement
+ columnName: restarting
+
+ - changeSet:
+ author: policy
+ id: 1800-2
+ changes:
+ - dropColumn:
+ tableName: NodeTemplateState
+ columnName: restarting
file: db/changelog/changelog-1701.yaml
- include:
file: db/changelog/changelog-1702.yaml
+ - include:
+ file: db/changelog/changelog-1800.yaml