Skip to content

Commit

Permalink
commenti per scarto metadati da cws
Browse files Browse the repository at this point in the history
  • Loading branch information
vale-foco committed Sep 27, 2024
1 parent 608bc33 commit a230ba4
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,13 @@ private List<CswRecord> filterOnCategory(List<CswRecord> cswRecords, Map<String,
}
}

if (isValid) {
cswRecordsValid.add(recordCSW);
}
if (isValid) {
cswRecordsValid.add(recordCSW);
} else {
logger.debug(LogFormatter.format(className, methodName,
"******************** SCARTO CSW RECORD ****************"));
logger.debug(LogFormatter.format(className, methodName, recordCSW.toString()));
}
}

logger.debug(LogFormatter.format(className, methodName, "END"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,104 +1,115 @@
package it.csi.sira.backend.metadata.integration.servizi.csw.dto;

import java.util.Arrays;

public class CswRecord {

private String identifier;
private String provider;
private String urlMetadato;
private String title;
private CswSubject[] subjects;
private String[] types;
private String format;
private String textAbstract;
private CswURI[] uri;
private CswBoundingBox[] boundingBox;
private int idMetadato;

public String getIdentifier() {
return identifier;
}

public void setIdentifier(String identifier) {
this.identifier = identifier;
}

public String getTitle() {
return title;
}

public void setTitle(String title) {
this.title = title;
}

public String getFormat() {
return format;
}

public void setFormat(String format) {
this.format = format;
}

public String getProvider() {
return provider;
}

public void setProvider(String provider) {
this.provider = provider;
}

public String getUrlMetadato() {
return urlMetadato;
}

public void setUrlMetadato(String urlMetadato) {
this.urlMetadato = urlMetadato;
}

public String getTextAbstract() {
return textAbstract;
}

public void setTextAbstract(String textAbstract) {
this.textAbstract = textAbstract;
}

public CswSubject[] getSubjects() {
return subjects;
}

public void setSubjects(CswSubject[] subjects) {
this.subjects = subjects;
}

public int getIdMetadato() {
return idMetadato;
}

public void setIdMetadato(int idMetadato) {
this.idMetadato = idMetadato;
}

public CswURI[] getUri() {
return uri;
}

public void setUri(CswURI[] uri) {
this.uri = uri;
}

public CswBoundingBox[] getBoundingBox() {
return boundingBox;
}

public void setBoundingBox(CswBoundingBox[] boundingBox) {
this.boundingBox = boundingBox;
}

public String[] getTypes() {
return types;
}

public void setTypes(String[] types) {
this.types = types;
}
private String identifier;
private String provider;
private String urlMetadato;
private String title;
private CswSubject[] subjects;
private String[] types;
private String format;
private String textAbstract;
private CswURI[] uri;
private CswBoundingBox[] boundingBox;
private int idMetadato;

public String getIdentifier() {
return identifier;
}

public void setIdentifier(String identifier) {
this.identifier = identifier;
}

public String getTitle() {
return title;
}

public void setTitle(String title) {
this.title = title;
}

public String getFormat() {
return format;
}

public void setFormat(String format) {
this.format = format;
}

public String getProvider() {
return provider;
}

public void setProvider(String provider) {
this.provider = provider;
}

public String getUrlMetadato() {
return urlMetadato;
}

public void setUrlMetadato(String urlMetadato) {
this.urlMetadato = urlMetadato;
}

public String getTextAbstract() {
return textAbstract;
}

public void setTextAbstract(String textAbstract) {
this.textAbstract = textAbstract;
}

public CswSubject[] getSubjects() {
return subjects;
}

public void setSubjects(CswSubject[] subjects) {
this.subjects = subjects;
}

public int getIdMetadato() {
return idMetadato;
}

public void setIdMetadato(int idMetadato) {
this.idMetadato = idMetadato;
}

public CswURI[] getUri() {
return uri;
}

public void setUri(CswURI[] uri) {
this.uri = uri;
}

public CswBoundingBox[] getBoundingBox() {
return boundingBox;
}

public void setBoundingBox(CswBoundingBox[] boundingBox) {
this.boundingBox = boundingBox;
}

public String[] getTypes() {
return types;
}

public void setTypes(String[] types) {
this.types = types;
}

@Override
public String toString() {
return "CswRecord [identifier=" + identifier + ", provider=" + provider + ", urlMetadato=" + urlMetadato
+ ", title=" + title + ", subjects=" + Arrays.toString(subjects) + ", types=" + Arrays.toString(types)
+ ", format=" + format + ", uri=" + Arrays.toString(uri)
+ ", idMetadato=" + idMetadato + "]";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,28 @@

public class CswSubject {

private Integer idCategoria;
private String testo;
private Integer idCategoria;
private String testo;

public String getTesto() {
return testo;
}
public String getTesto() {
return testo;
}

public void setTesto(String testo) {
this.testo = testo;
}
public void setTesto(String testo) {
this.testo = testo;
}

public Integer getIdCategoria() {
return idCategoria;
}
public Integer getIdCategoria() {
return idCategoria;
}

public void setIdCategoria(Integer idCategoria) {
this.idCategoria = idCategoria;
}
public void setIdCategoria(Integer idCategoria) {
this.idCategoria = idCategoria;
}

@Override
public String toString() {
return "CswSubject [testo=" + testo + "]";
}

}
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
package it.csi.sira.backend.metadata.integration.servizi.csw.dto;

public class CswURI {
private int tipo;
private String protocol;
private String url;
private int tipo;
private String protocol;
private String url;

public String getProtocol() {
return protocol;
}
public String getProtocol() {
return protocol;
}

public void setProtocol(String protocol) {
this.protocol = protocol;
}
public void setProtocol(String protocol) {
this.protocol = protocol;
}

public String getUrl() {
return url;
}
public String getUrl() {
return url;
}

public void setUrl(String url) {
this.url = url;
}
public void setUrl(String url) {
this.url = url;
}

public int getTipo() {
return tipo;
}
public int getTipo() {
return tipo;
}

public void setTipo(int tipo) {
this.tipo = tipo;
}

@Override
public String toString() {
return "CswURI [tipo=" + tipo + ", protocol=" + protocol + ", url=" + url + "]";
}

public void setTipo(int tipo) {
this.tipo = tipo;
}
}

0 comments on commit a230ba4

Please sign in to comment.