Coverage Report - org.kuali.rice.kew.doctype.dao.DocumentTypeDAO
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentTypeDAO
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 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  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 27  
  */
 28  
 public interface DocumentTypeDAO {
 29  
 
 30  
     public DocumentType findById(String docTypeId);
 31  
 
 32  
     public DocumentType findByName(String name); // docType is case sensitive by default
 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  
 }