Skip to content

Commit

Permalink
Revert accidental deletion of Facility setters #267
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-austin committed Oct 5, 2023
1 parent f8a977b commit 3dac87b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/config/run.properties.example
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ search.backlogHandlerIntervalSeconds = 60
search.enqueuedRequestIntervalSeconds = 5
search.aggregateFilesIntervalSeconds = 3600
search.maxSearchTimeSeconds = 5
# The entities to index with the search engine.
!search.entitiesToIndex = Datafile Dataset Investigation InvestigationUser DatafileParameter DatasetParameter InvestigationParameter Sample
# Configure this option to prevent certain entities being indexed
# For example, remove Datafile and DatafileParameter if these are not of interest
# Note then when commented out, the full set of all possible entities will be indexed - to disable all search functionality, instead comment out search.engine or search.urls
!search.entitiesToIndex = Datafile DatafileFormat DatafileParameter Dataset DatasetParameter DatasetType DatasetTechnique Facility Instrument InstrumentScientist Investigation InvestigationInstrument InvestigationParameter InvestigationType InvestigationUser ParameterType Sample SampleType SampleParameter User

# List members of cluster
!cluster = http://vm200.nubes.stfc.ac.uk:8080 https://smfisher:8181
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/org/icatproject/core/entity/Facility.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ public void setUrl(String url) {
this.url = url;
}

public void setDataPublications(List<DataPublication> dataPublications) {
this.dataPublications = dataPublications;
}

public void setDataPublicationTypes(List<DataPublicationType> dataPublicationTypes) {
this.dataPublicationTypes = dataPublicationTypes;
}

@Override
public void getDoc(JsonGenerator gen) {
SearchApi.encodeString(gen, "facility.name", name);
Expand Down

0 comments on commit 3dac87b

Please sign in to comment.