label validator finished

This commit is contained in:
Ezequiel Bergamaschi
2014-01-28 02:21:14 -03:00
committed by Ezequiel Bergamaschi
parent b19ac2c4c3
commit 72a46367d6
8 changed files with 44 additions and 2 deletions

View File

@@ -12,4 +12,5 @@ public interface LabelService {
void addLabel(@NotNull final Label label, @NotNull final User user) throws WiseMappingException;
@NotNull List<Label> getAll(@NotNull final User user);
public Label getLabelByTitle(@NotNull String title, @NotNull final User user);
}

View File

@@ -29,4 +29,9 @@ public class LabelServiceImpl implements LabelService {
return labelManager.getAllLabels(user);
}
@Nullable
@Override
public Label getLabelByTitle(@NotNull String title, @NotNull final User user) {
return labelManager.getLabelByTitle(title, user);
}
}