2014-01-26 03:21:17 +01:00
|
|
|
package com.wisemapping.service;
|
|
|
|
|
|
|
|
import com.wisemapping.exceptions.WiseMappingException;
|
|
|
|
import com.wisemapping.model.Label;
|
|
|
|
import com.wisemapping.model.User;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
2014-01-28 06:28:16 +01:00
|
|
|
import org.jetbrains.annotations.Nullable;
|
2014-01-26 03:21:17 +01:00
|
|
|
|
2014-01-26 22:21:01 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2014-01-26 03:21:17 +01:00
|
|
|
public interface LabelService {
|
|
|
|
|
|
|
|
void addLabel(@NotNull final Label label, @NotNull final User user) throws WiseMappingException;
|
|
|
|
|
2014-01-26 22:21:01 +01:00
|
|
|
@NotNull List<Label> getAll(@NotNull final User user);
|
2014-01-28 06:28:16 +01:00
|
|
|
|
|
|
|
@Nullable
|
|
|
|
Label getLabelById(int id);
|
|
|
|
|
2014-01-28 06:21:14 +01:00
|
|
|
public Label getLabelByTitle(@NotNull String title, @NotNull final User user);
|
2014-01-30 08:35:48 +01:00
|
|
|
|
|
|
|
void removeLabel(@NotNull final Label label, @NotNull final User user) throws WiseMappingException;
|
2014-01-26 03:21:17 +01:00
|
|
|
}
|