Coverage Report - org.kuali.student.core.document.dto.RefDocRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
RefDocRelationInfo
0%
0/39
0%
0/2
1.042
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * 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 implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.student.core.document.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.core.dto.HasAttributes;
 30  
 import org.kuali.student.core.dto.HasTypeState;
 31  
 import org.kuali.student.core.dto.Idable;
 32  
 import org.kuali.student.core.dto.MetaInfo;
 33  
 import org.kuali.student.core.dto.RichTextInfo;
 34  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 35  
 
 36  
 
 37  
 /**
 38  
  * Information about the object to document relation.
 39  
  *
 40  
  * @Author KSContractMojo
 41  
  * @Author tom
 42  
  * @Since Wed Aug 18 12:10:44 EDT 2010
 43  
  * @See <a href="https://test.kuali.org/confluence/display/KULSTU/refDocRelationInfo+Structure">RefDocRelationInfo</>
 44  
  *
 45  
  */
 46  
 @XmlAccessorType(XmlAccessType.FIELD)
 47  0
 public class RefDocRelationInfo implements Serializable, Idable, HasTypeState, HasAttributes {
 48  
 
 49  
     private static final long serialVersionUID = 1L;
 50  
 
 51  
     @XmlElement
 52  
     private String refObjectTypeKey;
 53  
 
 54  
     @XmlElement
 55  
     private String refObjectId;
 56  
 
 57  
     @XmlElement
 58  
     private String documentId;
 59  
 
 60  
     @XmlElement
 61  
     private String title;
 62  
 
 63  
     @XmlElement
 64  
     private RichTextInfo desc;
 65  
 
 66  
     @XmlElement
 67  
     private Date effectiveDate;
 68  
 
 69  
     @XmlElement
 70  
     private Date expirationDate;
 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  
      * Unique identifier for an object type. Used to identify the type of object being referred to, so that the id can be resolved.
 90  
      */
 91  
     public String getRefObjectTypeKey() {
 92  0
         return refObjectTypeKey;
 93  
     }
 94  
 
 95  
     public void setRefObjectTypeKey(String refObjectTypeKey) {
 96  0
         this.refObjectTypeKey = refObjectTypeKey;
 97  0
     }
 98  
 
 99  
     /**
 100  
      * Identifier for an object. This will likely require some additional context in order to be resolved, such as the type of object. An objectId could be a cluId, a luiId, an orgId, a documentId, etc.
 101  
      */
 102  
     public String getRefObjectId() {
 103  0
         return refObjectId;
 104  
     }
 105  
 
 106  
     public void setRefObjectId(String refObjectId) {
 107  0
         this.refObjectId = refObjectId;
 108  0
     }
 109  
 
 110  
     /**
 111  
      * Unique identifier for a document.
 112  
      */
 113  
     public String getDocumentId() {
 114  0
         return documentId;
 115  
     }
 116  
 
 117  
     public void setDocumentId(String documentId) {
 118  0
         this.documentId = documentId;
 119  0
     }
 120  
 
 121  
     /**
 122  
      * The title of the document usage in the context of the relation to the object.
 123  
      */
 124  
     public String getTitle() {
 125  0
         return title;
 126  
     }
 127  
 
 128  
     public void setTitle(String title) {
 129  0
         this.title = title;
 130  0
     }
 131  
 
 132  
     /**
 133  
      * The description of the document usage in the context of the relation to the object.
 134  
      */
 135  
     public RichTextInfo getDesc() {
 136  0
         return desc;
 137  
     }
 138  
 
 139  
     public void setDesc(RichTextInfo desc) {
 140  0
         this.desc = desc;
 141  0
     }
 142  
 
 143  
     /**
 144  
      * Date and time that this Object 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.
 145  
      */
 146  
     public Date getEffectiveDate() {
 147  0
         return effectiveDate;
 148  
     }
 149  
 
 150  
     public void setEffectiveDate(Date effectiveDate) {
 151  0
         this.effectiveDate = effectiveDate;
 152  0
     }
 153  
 
 154  
     /**
 155  
      * Date and time that this Object 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.
 156  
      */
 157  
     public Date getExpirationDate() {
 158  0
         return expirationDate;
 159  
     }
 160  
 
 161  
     public void setExpirationDate(Date expirationDate) {
 162  0
         this.expirationDate = expirationDate;
 163  0
     }
 164  
 
 165  
     /**
 166  
      * List of key/value pairs, typically used for dynamic attributes.
 167  
      */
 168  
     public Map<String, String> getAttributes() {
 169  0
         if (attributes == null) {
 170  0
             attributes = new HashMap<String, String>();
 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  
      * 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.
 181  
      */
 182  
     public MetaInfo getMetaInfo() {
 183  0
         return metaInfo;
 184  
     }
 185  
 
 186  
     public void setMetaInfo(MetaInfo metaInfo) {
 187  0
         this.metaInfo = metaInfo;
 188  0
     }
 189  
 
 190  
     /**
 191  
      * Unique identifier for an object/document relationship type. Describes the type of usage of the document.
 192  
      */
 193  
     public String getType() {
 194  0
         return type;
 195  
     }
 196  
 
 197  
     public void setType(String type) {
 198  0
         this.type = type;
 199  0
     }
 200  
 
 201  
     /**
 202  
      * The current status of the object to document relationship. The values for this field are constrained to those in the refDocRelationState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
 203  
      */
 204  
     public String getState() {
 205  0
         return state;
 206  
     }
 207  
 
 208  
     public void setState(String state) {
 209  0
         this.state = state;
 210  0
     }
 211  
 
 212  
     /**
 213  
      * Unique identifier for a LU 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.
 214  
      */
 215  
     public String getId() {
 216  0
         return id;
 217  
     }
 218  
 
 219  
     public void setId(String id) {
 220  0
         this.id = id;
 221  0
     }
 222  
 }