link label to mindmaps

This commit is contained in:
Ezequiel Bergamaschi
2014-01-28 02:28:16 -03:00
committed by Ezequiel Bergamaschi
parent 72a46367d6
commit 2ec941e1a0
10 changed files with 94 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import com.wisemapping.exceptions.WiseMappingException;
import com.wisemapping.model.Label;
import com.wisemapping.model.User;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.List;
@@ -12,5 +13,9 @@ public interface LabelService {
void addLabel(@NotNull final Label label, @NotNull final User user) throws WiseMappingException;
@NotNull List<Label> getAll(@NotNull final User user);
@Nullable
Label getLabelById(int id);
public Label getLabelByTitle(@NotNull String title, @NotNull final User user);
}

View File

@@ -5,6 +5,7 @@ import com.wisemapping.exceptions.WiseMappingException;
import com.wisemapping.model.Label;
import com.wisemapping.model.User;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.List;
@@ -29,6 +30,11 @@ public class LabelServiceImpl implements LabelService {
return labelManager.getAllLabels(user);
}
@Override @Nullable
public Label getLabelById(int id) {
return labelManager.getLabelById(id);
}
@Nullable
@Override
public Label getLabelByTitle(@NotNull String title, @NotNull final User user) {