Coverage Report - org.kuali.student.lum.lu.dto.CluSetInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CluSetInfo
0%
0/52
0%
0/6
1.1
 
 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.Idable;
 21  
 import org.kuali.student.core.dto.MetaInfo;
 22  
 import org.kuali.student.core.dto.RichTextInfo;
 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.*;
 32  
 
 33  
 
 34  
 /**
 35  
  * Detailed information about a single CLU Set.
 36  
  */
 37  
 
 38  
 @XmlAccessorType(XmlAccessType.FIELD)
 39  0
 public class CluSetInfo implements Serializable, Idable, HasAttributes {
 40  
 
 41  
     private static final long serialVersionUID = 1L;
 42  
 
 43  
     @XmlElement
 44  
     private String name;
 45  
 
 46  
     @XmlElement
 47  
     private RichTextInfo descr;
 48  
 
 49  
     @XmlElement
 50  
     private Date effectiveDate;
 51  
 
 52  
     @XmlElement
 53  
     private Date expirationDate;
 54  
 
 55  
     @XmlElement
 56  
     private MembershipQueryInfo membershipQuery;
 57  
 
 58  
     @XmlElement
 59  
     private String adminOrg;
 60  
 
 61  
     @XmlElement
 62  
     private Boolean isReusable;
 63  
 
 64  
     @XmlElement
 65  
     private Boolean isReferenceable;
 66  
 
 67  
     @XmlElement
 68  
     private List<String> cluSetIds;
 69  
 
 70  
     @XmlElement
 71  
     private List<String> cluIds;
 72  
 
 73  
     @XmlElement
 74  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 75  
     private Map<String, String> attributes;
 76  
 
 77  
     @XmlElement
 78  
     private MetaInfo metaInfo;
 79  
 
 80  
     @XmlAttribute
 81  
     private String type;
 82  
 
 83  
     @XmlAttribute
 84  
     private String state;
 85  
 
 86  
     @XmlAttribute
 87  
     private String id;
 88  
 
 89  
 
 90  
     /**
 91  
      * Friendly name of the CLU Set.
 92  
      */
 93  
 
 94  
     public String getName() {
 95  0
         return name;
 96  
     }
 97  
 
 98  
     public void setName(String name) {
 99  0
         this.name = name;
 100  0
     }
 101  
 
 102  
 
 103  
     /**
 104  
      * Narrative description of the CLU Set.
 105  
      */
 106  
 
 107  
     public RichTextInfo getDescr() {
 108  0
         return descr;
 109  
     }
 110  
 
 111  
     public void setDescr(RichTextInfo descr) {
 112  0
         this.descr = descr;
 113  0
     }
 114  
 
 115  
 
 116  
     /**
 117  
      * Date and time that this CLU Set became effective. This is a
 118  
      * similar concept to the effective date on enumerated
 119  
      * values. When an expiration date has been specified, this field
 120  
      * must be less than or equal to the expiration date.
 121  
      */
 122  
 
 123  
     public Date getEffectiveDate() {
 124  0
         return effectiveDate;
 125  
     }
 126  
 
 127  
     public void setEffectiveDate(Date effectiveDate) {
 128  0
         this.effectiveDate = effectiveDate;
 129  0
     }
 130  
 
 131  
 
 132  
     /**
 133  
      * Date and time that this CLU Set expires. This is a similar
 134  
      * concept to the expiration date on enumerated values. If
 135  
      * specified, this should be greater than or equal to the
 136  
      * effective date. If this field is not specified, then no
 137  
      * expiration date has been currently defined and should
 138  
      * automatically be considered greater than the effective date.
 139  
      */
 140  
 
 141  
     public Date getExpirationDate() {
 142  0
         return expirationDate;
 143  
     }
 144  
 
 145  
     public void setExpirationDate(Date expirationDate) {
 146  0
         this.expirationDate = expirationDate;
 147  0
     }
 148  
 
 149  
 //    /**
 150  
 //     * Specifies a search for CLU identifiers. Present for dynamic CLU Sets
 151  
 //     */
 152  
 //    public CluCriteriaInfo getCluCriteria() {
 153  
 //        return cluCriteria;
 154  
 //    }
 155  
 //
 156  
 //    public void setCluCriteria(CluCriteriaInfo cluCriteria) {
 157  
 //        this.cluCriteria = cluCriteria;
 158  
 //    }
 159  
 
 160  
 
 161  
     /**
 162  
      * List of identifiers of directly contained CLU Sets. Present for
 163  
      * enumerated CLU Sets.
 164  
      */
 165  
 
 166  
     public List<String> getCluSetIds() {
 167  0
         if (cluSetIds == null) {
 168  0
             cluSetIds = new ArrayList<String>();
 169  
         }
 170  
 
 171  0
         return cluSetIds;
 172  
     }
 173  
 
 174  
     public void setCluSetIds(List<String> cluSetIds) {
 175  0
         this.cluSetIds = cluSetIds;
 176  0
     }
 177  
 
 178  
 
 179  
     /**
 180  
      * List of identifiers of directly contained CLUs. Present for
 181  
      * enumerated CLU Sets.
 182  
      */
 183  
 
 184  
     public List<String> getCluIds() {
 185  0
         if (cluIds == null) {
 186  0
             cluIds = new ArrayList<String>();
 187  
         }
 188  
 
 189  0
         return cluIds;
 190  
     }
 191  
 
 192  
     public void setCluIds(List<String> cluIds) {
 193  0
         this.cluIds = cluIds;
 194  0
     }
 195  
 
 196  
 
 197  
     /**
 198  
      * List of key/value pairs, typically used for dynamic attributes.
 199  
      */
 200  
 
 201  
     public Map<String, String> getAttributes() {
 202  0
         if (attributes == null) {
 203  0
             attributes = new HashMap<String, String>();
 204  
         }
 205  
 
 206  0
         return attributes;
 207  
     }
 208  
 
 209  
     public void setAttributes(Map<String, String> attributes) {
 210  0
         this.attributes = attributes;
 211  0
     }
 212  
 
 213  
 
 214  
     /**
 215  
      * Create and last update info for the structure. This is optional
 216  
      * and treated as read only since the data is set by the internals
 217  
      * of the service during maintenance operations.
 218  
      */
 219  
 
 220  
     public MetaInfo getMetaInfo() {
 221  0
         return metaInfo;
 222  
     }
 223  
 
 224  
     public void setMetaInfo(MetaInfo metaInfo) {
 225  0
         this.metaInfo = metaInfo;
 226  0
     }
 227  
 
 228  
 
 229  
     /**
 230  
      * Unique identifier for a CLU Set. This is optional, due to the
 231  
      * identifier being set at the time of creation. Once the CLU Set
 232  
      * has been created, this should be seen as required.
 233  
      */
 234  
 
 235  
     public String getId() {
 236  0
         return id;
 237  
     }
 238  
 
 239  
     public void setId(String id) {
 240  0
         this.id = id;
 241  0
     }
 242  
 
 243  
     public MembershipQueryInfo getMembershipQuery() {
 244  0
         return membershipQuery;
 245  
     }
 246  
 
 247  
     public void setMembershipQuery(MembershipQueryInfo membershipQuery) {
 248  0
         this.membershipQuery = membershipQuery;
 249  0
     }
 250  
 
 251  
 
 252  
     /**
 253  
      * Gets the clu set type.  Once set at create time, this field may
 254  
      * not be updated.
 255  
      *
 256  
      * @return Clu set type
 257  
      */
 258  
 
 259  
     public String getType() {
 260  0
         return type;
 261  
     }
 262  
 
 263  
 
 264  
     /**
 265  
      * Sets the clu set type.
 266  
      * Once set at create time, this field may not be updated.
 267  
      *
 268  
      * @param type Clu set type
 269  
      */
 270  
 
 271  
     public void setType(String type) {
 272  0
         this.type = type;
 273  0
     }
 274  
 
 275  
     public String getState() {
 276  0
         return state;
 277  
     }
 278  
 
 279  
     public void setState(String state) {
 280  0
         this.state = state;
 281  0
     }
 282  
 
 283  
     public String getAdminOrg() {
 284  0
         return adminOrg;
 285  
     }
 286  
 
 287  
     public void setAdminOrg(String adminOrg) {
 288  0
         this.adminOrg = adminOrg;
 289  0
     }
 290  
 
 291  
     public Boolean getIsReusable() {
 292  0
         return isReusable;
 293  
     }
 294  
 
 295  
     public void setIsReusable(Boolean isReusable) {
 296  0
         this.isReusable = isReusable;
 297  0
     }
 298  
 
 299  
     public Boolean getIsReferenceable() {
 300  0
         return isReferenceable;
 301  
     }
 302  
 
 303  
     public void setIsReferenceable(Boolean isReferenceable) {
 304  0
         this.isReferenceable = isReferenceable;
 305  0
     }
 306  
 }