mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-10-24 02:22:32 +02:00
24 lines
729 B
Java
24 lines
729 B
Java
package com.wisemapping.service;
|
|
|
|
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;
|
|
|
|
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, @NotNull final User user);
|
|
|
|
public Label getLabelByTitle(@NotNull String title, @NotNull final User user);
|
|
|
|
void removeLabel(@NotNull final Label label, @NotNull final User user) throws WiseMappingException;
|
|
}
|