Coverage Report - org.kuali.student.core.proposal.dto.ProposalDocRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ProposalDocRelationInfo
0%
0/36
0%
0/2
1.045
 
 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.core.proposal.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.Date;
 20  
 import java.util.HashMap;
 21  
 import java.util.Map;
 22  
 
 23  
 import javax.xml.bind.annotation.XmlAccessType;
 24  
 import javax.xml.bind.annotation.XmlAccessorType;
 25  
 import javax.xml.bind.annotation.XmlAttribute;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 28  
 
 29  
 import org.kuali.student.common.dto.HasAttributes;
 30  
 import org.kuali.student.common.dto.HasTypeState;
 31  
 import org.kuali.student.common.dto.Idable;
 32  
 import org.kuali.student.common.dto.MetaInfo;
 33  
 import org.kuali.student.common.dto.RichTextInfo;
 34  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 35  
 
 36  
 /**
 37  
  * Information about the proposal to document relation.
 38  
  *
 39  
  * @Author KSContractMojo
 40  
  * @Author Neerav Agrawal
 41  
  * @Since Thu May 28 10:25:45 EDT 2009
 42  
  * @See <a href="https://test.kuali.org/confluence/display/KULSTU/proposalDocRelationInfo+Structure">ProposalDocRelationInfo</>
 43  
  *
 44  
  */
 45  
 @XmlAccessorType(XmlAccessType.FIELD)
 46  0
 public class ProposalDocRelationInfo implements Serializable, Idable, HasTypeState, HasAttributes {
 47  
 
 48  
     private static final long serialVersionUID = 1L;
 49  
 
 50  
     @XmlElement
 51  
     private String proposalId;
 52  
 
 53  
     @XmlElement
 54  
     private String documentId;
 55  
 
 56  
     @XmlElement
 57  
     private String title;
 58  
 
 59  
     @XmlElement
 60  
     private RichTextInfo desc;
 61  
 
 62  
     @XmlElement
 63  
     private Date effectiveDate;
 64  
 
 65  
     @XmlElement
 66  
     private Date expirationDate;
 67  
 
 68  
     @XmlElement
 69  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 70  
     private Map<String, String> attributes;
 71  
 
 72  
     @XmlElement
 73  
     private MetaInfo metaInfo;
 74  
 
 75  
     @XmlAttribute
 76  
     private String type;
 77  
 
 78  
     @XmlAttribute
 79  
     private String state;
 80  
 
 81  
     @XmlAttribute
 82  
     private String id;
 83  
 
 84  
     /**
 85  
      * Unique identifier for a Proposal.
 86  
      */
 87  
     public String getProposalId() {
 88  0
         return proposalId;
 89  
     }
 90  
 
 91  
     public void setProposalId(String proposalId) {
 92  0
         this.proposalId = proposalId;
 93  0
     }
 94  
 
 95  
     /**
 96  
      * Unique identifier for a document.
 97  
      */
 98  
     public String getDocumentId() {
 99  0
         return documentId;
 100  
     }
 101  
 
 102  
     public void setDocumentId(String documentId) {
 103  0
         this.documentId = documentId;
 104  0
     }
 105  
 
 106  
     /**
 107  
      * The title of the document usage in the context of the Proposal.
 108  
      */
 109  
     public String getTitle() {
 110  0
         return title;
 111  
     }
 112  
 
 113  
     public void setTitle(String title) {
 114  0
         this.title = title;
 115  0
     }
 116  
 
 117  
     /**
 118  
      * The description of the document usage in the context of the Proposal.
 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  
      * Date and time that this Proposal Doc Relation 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.
 130  
      */
 131  
     public Date getEffectiveDate() {
 132  0
         return effectiveDate;
 133  
     }
 134  
 
 135  
     public void setEffectiveDate(Date effectiveDate) {
 136  0
         this.effectiveDate = effectiveDate;
 137  0
     }
 138  
 
 139  
     /**
 140  
      * Date and time that this Proposal Doc Relation 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.
 141  
      */
 142  
     public Date getExpirationDate() {
 143  0
         return expirationDate;
 144  
     }
 145  
 
 146  
     public void setExpirationDate(Date expirationDate) {
 147  0
         this.expirationDate = expirationDate;
 148  0
     }
 149  
 
 150  
     /**
 151  
      * List of key/value pairs, typically used for dynamic attributes.
 152  
      */
 153  
     public Map<String, String> getAttributes() {
 154  0
         if (attributes == null) {
 155  0
             attributes = new HashMap<String, String>();
 156  
         }
 157  0
         return attributes;
 158  
     }
 159  
 
 160  
     public void setAttributes(Map<String, String> attributes) {
 161  0
         this.attributes = attributes;
 162  0
     }
 163  
 
 164  
     /**
 165  
      * 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.
 166  
      */
 167  
     public MetaInfo getMetaInfo() {
 168  0
         return metaInfo;
 169  
     }
 170  
 
 171  
     public void setMetaInfo(MetaInfo metaInfo) {
 172  0
         this.metaInfo = metaInfo;
 173  0
     }
 174  
 
 175  
     /**
 176  
      * Unique identifier for a proposal document relation type. Describes the type of usage of the document.
 177  
      */
 178  
     public String getType() {
 179  0
         return type;
 180  
     }
 181  
 
 182  
     public void setType(String type) {
 183  0
         this.type = type;
 184  0
     }
 185  
 
 186  
     /**
 187  
      * The current status of the Proposal to document relationship. The values for this field are constrained to those in the proposalDocRelationState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
 188  
      */
 189  
     public String getState() {
 190  0
         return state;
 191  
     }
 192  
 
 193  
     public void setState(String state) {
 194  0
         this.state = state;
 195  0
     }
 196  
 
 197  
     /**
 198  
      * Unique identifier for a proposal to document relation. This is optional, due to the identifier being set at the time of creation. Once the connection has been created, this should be seen as required.
 199  
      */
 200  
     public String getId() {
 201  0
         return id;
 202  
     }
 203  
 
 204  
     public void setId(String id) {
 205  0
         this.id = id;
 206  0
     }
 207  
 }