Coverage Report - org.kuali.student.lum.lu.dto.CluSetTreeViewInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CluSetTreeViewInfo
0%
0/45
0%
0/2
1.036
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.lum.lu.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.Date;
 21  
 import java.util.HashMap;
 22  
 import java.util.List;
 23  
 import java.util.Map;
 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  
 
 31  
 import org.kuali.student.common.dto.HasAttributes;
 32  
 import org.kuali.student.common.dto.Idable;
 33  
 import org.kuali.student.common.dto.MetaInfo;
 34  
 import org.kuali.student.common.dto.RichTextInfo;
 35  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 36  
 
 37  
 /**
 38  
  *Detailed information about a single CLU Set.
 39  
  */ 
 40  
 @XmlAccessorType(XmlAccessType.FIELD)
 41  0
 public class CluSetTreeViewInfo implements Serializable, Idable, HasAttributes {
 42  
 
 43  
     private static final long serialVersionUID = 1L;
 44  
 
 45  
     @XmlElement
 46  
     private String name;
 47  
 
 48  
     @XmlElement
 49  
     private RichTextInfo descr;
 50  
 
 51  
     @XmlElement
 52  
     private Date effectiveDate;
 53  
 
 54  
     @XmlElement
 55  
     private Date expirationDate;
 56  
     
 57  
     @XmlElement
 58  
     private String adminOrg;
 59  
 
 60  
     @XmlElement
 61  
     private Boolean isReusable;
 62  
 
 63  
     @XmlElement
 64  
     private Boolean isReferenceable;
 65  
     
 66  
     @XmlElement
 67  
     private List<CluSetTreeViewInfo> cluSets;
 68  
 
 69  
     @XmlElement
 70  
     private List<CluInfo> clus;
 71  
 
 72  
     @XmlElement
 73  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 74  
     private Map<String, String> attributes;
 75  
 
 76  
     @XmlElement
 77  
     private MetaInfo metaInfo;
 78  
 
 79  
     @XmlAttribute
 80  
     private String type;
 81  
 
 82  
     @XmlAttribute
 83  
     private String state;
 84  
 
 85  
     @XmlAttribute
 86  
     private String id;
 87  
 
 88  
     /**
 89  
      * Friendly name of the CLU Set.
 90  
      */
 91  
     public String getName() {
 92  0
         return name;
 93  
     }
 94  
 
 95  
     public void setName(String name) {
 96  0
         this.name = name;
 97  0
     }
 98  
 
 99  
     /**
 100  
      * Narrative description of the CLU Set.
 101  
      */
 102  
     public RichTextInfo getDescr() {
 103  0
         return descr;
 104  
     }
 105  
 
 106  
     public void setDescr(RichTextInfo descr) {
 107  0
         this.descr = descr;
 108  0
     }
 109  
 
 110  
     /**
 111  
      * Date and time that this CLU Set became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
 112  
      */
 113  
     public Date getEffectiveDate() {
 114  0
         return effectiveDate;
 115  
     }
 116  
 
 117  
     public void setEffectiveDate(Date effectiveDate) {
 118  0
         this.effectiveDate = effectiveDate;
 119  0
     }
 120  
 
 121  
     /**
 122  
      * Date and time that this CLU Set expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
 123  
      */
 124  
     public Date getExpirationDate() {
 125  0
         return expirationDate;
 126  
     }
 127  
 
 128  
     public void setExpirationDate(Date expirationDate) {
 129  0
         this.expirationDate = expirationDate;
 130  0
     }
 131  
 
 132  
 //    /**
 133  
 //     * Specifies a search for CLU identifiers. Present for dynamic CLU Sets
 134  
 //     */
 135  
 //    public CluCriteriaInfo getCluCriteria() {
 136  
 //        return cluCriteria;
 137  
 //    }
 138  
 //
 139  
 //    public void setCluCriteria(CluCriteriaInfo cluCriteria) {
 140  
 //        this.cluCriteria = cluCriteria;
 141  
 //    }
 142  
 
 143  
 
 144  
     /**
 145  
      * List of key/value pairs, typically used for dynamic attributes.
 146  
      */
 147  
     public Map<String, String> getAttributes() {
 148  0
         if (attributes == null) {
 149  0
             attributes = new HashMap<String, String>();
 150  
         }
 151  0
         return attributes;
 152  
     }
 153  
 
 154  
     public void setAttributes(Map<String, String> attributes) {
 155  0
         this.attributes = attributes;
 156  0
     }
 157  
 
 158  
     /**
 159  
      * Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
 160  
      */
 161  
     public MetaInfo getMetaInfo() {
 162  0
         return metaInfo;
 163  
     }
 164  
 
 165  
     public void setMetaInfo(MetaInfo metaInfo) {
 166  0
         this.metaInfo = metaInfo;
 167  0
     }
 168  
 
 169  
     /**
 170  
      * Unique identifier for a CLU Set. This is optional, due to the identifier being set at the time of creation. Once the CLU Set has been created, this should be seen as required.
 171  
      */
 172  
     public String getId() {
 173  0
         return id;
 174  
     }
 175  
 
 176  
     public void setId(String id) {
 177  0
         this.id = id;
 178  0
     }
 179  
 
 180  
         /**
 181  
          * Gets the clu set type. 
 182  
          * Once set at create time, this field may not be updated.
 183  
          * 
 184  
          * @return Clu set type
 185  
          */
 186  
         public String getType() {
 187  0
                 return type;
 188  
         }
 189  
 
 190  
         /**
 191  
          * Sets the clu set type. 
 192  
          * Once set at create time, this field may not be updated.
 193  
          * 
 194  
          * @param type Clu set type
 195  
          */
 196  
         public void setType(String type) {
 197  0
                 this.type = type;
 198  0
         }
 199  
 
 200  
         public String getState() {
 201  0
                 return state;
 202  
         }
 203  
 
 204  
         public void setState(String state) {
 205  0
                 this.state = state;
 206  0
         }
 207  
 
 208  
         public String getAdminOrg() {
 209  0
                 return adminOrg;
 210  
         }
 211  
 
 212  
         public void setAdminOrg(String adminOrg) {
 213  0
                 this.adminOrg = adminOrg;
 214  0
         }
 215  
 
 216  
         public Boolean getIsReusable() {
 217  0
                 return isReusable;
 218  
         }
 219  
 
 220  
         public void setIsReusable(Boolean isReusable) {
 221  0
                 this.isReusable = isReusable;
 222  0
         }
 223  
 
 224  
         public Boolean getIsReferenceable() {
 225  0
                 return isReferenceable;
 226  
         }
 227  
 
 228  
         public void setIsReferenceable(Boolean isReferenceable) {
 229  0
                 this.isReferenceable = isReferenceable;
 230  0
         }
 231  
 
 232  
         public List<CluSetTreeViewInfo> getCluSets() {
 233  0
                 return cluSets;
 234  
         }
 235  
 
 236  
         public void setCluSets(List<CluSetTreeViewInfo> cluSets) {
 237  0
                 this.cluSets = cluSets;
 238  0
         }
 239  
 
 240  
         public List<CluInfo> getClus() {
 241  0
                 return clus;
 242  
         }
 243  
 
 244  
         public void setClus(List<CluInfo> clus) {
 245  0
                 this.clus = clus;
 246  0
         }                            
 247  
 }