24 lines
723 B
Java
Raw Normal View History

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 02:28:16 -03:00
import org.jetbrains.annotations.Nullable;
2014-01-26 18:21:01 -03:00
import java.util.List;
public interface LabelService {
void addLabel(@NotNull final Label label, @NotNull final User user) throws WiseMappingException;
2014-01-26 18:21:01 -03:00
@NotNull List<Label> getAll(@NotNull final User user);
2014-01-28 02:28:16 -03:00
@Nullable
2022-01-18 13:16:39 -08:00
Label findLabelById(int id, @NotNull final User user);
2014-01-28 02:28:16 -03:00
Label getLabelByTitle(@NotNull String title, @NotNull final User user);
2014-01-30 04:35:48 -03:00
void removeLabel(@NotNull final Label label, @NotNull final User user) throws WiseMappingException;
}