Coverage Report - org.kuali.rice.kew.doctype.service.DocumentTypeService
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentTypeService
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.service;
 17  
 
 18  
 import org.kuali.rice.core.framework.impex.xml.XmlExporter;
 19  
 import org.kuali.rice.kew.api.rule.Rule;
 20  
 import org.kuali.rice.kew.doctype.bo.DocumentType;
 21  
 import org.springframework.cache.annotation.CacheEvict;
 22  
 
 23  
 import java.util.List;
 24  
 
 25  
 
 26  
 /**
 27  
  * Service for data access of document types.
 28  
  *
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  */
 31  
 public interface DocumentTypeService extends DocumentTypeQueryService, XmlExporter {
 32  
     @CacheEvict(value={Rule.Cache.NAME, org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME}, allEntries = true)
 33  
     void versionAndSave(DocumentType documentType);
 34  
     @CacheEvict(value={Rule.Cache.NAME, org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME}, allEntries = true)
 35  
     void save(DocumentType documentType);
 36  
     List findAllCurrentRootDocuments();
 37  
     List findAllCurrent();
 38  
     List<DocumentType> findPreviousInstances(String documentTypeName);
 39  
     List getChildDocumentTypes(String documentTypeId);
 40  
 
 41  
     /**
 42  
      *
 43  
      * This method is similar to the findByName method except it is case insensitive.
 44  
      *
 45  
      * @param name
 46  
      * @return
 47  
      */
 48  
     DocumentType findByNameCaseInsensitive(String name);
 49  
 }