1 package com.neidetcher.petunia.service;
2
3 import java.util.List;
4
5 public interface KnowledgeDao
6 {
7
8 public Knowledge save(Knowledge knowledge);
9
10 public Knowledge find(Integer id);
11
12 public List<Knowledge> findByTagName(String tagName);
13
14 public List<Knowledge> findByCategoryId(Integer knowledgeId);
15
16 public List<String> findTags(Integer knowledgeId);
17
18 public void addTag(Integer knowledgeId, String tagName);
19
20 public void removeTag(Integer knowledgeId, String tagName);
21 }