Coverage Report - org.kuali.rice.ken.bo.NotificationRecipientList
 
Classes in this File Line Coverage Branch Coverage Complexity
NotificationRecipientList
0%
0/14
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2008 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.ken.bo;
 17  
 
 18  
 import javax.persistence.CascadeType;
 19  
 import javax.persistence.Column;
 20  
 import javax.persistence.Entity;
 21  
 import javax.persistence.FetchType;
 22  
 import javax.persistence.Id;
 23  
 import javax.persistence.JoinColumn;
 24  
 import javax.persistence.ManyToOne;
 25  
 import javax.persistence.Table;
 26  
 
 27  
 /**
 28  
  * This class represents the data structure that will house a default recipient list for a notification channel.
 29  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 30  
  */
 31  
 @Entity
 32  
 @Table(name="KREN_RECIP_LIST_T")
 33  
 public class NotificationRecipientList {
 34  
     @Id
 35  
         @Column(name="RECIP_LIST_ID")
 36  
         private Long id;
 37  
     @Column(name="RECIP_TYP_CD", nullable=false)
 38  
         private String recipientType;
 39  
     @Column(name="RECIP_ID", nullable=false)
 40  
         private String recipientId;
 41  
     
 42  
     @ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.PERSIST})
 43  
         @JoinColumn(name="CHNL_ID")
 44  
         private NotificationChannel channel;
 45  
     
 46  
     /**
 47  
      * Constructs a NotificationRecipientList.java instance.
 48  
      */
 49  0
     public NotificationRecipientList() {
 50  0
     }
 51  
 
 52  
     /**
 53  
      * Gets the channel attribute. 
 54  
      * @return Returns the channel.
 55  
      */
 56  
     public NotificationChannel getChannel() {
 57  0
         return channel;
 58  
     }
 59  
 
 60  
 
 61  
     /**
 62  
      * Sets the channel attribute value.
 63  
      * @param channel The channel to set.
 64  
      */
 65  
     public void setChannel(NotificationChannel channel) {
 66  0
         this.channel = channel;
 67  0
     }
 68  
 
 69  
     /**
 70  
      * Gets the id attribute. 
 71  
      * @return Returns the id.
 72  
      */
 73  
     public Long getId() {
 74  0
         return id;
 75  
     }
 76  
 
 77  
     /**
 78  
      * Sets the id attribute value.
 79  
      * @param id The id to set.
 80  
      */
 81  
     public void setId(Long id) {
 82  0
         this.id = id;
 83  0
     }
 84  
 
 85  
     /**
 86  
      * Gets the recipientId attribute. 
 87  
      * @return Returns the recipientId.
 88  
      */
 89  
     public String getRecipientId() {
 90  0
         return recipientId;
 91  
     }
 92  
 
 93  
     /**
 94  
      * Sets the recipientId attribute value.
 95  
      * @param recipientId The recipientId to set.
 96  
      */
 97  
     public void setRecipientId(String recipientId) {
 98  0
         this.recipientId = recipientId;
 99  0
     }
 100  
 
 101  
     /**
 102  
      * Gets the recipientType attribute. 
 103  
      * @return Returns the recipientType.
 104  
      */
 105  
     public String getRecipientType() {
 106  0
         return recipientType;
 107  
     }
 108  
 
 109  
     /**
 110  
      * Sets the recipientType attribute value.
 111  
      * @param recipientType The recipientType to set.
 112  
      */
 113  
     public void setRecipientType(String recipientType) {
 114  0
         this.recipientType = recipientType;
 115  0
     }
 116  
 }
 117