1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.core.document.dao;
17
18 import java.util.List;
19
20 import org.kuali.student.common.dao.CrudDao;
21 import org.kuali.student.common.dao.SearchableDao;
22 import org.kuali.student.common.exceptions.DoesNotExistException;
23 import org.kuali.student.core.document.entity.Document;
24 import org.kuali.student.core.document.entity.DocumentCategory;
25 import org.kuali.student.core.document.entity.RefDocRelation;
26
27
28
29
30
31
32
33 public interface DocumentDao extends CrudDao, SearchableDao {
34
35 public Boolean addDocumentCategoryToDocument(String documentId, String documentCategoryKey) throws DoesNotExistException;
36
37 public List<DocumentCategory> getCategoriesByDocument(String documentId);
38
39 public List<Document> getDocumentsByIdList(List<String> documentIdList) throws DoesNotExistException;
40
41 public Boolean removeDocumentCategoryFromDocument(String documentId, String documentCategoryKey) throws DoesNotExistException;
42
43 public List<RefDocRelation> getRefDocRelationsByRef(String refObjectTypeKey,
44 String refObjectId);
45
46 public List<RefDocRelation> getRefDocRelationsByDoc(String documentId);
47
48 }