mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-10 17:23:23 +01:00
27 lines
633 B
Java
27 lines
633 B
Java
package com.wisemapping.dao;
|
|
|
|
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 LabelManager {
|
|
|
|
void addLabel(@NotNull final Label label);
|
|
|
|
void saveLabel(@NotNull final Label label);
|
|
|
|
@NotNull
|
|
List<Label> getAllLabels(@NotNull final User user);
|
|
|
|
@Nullable
|
|
Label getLabelById(int id, @NotNull final User user);
|
|
|
|
@Nullable
|
|
Label getLabelByTitle(@NotNull final String title, @NotNull final User user);
|
|
|
|
void removeLabel(@NotNull final Label label);
|
|
}
|