1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.doctype.dao; |
17 | |
|
18 | |
import java.util.Collection; |
19 | |
import java.util.List; |
20 | |
|
21 | |
import org.kuali.rice.kew.doctype.bo.DocumentType; |
22 | |
import org.kuali.rice.kew.rule.bo.RuleAttribute; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
public interface DocumentTypeDAO { |
29 | |
|
30 | |
public DocumentType findById(String docTypeId); |
31 | |
|
32 | |
public DocumentType findByName(String name); |
33 | |
|
34 | |
public DocumentType findByName(String name, boolean caseSensitive); |
35 | |
|
36 | |
public void save(DocumentType documentType); |
37 | |
|
38 | |
public Collection<DocumentType> find(DocumentType documentType, DocumentType docTypeParentName, boolean climbHierarchy); |
39 | |
|
40 | |
public void delete(DocumentType documentType); |
41 | |
|
42 | |
public List findByDocumentId(String documentId); |
43 | |
|
44 | |
public Integer getMaxVersionNumber(String docTypeName); |
45 | |
|
46 | |
public List findAllCurrentRootDocuments(); |
47 | |
|
48 | |
public List findAllCurrent(); |
49 | |
|
50 | |
public List findAllCurrentByName(String name); |
51 | |
|
52 | |
public List<DocumentType> findPreviousInstances(String documentTypeName); |
53 | |
|
54 | |
public List<String> getChildDocumentTypeIds(String parentDocumentTypeId); |
55 | |
|
56 | |
public List findDocumentTypeAttributes(RuleAttribute ruleAttribute); |
57 | |
|
58 | |
public String findDocumentTypeIdByDocumentId(String documentId); |
59 | |
|
60 | |
public String findDocumentTypeIdByName(String documentTypeName); |
61 | |
|
62 | |
public String findDocumentTypeNameById(String documentTypeId); |
63 | |
} |