-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add retrofit defintions * update structural * more getter setter and json properties * use embedded * licence header * duplicate entry in changelog
- Loading branch information
1 parent
982cb3f
commit 6aa78d4
Showing
4 changed files
with
124 additions
and
0 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
57 changes: 57 additions & 0 deletions
57
...3-service/src/main/java/edu/illinois/ncsa/incore/service/dfr3/models/MappingEntryKey.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,57 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 University of Illinois and others. All rights reserved. | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Mozilla Public License v2.0 which accompanies this distribution, | ||
* and is available at https://www.mozilla.org/en-US/MPL/2.0/ | ||
* | ||
* Contributors: | ||
* Chen Wang | ||
*/ | ||
|
||
package edu.illinois.ncsa.incore.service.dfr3.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import dev.morphia.annotations.Embedded; | ||
|
||
@Embedded | ||
public class MappingEntryKey { | ||
private String name; | ||
private String description; | ||
private Boolean defaultKey; | ||
|
||
@JsonProperty("config") | ||
private MappingEntryKeyConfig config; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getDescription(){ | ||
return description; | ||
} | ||
|
||
public void setDescription(String description){ | ||
this.description = description; | ||
} | ||
|
||
public Boolean getDefaultKey(){ | ||
return defaultKey; | ||
} | ||
|
||
public void setDefaultKey(Boolean defaultKey){ | ||
this.defaultKey = defaultKey; | ||
} | ||
|
||
public MappingEntryKeyConfig getConfig(){ | ||
return config; | ||
} | ||
|
||
public void setConfig(MappingEntryKeyConfig config){ | ||
this.config = config; | ||
} | ||
|
||
} |
53 changes: 53 additions & 0 deletions
53
...ice/src/main/java/edu/illinois/ncsa/incore/service/dfr3/models/MappingEntryKeyConfig.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,53 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 University of Illinois and others. All rights reserved. | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Mozilla Public License v2.0 which accompanies this distribution, | ||
* and is available at https://www.mozilla.org/en-US/MPL/2.0/ | ||
* | ||
* Contributors: | ||
* Chen Wang | ||
*/ | ||
|
||
package edu.illinois.ncsa.incore.service.dfr3.models; | ||
|
||
import dev.morphia.annotations.Embedded; | ||
|
||
@Embedded | ||
public class MappingEntryKeyConfig { | ||
private String unit; | ||
private String type; | ||
private String targetColumn; | ||
private String expression; | ||
|
||
public String getUnit(){ | ||
return unit; | ||
} | ||
|
||
public void setUnit(String unit){ | ||
this.unit = unit; | ||
} | ||
|
||
public String getType(){ | ||
return type; | ||
} | ||
|
||
public void setType(String type){ | ||
this.type = type; | ||
} | ||
|
||
public String getTargetColumn(){ | ||
return targetColumn; | ||
} | ||
|
||
public void setTargetColumn(String targetColumn){ | ||
this.targetColumn = targetColumn; | ||
} | ||
|
||
public String getExpression(){ | ||
return expression; | ||
} | ||
|
||
public void setExpression(String expression){ | ||
this.expression = expression; | ||
} | ||
} |
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