Commit f29088a5 authored by Jörg Richter's avatar Jörg Richter

Topicmaps API: rename enrichViewProps() (#341)

BREAKING CHANGE

Rename 1 systems.dmx.topicmaps.ViewmodelCustomizer method:
```
enrichViewProps()
->
customizeTopic()
```
parent 8a07ae12
Pipeline #10643 passed with stages
in 8 minutes and 27 seconds
......@@ -55,7 +55,7 @@ public class WebSocketServlet extends org.eclipse.jetty.websocket.WebSocketServl
private String clientId(HttpServletRequest request) {
String clientId = JavaUtils.cookieValue(request, "dmx_client_id");
if (clientId == null) {
throw new RuntimeException("Missing \"dmx_client_id\" cookie in upgrade request");
throw new RuntimeException("Missing \"dmx_client_id\" cookie in connection upgrade request");
}
return clientId;
}
......@@ -64,7 +64,7 @@ public class WebSocketServlet extends org.eclipse.jetty.websocket.WebSocketServl
// logger.info("request=" + JavaUtils.requestDump(request));
HttpSession session = request.getSession(false);
if (session == null) {
throw new RuntimeException("No (valid) session associated with upgrade request");
throw new RuntimeException("No (valid) session associated with connection upgrade request");
}
return session;
}
......
......@@ -418,7 +418,7 @@ public class TopicmapsPlugin extends PluginActivator implements TopicmapsService
* ViewmodelCustomizer.
*/
@Override
public void enrichViewProps(RelatedTopic topic, ViewProps viewProps) {
public void customizeTopic(RelatedTopic topic, ViewProps viewProps) {
if (topic.getTypeUri().equals(TOPICMAP)) {
topic.loadChildTopics();
}
......@@ -704,7 +704,7 @@ public class TopicmapsPlugin extends PluginActivator implements TopicmapsService
private void invokeViewmodelCustomizer(ViewmodelCustomizer customizer, RelatedTopic topic,
ViewProps viewProps) {
try {
customizer.enrichViewProps(topic, viewProps);
customizer.customizeTopic(topic, viewProps);
} catch (Exception e) {
throw new RuntimeException("Invoking viewmodel customizer for topic " + topic.getId() + " failed, " +
"customizer=\"" + customizer.getClass().getName() + "\"", e);
......
......@@ -7,5 +7,5 @@ import systems.dmx.core.model.topicmaps.ViewProps;
public interface ViewmodelCustomizer {
void enrichViewProps(RelatedTopic topic, ViewProps viewProps);
void customizeTopic(RelatedTopic topic, ViewProps viewProps);
}
Markdown is supported
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