25 lines
556 B
Java
Raw Normal View History

package com.wisemapping.dao;
import com.wisemapping.model.Label;
2014-01-26 18:21:01 -03:00
import com.wisemapping.model.User;
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;
public interface LabelManager {
2014-01-26 18:18:49 -03:00
void addLabel(@NotNull final Label label);
void saveLabel(@NotNull final Label label);
2014-01-26 18:21:01 -03:00
@NotNull
List<Label> getAllLabels(@NotNull final User user);
2014-01-28 02:28:16 -03:00
@Nullable
Label getLabelById(int id);
2014-01-28 02:21:14 -03:00
@Nullable
Label getLabelByTitle(@NotNull final String title, @NotNull final User user);
}