Skip to content
Snippets Groups Projects

feat: setup site card

Merged Jean-Baptiste Nizet requested to merge feat/site-card into epic/merge-faidare-dd
All threads resolved!
12 files
+ 489
1
Compare changes
  • Side-by-side
  • Inline
Files
12
@@ -4,6 +4,7 @@ import fr.inra.urgi.faidare.domain.criteria.base.PaginationCriteriaImpl;
import fr.inra.urgi.faidare.elasticsearch.criteria.annotation.CriteriaForDocument;
import fr.inra.urgi.faidare.elasticsearch.criteria.annotation.DocumentPath;
import java.util.Collections;
import java.util.List;
/**
@@ -18,6 +19,12 @@ public class XRefDocumentSearchCriteria extends PaginationCriteriaImpl {
@DocumentPath("linkedRessourcesID")
private List<String> linkedRessourcesID;
public static XRefDocumentSearchCriteria forXRefId(String resourceId) {
XRefDocumentSearchCriteria criteria = new XRefDocumentSearchCriteria();
criteria.setLinkedRessourcesID(Collections.singletonList(resourceId));
return criteria;
}
public String getEntryType() {
return entryType;
}
Loading