From 2ec941e1a0e4f0e862bd60856fc13ab00f3109ae Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Tue, 28 Jan 2014 02:28:16 -0300 Subject: [PATCH] link label to mindmaps --- .../com/wisemapping/dao/LabelManager.java | 5 ++++ .../com/wisemapping/dao/LabelManagerImpl.java | 10 +++++++ .../LabelCouldNotFoundException.java | 19 ++++++++++++ .../java/com/wisemapping/model/Mindmap.java | 13 +++++++++ .../com/wisemapping/rest/LabelController.java | 29 +++++++++++++++++-- .../rest/model/RestMindmapList.java | 2 +- .../com/wisemapping/service/LabelService.java | 5 ++++ .../wisemapping/service/LabelServiceImpl.java | 6 ++++ .../com/wisemapping/model/Mindmap.hbm.xml | 7 +++++ .../src/main/resources/messages_en.properties | 1 + 10 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 wise-webapp/src/main/java/com/wisemapping/exceptions/LabelCouldNotFoundException.java diff --git a/wise-webapp/src/main/java/com/wisemapping/dao/LabelManager.java b/wise-webapp/src/main/java/com/wisemapping/dao/LabelManager.java index c649a483..06684c12 100644 --- a/wise-webapp/src/main/java/com/wisemapping/dao/LabelManager.java +++ b/wise-webapp/src/main/java/com/wisemapping/dao/LabelManager.java @@ -3,6 +3,7 @@ package com.wisemapping.dao; import com.wisemapping.model.Label; import com.wisemapping.model.User; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; import java.util.List; @@ -14,6 +15,10 @@ public interface LabelManager { @NotNull List