Coverage Report - org.kuali.student.lum.lu.dto.CluLoRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CluLoRelationInfo
0%
0/31
0%
0/2
1.053
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation 
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the
 5  
  * "License"); you may not use this file except in compliance with the
 6  
  * License. You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.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
 13  
  * implied. See the License for the specific language governing
 14  
  * permissions and limitations under the License.
 15  
  */
 16  
 
 17  
 package org.kuali.student.lum.lu.dto;
 18  
 
 19  
 import org.kuali.student.core.dto.HasAttributes;
 20  
 import org.kuali.student.core.dto.HasTypeState;
 21  
 import org.kuali.student.core.dto.Idable;
 22  
 import org.kuali.student.core.dto.MetaInfo;
 23  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 24  
 
 25  
 import javax.xml.bind.annotation.XmlAccessType;
 26  
 import javax.xml.bind.annotation.XmlAccessorType;
 27  
 import javax.xml.bind.annotation.XmlAttribute;
 28  
 import javax.xml.bind.annotation.XmlElement;
 29  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 30  
 import java.io.Serializable;
 31  
 import java.util.Date;
 32  
 import java.util.HashMap;
 33  
 import java.util.Map;
 34  
 
 35  
 
 36  
 /**
 37  
  * Detailed information about a CLU to LO relation.
 38  
  *
 39  
  * @Author Kamal
 40  
  * @Since Mon Jan 11 15:21:39 PST 2010
 41  
  */
 42  
 
 43  
 @XmlAccessorType(XmlAccessType.FIELD)
 44  0
 public class CluLoRelationInfo implements Serializable, Idable, HasTypeState, HasAttributes {
 45  
 
 46  
     private static final long serialVersionUID = 1L;
 47  
 
 48  
     @XmlElement
 49  
     private String cluId;
 50  
 
 51  
     @XmlElement
 52  
     private String loId;
 53  
 
 54  
     @XmlElement
 55  
     private Date effectiveDate;
 56  
 
 57  
     @XmlElement
 58  
     private Date expirationDate;
 59  
 
 60  
     @XmlElement
 61  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 62  
     private Map<String, String> attributes;
 63  
 
 64  
     @XmlElement
 65  
     private MetaInfo metaInfo;
 66  
 
 67  
     @XmlAttribute
 68  
     private String type;
 69  
 
 70  
     @XmlAttribute
 71  
     private String state;
 72  
 
 73  
     @XmlAttribute
 74  
     private String id;
 75  
 
 76  
 
 77  
     /**
 78  
      * Unique identifier for a Canonical Learning Unit (CLU).
 79  
      */
 80  
 
 81  
     public String getCluId() {
 82  0
         return cluId;
 83  
     }
 84  
 
 85  
     public void setCluId(String cluId) {
 86  0
         this.cluId = cluId;
 87  0
     }
 88  
 
 89  
 
 90  
     /**
 91  
      * Unique identifier for a learning objective record.
 92  
      */
 93  
 
 94  
     public String getLoId() {
 95  0
         return loId;
 96  
     }
 97  
 
 98  
     public void setLoId(String loId) {
 99  0
         this.loId = loId;
 100  0
     }
 101  
 
 102  
 
 103  
     /**
 104  
      * Date and time that this CLU to LO relationship became
 105  
      * effective. This is a similar concept to the effective date on
 106  
      * enumerated values. When an expiration date has been specified,
 107  
      * this field must be less than or equal to the expiration date.
 108  
      */
 109  
 
 110  
     public Date getEffectiveDate() {
 111  0
         return effectiveDate;
 112  
     }
 113  
 
 114  
     public void setEffectiveDate(Date effectiveDate) {
 115  0
         this.effectiveDate = effectiveDate;
 116  0
     }
 117  
 
 118  
 
 119  
     /**
 120  
      * Date and time that this CLU to LO relationship expires. This is
 121  
      * a similar concept to the expiration date on enumerated
 122  
      * values. If specified, this should be greater than or equal to
 123  
      * the effective date. If this field is not specified, then no
 124  
      * expiration date has been currently defined and should
 125  
      * automatically be considered greater than the effective date.
 126  
      */
 127  
 
 128  
     public Date getExpirationDate() {
 129  0
         return expirationDate;
 130  
     }
 131  
 
 132  
     public void setExpirationDate(Date expirationDate) {
 133  0
         this.expirationDate = expirationDate;
 134  0
     }
 135  
 
 136  
 
 137  
     /**
 138  
      * List of key/value pairs, typically used for dynamic attributes.
 139  
      */
 140  
 
 141  
     public Map<String, String> getAttributes() {
 142  0
         if (attributes == null) {
 143  0
             attributes = new HashMap<String, String>();
 144  
         }
 145  
 
 146  0
         return attributes;
 147  
     }
 148  
 
 149  
     public void setAttributes(Map<String, String> attributes) {
 150  0
         this.attributes = attributes;
 151  0
     }
 152  
 
 153  
 
 154  
     /**
 155  
      * Create and last update info for the structure. This is optional
 156  
      * and treated as read only since the data is set by the internals
 157  
      * of the service during maintenance operations.
 158  
      */
 159  
 
 160  
     public MetaInfo getMetaInfo() {
 161  0
         return metaInfo;
 162  
     }
 163  
 
 164  
     public void setMetaInfo(MetaInfo metaInfo) {
 165  0
         this.metaInfo = metaInfo;
 166  0
     }
 167  
 
 168  
 
 169  
     /**
 170  
      * Unique identifier for a clu lo relation type.
 171  
      */
 172  
 
 173  
     public String getType() {
 174  0
         return type;
 175  
     }
 176  
 
 177  
     public void setType(String type) {
 178  0
         this.type = type;
 179  0
     }
 180  
 
 181  
 
 182  
     /**
 183  
      * Identifier for the current status of a CLU to LO
 184  
      * relationship. The values for this field are constrained to
 185  
      * those in the luLoRelationState enumeration. A separate setup
 186  
      * operation does not exist for retrieval of the meta data around
 187  
      * this value.
 188  
      */
 189  
 
 190  
     public String getState() {
 191  0
         return state;
 192  
     }
 193  
 
 194  
     public void setState(String state) {
 195  0
         this.state = state;
 196  0
     }
 197  
 
 198  
 
 199  
     /**
 200  
      * Unique identifier for a single CLU LO Relation record. This is
 201  
      * optional, due to the identifier being set at the time of
 202  
      * creation. Once the relation has been created, this should be
 203  
      * seen as required.
 204  
      */
 205  
 
 206  
     public String getId() {
 207  0
         return id;
 208  
     }
 209  
 
 210  
     public void setId(String id) {
 211  0
         this.id = id;
 212  0
     }
 213  
 
 214  
     @Override
 215  
     public String toString() {
 216  0
         return "CLuLoRelationInfo[id=" + id + ", cluId=" + cluId + ", loId=" + loId + "]";
 217  
     }
 218  
 }