-
Notifications
You must be signed in to change notification settings - Fork 17
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 #140 from catenax-ng/release/v1.3.0-irs-backend-in…
…tegration [1°] - Release/v1.3.0-irs-backend-integration: Support the IRS in the backend component
- Loading branch information
Showing
34 changed files
with
3,044 additions
and
96 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
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
178 changes: 178 additions & 0 deletions
178
...-backend/productpass/src/main/java/org/eclipse/tractusx/productpass/config/IrsConfig.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,178 @@ | ||
/********************************************************************************* | ||
* | ||
* Catena-X - Product Passport Consumer Backend | ||
* | ||
* Copyright (c) 2022, 2023 BASF SE, BMW AG, Henkel AG & Co. KGaA | ||
* Copyright (c) 2022, 2023 Contributors to the CatenaX (ng) GitHub Organisation. | ||
* | ||
* | ||
* 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 govern in permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
|
||
package org.eclipse.tractusx.productpass.config; | ||
|
||
import com.sun.source.tree.Tree; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* This class consists exclusively to define the attributes and methods needed for the IRS configuration. | ||
**/ | ||
@Configuration | ||
@ConfigurationProperties(prefix="configuration.irs") | ||
public class IrsConfig { | ||
|
||
/** ATTRIBUTES **/ | ||
Boolean enabled; | ||
String endpoint; | ||
TreeConfig tree; | ||
Paths paths; | ||
String callbackUrl; | ||
|
||
/** CONSTRUCTOR(S) **/ | ||
public IrsConfig(Boolean enabled, String endpoint, TreeConfig tree, Paths paths, String callbackUrl) { | ||
this.enabled = enabled; | ||
this.endpoint = endpoint; | ||
this.tree = tree; | ||
this.paths = paths; | ||
this.callbackUrl = callbackUrl; | ||
} | ||
public IrsConfig() { | ||
} | ||
|
||
public IrsConfig(String endpoint, TreeConfig tree, Paths paths) { | ||
this.endpoint = endpoint; | ||
this.tree = tree; | ||
this.paths = paths; | ||
} | ||
|
||
public IrsConfig(String endpoint, TreeConfig tree, Paths paths, String callbackUrl) { | ||
this.endpoint = endpoint; | ||
this.tree = tree; | ||
this.paths = paths; | ||
this.callbackUrl = callbackUrl; | ||
} | ||
|
||
/** GETTERS AND SETTERS **/ | ||
|
||
public String getEndpoint() { | ||
return endpoint; | ||
} | ||
|
||
public void setEndpoint(String endpoint) { | ||
this.endpoint = endpoint; | ||
} | ||
|
||
public Paths getPaths() { | ||
return paths; | ||
} | ||
|
||
public void setPaths(Paths paths) { | ||
this.paths = paths; | ||
} | ||
|
||
public TreeConfig getTree() { | ||
return tree; | ||
} | ||
|
||
public void setTree(TreeConfig tree) { | ||
this.tree = tree; | ||
} | ||
|
||
public String getCallbackUrl() { | ||
return callbackUrl; | ||
} | ||
|
||
public void setCallbackUrl(String callbackUrl) { | ||
this.callbackUrl = callbackUrl; | ||
} | ||
|
||
public Boolean getEnabled() { | ||
return enabled; | ||
} | ||
|
||
public void setEnabled(Boolean enabled) { | ||
this.enabled = enabled; | ||
} | ||
|
||
/** INNER CLASSES **/ | ||
|
||
/** | ||
* This class consists exclusively to define the attributes and methods needed for the IRS Tree configurations. | ||
**/ | ||
public static class TreeConfig{ | ||
|
||
/** ATTRIBUTES **/ | ||
String fileName; | ||
|
||
Boolean indent; | ||
|
||
|
||
public TreeConfig(String fileName) { | ||
this.fileName = fileName; | ||
} | ||
|
||
public TreeConfig(String fileName, Boolean indent) { | ||
this.fileName = fileName; | ||
this.indent = indent; | ||
} | ||
|
||
public TreeConfig() { | ||
} | ||
|
||
/** GETTERS AND SETTERS **/ | ||
public String getFileName() { | ||
return fileName; | ||
} | ||
|
||
public void setFileName(String fileName) { | ||
this.fileName = fileName; | ||
} | ||
|
||
public Boolean getIndent() { | ||
return indent; | ||
} | ||
|
||
public void setIndent(Boolean indent) { | ||
this.indent = indent; | ||
} | ||
} | ||
|
||
|
||
/** | ||
* This class consists exclusively to define the attributes and methods needed for the job path configuration. | ||
**/ | ||
public static class Paths{ | ||
String job; | ||
|
||
public Paths(String job) { | ||
this.job = job; | ||
} | ||
|
||
public Paths() { | ||
} | ||
|
||
public String getJob() { | ||
return job; | ||
} | ||
|
||
public void setJob(String job) { | ||
this.job = job; | ||
} | ||
} | ||
|
||
} |
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.