Coverage Report - org.kuali.rice.kew.documentlink.service.impl.DocumentLinkServiceImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentLinkServiceImpl
0%
0/12
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2010 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.documentlink.service.impl;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import org.kuali.rice.kew.documentlink.DocumentLink;
 21  
 import org.kuali.rice.kew.documentlink.dao.DocumentLinkDAO;
 22  
 import org.kuali.rice.kew.documentlink.service.DocumentLinkService;
 23  
 
 24  
 /**
 25  
  * This is a description of what this class does - g1zhang don't forget to fill this in. 
 26  
  * 
 27  
  * @author Kuali Rice Team (kuali-rice@googlegroups.com)
 28  
  *
 29  
  */
 30  0
 public class DocumentLinkServiceImpl implements DocumentLinkService {
 31  
 
 32  
         private DocumentLinkDAO docLinkDao;
 33  
         /**
 34  
          * @return the docLinkDao
 35  
          */
 36  
         public DocumentLinkDAO getDocumentLinkDAO() {
 37  0
                 return this.docLinkDao;
 38  
         }
 39  
 
 40  
         /**
 41  
          * @param docLinkDao the docLinkDao to set
 42  
          */
 43  
         public void setDocumentLinkDAO(DocumentLinkDAO docLinkDao) {
 44  0
                 this.docLinkDao = docLinkDao;
 45  0
         }
 46  
 
 47  
         /**
 48  
          * This overridden method ...
 49  
          * 
 50  
          * @see org.kuali.rice.kew.documentlink.service.DocumentLinkService#deleteDocumentLink(org.kuali.rice.kew.documentlink.DocumentLink)
 51  
          */
 52  
         public void deleteDocumentLink(DocumentLink link) {
 53  0
                 getDocumentLinkDAO().deleteDocumentLink(link);
 54  0
         }
 55  
 
 56  
         
 57  
         /**
 58  
          * This overridden method ...
 59  
          * 
 60  
          * @see org.kuali.rice.kew.documentlink.service.DocumentLinkService#saveDocumentLink(org.kuali.rice.kew.documentlink.DocumentLink)
 61  
          */
 62  
         public void saveDocumentLink(DocumentLink link) {
 63  0
                 getDocumentLinkDAO().saveDocumentLink(link);
 64  
 
 65  0
         }
 66  
         /**
 67  
          * This overridden method ...
 68  
          * 
 69  
          * @see org.kuali.rice.kew.documentlink.service.DocumentLinkService#getLinkedDocumentByDocId(java.lang.Long)
 70  
          */
 71  
         public List<DocumentLink> getLinkedDocumentsByDocId(String docId) {
 72  0
                 return getDocumentLinkDAO().getLinkedDocumentsByDocId(docId);
 73  
         }
 74  
 
 75  
         /**
 76  
          * This overridden method ...
 77  
          * 
 78  
          * @see org.kuali.rice.kew.documentlink.service.DocumentLinkService#deleteDocumentLinksByDocId(java.lang.Long)
 79  
          */
 80  
         public void deleteDocumentLinksByDocId(String docId) {
 81  0
                 getDocumentLinkDAO().deleteDocmentLinksByDocId(docId);
 82  
                 
 83  0
         }
 84  
 
 85  
         /**
 86  
          * This overridden method ...
 87  
          * 
 88  
          * @see org.kuali.rice.kew.documentlink.service.DocumentLinkService#getLinkedDocument(org.kuali.rice.kew.documentlink.DocumentLink)
 89  
          */
 90  
         public DocumentLink getLinkedDocument(DocumentLink link) {
 91  0
                 return getDocumentLinkDAO().getLinkedDocument(link);
 92  
         }
 93  
 
 94  
 
 95  
 }