add json ignore
This commit is contained in:
parent
6256766324
commit
f80d8df515
|
@ -1,5 +1,7 @@
|
|||
package eu.eudat.commonmodels.models.descriptiotemplate;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -16,6 +18,7 @@ public class DefinitionModel {
|
|||
}
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
public List<FieldModel> getAllField(){
|
||||
List<FieldModel> fieldEntities = new ArrayList<>();
|
||||
if (this.getPages() != null){
|
||||
|
@ -26,6 +29,7 @@ public class DefinitionModel {
|
|||
return fieldEntities;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<FieldSetModel> getAllFieldSets(){
|
||||
List<FieldSetModel> fieldSetsEntities = new ArrayList<>();
|
||||
if (this.getPages() != null){
|
||||
|
@ -36,10 +40,12 @@ public class DefinitionModel {
|
|||
return fieldSetsEntities;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<FieldSetModel> getFieldSetById(String id) {
|
||||
return this.getAllFieldSets().stream().filter(x-> id.equals(x.getId())).toList();
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<FieldModel> getFieldById(String id) {
|
||||
return this.getAllField().stream().filter(x-> id.equals(x.getId())).toList();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package eu.eudat.commonmodels.models.descriptiotemplate;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -97,10 +99,12 @@ public class FieldSetModel {
|
|||
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
public List<FieldModel> getAllField() {
|
||||
return this.getFields() == null ? new ArrayList<>() : this.getFields();
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<FieldModel> getFieldById(String id) {
|
||||
return this.getAllField().stream().filter(x-> id.equals(x.getId())).toList();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package eu.eudat.commonmodels.models.descriptiotemplate;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -44,6 +46,7 @@ public class PageModel {
|
|||
public void setSections(List<SectionModel> sections) {
|
||||
this.sections = sections;
|
||||
}
|
||||
@JsonIgnore
|
||||
public List<FieldModel> getAllField(){
|
||||
List<FieldModel> fieldEntities = new ArrayList<>();
|
||||
if (this.getSections() != null){
|
||||
|
@ -54,6 +57,7 @@ public class PageModel {
|
|||
return fieldEntities;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<FieldSetModel> getAllFieldSets(){
|
||||
List<FieldSetModel> fieldSetsEntities = new ArrayList<>();
|
||||
if (this.getSections() != null){
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package eu.eudat.commonmodels.models.descriptiotemplate;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -105,6 +107,7 @@ public class SectionModel {
|
|||
this.fieldSets = fieldSets;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<FieldModel> getAllField(){
|
||||
List<FieldModel> fieldEntities = new ArrayList<>();
|
||||
if (this.getFieldSets() != null){
|
||||
|
@ -120,6 +123,7 @@ public class SectionModel {
|
|||
return fieldEntities;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public List<FieldSetModel> getAllFieldSets(){
|
||||
List<FieldSetModel> fieldSetEntities = new ArrayList<>();
|
||||
if (this.getFieldSets() != null){
|
||||
|
|
Loading…
Reference in New Issue