Coverage Report - org.kuali.student.lum.lu.dto.LuDocRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LuDocRelationInfo
0%
0/36
0%
0/2
1.045
 
 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,
 11  
  * software distributed under the License is distributed on an "AS IS"
 12  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 13  
  * or 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.*;
 20  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAttribute;
 25  
 import javax.xml.bind.annotation.XmlElement;
 26  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 27  
 import java.io.Serializable;
 28  
 import java.util.Date;
 29  
 import java.util.HashMap;
 30  
 import java.util.Map;
 31  
 
 32  
 
 33  
 /**
 34  
  * Information about the LU to document relation.
 35  
  */
 36  
 
 37  
 @XmlAccessorType(XmlAccessType.FIELD)
 38  0
 public class LuDocRelationInfo implements Serializable, Idable, HasTypeState, HasAttributes {
 39  
 
 40  
     private static final long serialVersionUID = 1L;
 41  
 
 42  
     @XmlElement
 43  
     private String cluId;
 44  
 
 45  
     @XmlElement
 46  
     private String documentId;
 47  
 
 48  
     @XmlElement
 49  
     private String title;
 50  
 
 51  
     @XmlElement
 52  
     private RichTextInfo desc;
 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 document.
 92  
      */
 93  
 
 94  
     public String getDocumentId() {
 95  0
         return documentId;
 96  
     }
 97  
 
 98  
     public void setDocumentId(String documentId) {
 99  0
         this.documentId = documentId;
 100  0
     }
 101  
 
 102  
 
 103  
     /**
 104  
      * The title of the document usage in the context of the CLU.
 105  
      */
 106  
 
 107  
     public String getTitle() {
 108  0
         return title;
 109  
     }
 110  
 
 111  
     public void setTitle(String title) {
 112  0
         this.title = title;
 113  0
     }
 114  
 
 115  
 
 116  
     /**
 117  
      * The description of the document usage in the context of the CLU.
 118  
      */
 119  
 
 120  
     public RichTextInfo getDesc() {
 121  0
         return desc;
 122  
     }
 123  
 
 124  
     public void setDesc(RichTextInfo desc) {
 125  0
         this.desc = desc;
 126  0
     }
 127  
 
 128  
 
 129  
     /**
 130  
      * Date and time that this LU Doc Relation became effective. This
 131  
      * is a similar concept to the effective date on enumerated
 132  
      * values. When an expiration date has been specified, this field
 133  
      * must be less than or equal to the expiration date.
 134  
      */
 135  
 
 136  
     public Date getEffectiveDate() {
 137  0
         return effectiveDate;
 138  
     }
 139  
 
 140  
     public void setEffectiveDate(Date effectiveDate) {
 141  0
         this.effectiveDate = effectiveDate;
 142  0
     }
 143  
 
 144  
 
 145  
     /**
 146  
      * Date and time that this LU Doc Relation expires. This is a
 147  
      * similar concept to the expiration date on enumerated values. If
 148  
      * specified, this should be greater than or equal to the
 149  
      * effective date. If this field is not specified, then no
 150  
      * expiration date has been currently defined and should
 151  
      * automatically be considered greater than the effective date.
 152  
      */
 153  
 
 154  
     public Date getExpirationDate() {
 155  0
         return expirationDate;
 156  
     }
 157  
 
 158  
     public void setExpirationDate(Date expirationDate) {
 159  0
         this.expirationDate = expirationDate;
 160  0
     }
 161  
 
 162  
 
 163  
     /**
 164  
      * List of key/value pairs, typically used for dynamic attributes.
 165  
      */
 166  
 
 167  
     public Map<String, String> getAttributes() {
 168  0
         if (attributes == null) {
 169  0
             attributes = new HashMap<String, String>();
 170  
         }
 171  
 
 172  0
         return attributes;
 173  
     }
 174  
 
 175  
     public void setAttributes(Map<String, String> attributes) {
 176  0
         this.attributes = attributes;
 177  0
     }
 178  
 
 179  
 
 180  
     /**
 181  
      * Create and last update info for the structure. This is optional
 182  
      * and treated as read only since the data is set by the internals
 183  
      * of the service during maintenance operations.
 184  
      */
 185  
 
 186  
     public MetaInfo getMetaInfo() {
 187  0
         return metaInfo;
 188  
     }
 189  
 
 190  
     public void setMetaInfo(MetaInfo metaInfo) {
 191  0
         this.metaInfo = metaInfo;
 192  0
     }
 193  
 
 194  
 
 195  
     /**
 196  
      * Unique identifier for an LU document relationship
 197  
      * type. Describes the type of usage of the document.
 198  
      */
 199  
 
 200  
     public String getType() {
 201  0
         return type;
 202  
     }
 203  
 
 204  
     public void setType(String type) {
 205  0
         this.type = type;
 206  0
     }
 207  
 
 208  
 
 209  
     /**
 210  
      * The current status of the LU to document relationship. The
 211  
      * values for this field are constrained to those in the
 212  
      * luDocRelationState enumeration. A separate setup operation does
 213  
      * not exist for retrieval of the meta data around this value.
 214  
      */
 215  
 
 216  
     public String getState() {
 217  0
         return state;
 218  
     }
 219  
 
 220  
     public void setState(String state) {
 221  0
         this.state = state;
 222  0
     }
 223  
 
 224  
 
 225  
     /**
 226  
      * Unique identifier for a LU to document relation. This is
 227  
      * optional, due to the identifier being set at the time of
 228  
      * creation. Once the connection has been created, this should be
 229  
      * seen as required.
 230  
      */
 231  
 
 232  
     public String getId() {
 233  0
         return id;
 234  
     }
 235  
 
 236  
     public void setId(String id) {
 237  0
         this.id = id;
 238  0
     }
 239  
 }