-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from catenax-ng/cx_24.05_pcf_refactor_changes
feat | PCF exchange code refactor and bpdm service api call changes.
- Loading branch information
Showing
29 changed files
with
638 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...rg/eclipse/tractusx/sde/common/configuration/properties/PCFAssetStaticPropertyHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2024 T-Systems International GmbH | ||
* Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://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 | ||
********************************************************************************/ | ||
package org.eclipse.tractusx.sde.common.configuration.properties; | ||
|
||
import org.apache.commons.lang3.StringUtils; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@Configuration | ||
public class PCFAssetStaticPropertyHolder { | ||
|
||
@Value(value = "${digital-twin.pcf.sematicid:}") | ||
public String sematicId; | ||
|
||
@Value(value = "${digital-twin.pcf.sematicid:}") | ||
public String sematicIdPart; | ||
|
||
private String pcfExchangeAssetId; | ||
|
||
public String getSematicId() { | ||
if (StringUtils.isAllBlank(sematicId)) | ||
sematicId = "urn:samm:io.catenax.pcf:6.0.0#Pcf"; | ||
return sematicId; | ||
} | ||
|
||
public void setSematicId(String sematicId) { | ||
this.sematicId = sematicId; | ||
} | ||
|
||
public String getSematicIdPart() { | ||
if (StringUtils.isAllBlank(sematicIdPart)) | ||
sematicIdPart = "urn:samm:io.catenax.pcf"; | ||
return sematicIdPart; | ||
} | ||
|
||
public void setSematicIdPart(String sematicIdPart) { | ||
this.sematicIdPart = sematicIdPart; | ||
} | ||
|
||
public String getPcfExchangeAssetId() { | ||
return pcfExchangeAssetId; | ||
} | ||
|
||
public void setPcfExchangeAssetId(String pcfExchangeAssetId) { | ||
this.pcfExchangeAssetId = pcfExchangeAssetId; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.