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