Skip to content

Commit

Permalink
fix error message in response
Browse files Browse the repository at this point in the history
  • Loading branch information
redmitry committed Jul 22, 2024
1 parent 22cc5eb commit 5c6cb55
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 9 deletions.
2 changes: 1 addition & 1 deletion beacon-data-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>es.bsc.inb.ga4gh</groupId>
<artifactId>beacon-v2-api</artifactId>
<version>2.0.7</version>
<version>2.0.8</version>
</parent>

<artifactId>beacon-data-model</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion beacon-framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>es.bsc.inb.ga4gh</groupId>
<artifactId>beacon-v2-api</artifactId>
<version>2.0.7</version>
<version>2.0.8</version>
</parent>

<artifactId>beacon-framework</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* *****************************************************************************
* Copyright (C) 2023 ELIXIR ES, Spanish National Bioinformatics Institute (INB)
* Copyright (C) 2024 ELIXIR ES, Spanish National Bioinformatics Institute (INB)
* and Barcelona Supercomputing Center (BSC)
*
* Modifications to the initial code base are copyright of their respective
Expand Down Expand Up @@ -44,10 +44,12 @@ public AlphanumericFilter(String id, String operator, String value) {
this.value = value;
}

@Override
public String getId() {
return id;
}

@Override
public void setId(String id) {
this.id = id;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* *****************************************************************************
* Copyright (C) 2023 ELIXIR ES, Spanish National Bioinformatics Institute (INB)
* Copyright (C) 2024 ELIXIR ES, Spanish National Bioinformatics Institute (INB)
* and Barcelona Supercomputing Center (BSC)
*
* Modifications to the initial code base are copyright of their respective
Expand Down Expand Up @@ -39,6 +39,9 @@

public interface BeaconQueryFilter {

String getId();
void setId(String id);

public static class BeaconQueryFilterDeserializer implements JsonbDeserializer<BeaconQueryFilter> {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* *****************************************************************************
* Copyright (C) 2023 ELIXIR ES, Spanish National Bioinformatics Institute (INB)
* Copyright (C) 2024 ELIXIR ES, Spanish National Bioinformatics Institute (INB)
* and Barcelona Supercomputing Center (BSC)
*
* Modifications to the initial code base are copyright of their respective
Expand Down Expand Up @@ -30,5 +30,22 @@
*/

public class CustomFilter implements BeaconQueryFilter {

private String id;

public CustomFilter() {}

public CustomFilter(String id) {
this.id = id;
}

@Override
public String getId() {
return id;
}

@Override
public void setId(String id) {
this.id = id;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ public OntologyFilter(String id) {
this.id = id;
}

@Override
public String getId() {
return id;
}

@Override
public void setId(String id) {
this.id = id;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public class BeaconErrorResponse extends AbstractBeaconResponse {

private BeaconError error;

public BeaconError getBeaconError() {
public BeaconError getError() {
return error;
}

public void setBeaconError(BeaconError error) {
public void setError(BeaconError error) {
this.error = error;
}
}
2 changes: 1 addition & 1 deletion beacon-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>es.bsc.inb.ga4gh</groupId>
<artifactId>beacon-v2-api</artifactId>
<version>2.0.7</version>
<version>2.0.8</version>
</parent>

<artifactId>beacon-model</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>es.bsc.inb.ga4gh</groupId>
<artifactId>beacon-v2-api</artifactId>
<version>2.0.7</version>
<version>2.0.8</version>
<packaging>pom</packaging>

<description>
Expand Down

0 comments on commit 5c6cb55

Please sign in to comment.