2014-01-25 23:21:17 -03:00
|
|
|
package com.wisemapping.dao;
|
|
|
|
|
2024-02-17 11:18:43 -08:00
|
|
|
import com.wisemapping.model.MindmapLabel;
|
|
|
|
import com.wisemapping.model.Account;
|
2014-01-26 18:18:49 -03:00
|
|
|
import org.jetbrains.annotations.NotNull;
|
2014-01-28 02:28:16 -03:00
|
|
|
import org.jetbrains.annotations.Nullable;
|
2014-01-26 18:18:49 -03:00
|
|
|
|
|
|
|
import java.util.List;
|
2014-01-25 23:21:17 -03:00
|
|
|
|
|
|
|
public interface LabelManager {
|
|
|
|
|
2024-02-17 11:18:43 -08:00
|
|
|
void addLabel(@NotNull final MindmapLabel label);
|
2014-01-26 18:18:49 -03:00
|
|
|
|
2024-02-17 11:18:43 -08:00
|
|
|
void saveLabel(@NotNull final MindmapLabel label);
|
2014-01-25 23:21:17 -03:00
|
|
|
|
2014-01-26 18:21:01 -03:00
|
|
|
@NotNull
|
2024-02-17 11:18:43 -08:00
|
|
|
List<MindmapLabel> getAllLabels(@NotNull final Account user);
|
2014-01-28 02:28:16 -03:00
|
|
|
|
|
|
|
@Nullable
|
2024-02-17 11:18:43 -08:00
|
|
|
MindmapLabel getLabelById(int id, @NotNull final Account user);
|
2014-01-28 02:28:16 -03:00
|
|
|
|
2014-01-28 02:21:14 -03:00
|
|
|
@Nullable
|
2024-02-17 11:18:43 -08:00
|
|
|
MindmapLabel getLabelByTitle(@NotNull final String title, @NotNull final Account user);
|
2014-01-30 04:35:48 -03:00
|
|
|
|
2024-02-17 11:18:43 -08:00
|
|
|
void removeLabel(@NotNull final MindmapLabel label);
|
2014-01-25 23:21:17 -03:00
|
|
|
}
|