Commit bcb9cdf6 authored by Fred LANGLOIS's avatar Fred LANGLOIS
Browse files

#21 Implement an extendable mecanism for tooltips generation : update...

 #21 Implement an extendable mecanism for tooltips generation : update IUrlMaker interface signature
parent 5f212442
Pipeline #3011 passed with stages
in 2 minutes and 40 seconds
......@@ -354,7 +354,7 @@ public class DocumentViewerService {
if (urlMaker != null && urlMaker.isActive().booleanValue()) {
namedEntity.setExternalUrl(urlMaker.make(namedEntity.isCandidate(), namedEntity.getEntityURI(), namedEntity.getEntityLabels().get(0)));
namedEntity.setExternalUrl(urlMaker.make(namedEntity.isCandidate(), namedEntity.getEntityClassURI(), namedEntity.getEntityURI(),namedEntity.getEntityLabels().get(0)));
}
namedEntities.add(namedEntity);
}
......
......@@ -52,7 +52,7 @@ public class DefaultUrlMaker implements IUrlMaker {
* @see org.ow2.weblab.portlet.utils.IUrlMaker#make(boolean, java.lang.String, java.lang.String)
*/
@Override
public String make(boolean candidate, String classUri,String label ) {
public String make(boolean candidate, String classUri, String uri, String label ) {
if (active) {
return defaultUrl + label;
} else {
......
......@@ -7,7 +7,6 @@
package org.ow2.weblab.portlet.utils;
/**
* @author flanglois
* Creation : 8 août 2018
......@@ -20,5 +19,5 @@ public interface IUrlMaker {
* @param label
* @return
*/
String make(boolean candidate, String classUri, String label);
String make(boolean candidate, String classUri, String uri , String label);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment