/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2025-2026 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.
import lombok.NonNull;
import org.onap.policy.clamp.models.acm.document.concepts.DocMessage;
import org.onap.policy.clamp.models.acm.utils.TimestampHelper;
-import org.onap.policy.common.parameters.BeanValidationResult;
import org.onap.policy.common.parameters.annotations.NotNull;
import org.onap.policy.models.base.PfAuthorative;
import org.onap.policy.models.base.Validated;
fromAuthorative(docMessage);
}
- @Override
- public BeanValidationResult validate(@NonNull String fieldName) {
- var result = super.validate(fieldName);
- if (!result.isValid()) {
- return result;
- }
-
- return result;
- }
-
@Override
public DocMessage toAuthorative() {
return new DocMessage(this.docMessage);
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2025 Nordix Foundation.
+ * Copyright (C) 2025-2026 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.
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import org.onap.policy.clamp.models.acm.utils.TimestampHelper;
-import org.onap.policy.common.parameters.BeanValidationResult;
import org.onap.policy.common.parameters.annotations.NotNull;
import org.onap.policy.models.base.Validated;
public JpaMessageJob(@NonNull final String identificationId) {
this.identificationId = identificationId;
}
-
- @Override
- public BeanValidationResult validate(@NonNull String fieldName) {
- var result = super.validate(fieldName);
- if (!result.isValid()) {
- return result;
- }
-
- return result;
- }
}