Coverage Report - org.kuali.rice.krad.bo.AdHocRouteWorkgroup
 
Classes in this File Line Coverage Branch Coverage Complexity
AdHocRouteWorkgroup
0%
0/14
0%
0/2
1.286
 
 1  
 /*
 2  
  * Copyright 2006-2007 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.krad.bo;
 17  
 
 18  
 import javax.persistence.Table;
 19  
 import javax.persistence.Entity;
 20  
 import javax.persistence.IdClass;
 21  
 import javax.persistence.Transient;
 22  
 
 23  
 
 24  
 /**
 25  
  * Ad Hoc Route Workgroup Business Object
 26  
  */
 27  
 @IdClass(org.kuali.rice.krad.bo.AdHocRouteWorkgroupId.class)
 28  
 @Entity
 29  
 @Table(name="KRNS_ADHOC_RTE_ACTN_RECIP_T")
 30  
 public class AdHocRouteWorkgroup extends AdHocRouteRecipient {
 31  
 
 32  
     private static final long serialVersionUID = 1L;
 33  
     @Transient
 34  
     private String recipientNamespaceCode;
 35  
     @Transient
 36  
     private String recipientName;
 37  
 
 38  0
     public AdHocRouteWorkgroup() {
 39  0
         setType(WORKGROUP_TYPE);
 40  0
     }
 41  
 
 42  
     @Override
 43  
     public void setType(Integer type) {
 44  0
         if (!WORKGROUP_TYPE.equals(type)) {
 45  0
             throw new IllegalArgumentException("cannot change type to " + type);
 46  
         }
 47  0
         super.setType(type);
 48  0
     }
 49  
 
 50  
     @Override
 51  
     public String getName() {
 52  0
         return "";
 53  
     }
 54  
 
 55  
     public String getRecipientNamespaceCode() {
 56  0
         return this.recipientNamespaceCode;
 57  
     }
 58  
 
 59  
     public String getRecipientName() {
 60  0
         return this.recipientName;
 61  
     }
 62  
 
 63  
     public void setRecipientNamespaceCode(String recipientNamespaceCode) {
 64  0
         this.recipientNamespaceCode = recipientNamespaceCode;
 65  0
     }
 66  
 
 67  
     public void setRecipientName(String recipientName) {
 68  0
         this.recipientName = recipientName;
 69  0
     }
 70  
 }