-
Notifications
You must be signed in to change notification settings - Fork 15
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 #710 from terrestris/init-reference
Include REFERENCE_TABLE and make PropertyFormItemEditConfig abstract
- Loading branch information
Showing
4 changed files
with
147 additions
and
1 deletion.
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
28 changes: 28 additions & 0 deletions
28
...in/java/de/terrestris/shogun/lib/model/jsonb/layer/PropertyFormItemEditDefaultConfig.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,28 @@ | ||
/* SHOGun, https://terrestris.github.io/shogun/ | ||
* | ||
* Copyright © 2023-present terrestris GmbH & Co. KG | ||
* | ||
* 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 | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0.txt | ||
* | ||
* 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. | ||
*/ | ||
package de.terrestris.shogun.lib.model.jsonb.layer; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
|
||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@ToString | ||
@EqualsAndHashCode(callSuper = true) | ||
public class PropertyFormItemEditDefaultConfig extends PropertyFormItemEditConfig { } |
43 changes: 43 additions & 0 deletions
43
.../de/terrestris/shogun/lib/model/jsonb/layer/PropertyFormItemEditReferenceTableConfig.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,43 @@ | ||
/* SHOGun, https://terrestris.github.io/shogun/ | ||
* | ||
* Copyright © 2023-present terrestris GmbH & Co. KG | ||
* | ||
* 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 | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0.txt | ||
* | ||
* 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. | ||
*/ | ||
package de.terrestris.shogun.lib.model.jsonb.layer; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
|
||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@ToString | ||
@EqualsAndHashCode(callSuper = false) | ||
public class PropertyFormItemEditReferenceTableConfig extends PropertyFormItemEditConfig { | ||
|
||
@Schema( | ||
description = "Set the property of the referenced layer (see layerId) that should be displayed in the " + | ||
"table. If not set the 'id' field will be used.", | ||
example = "BUILDING_ID" | ||
) | ||
private String tablePropertyName; | ||
|
||
@Schema( | ||
description = "Set the configuration of the referenced schema." | ||
) | ||
private PropertyFormItemEditConfig[] editFormConfig; | ||
|
||
} |