Coverage Report - org.kuali.student.common.assembly.dictionary.old.DataFieldDescriptor
 
Classes in this File Line Coverage Branch Coverage Complexity
DataFieldDescriptor
69%
36/52
N/A
1
 
 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.common.assembly.dictionary.old;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import org.kuali.student.common.assembly.data.ConstraintMetadata;
 21  
 import org.kuali.student.common.assembly.data.LookupMetadata;
 22  
 
 23  
 
 24  
 /**
 25  
  * This defines a field in the orchestration data object
 26  
  * 
 27  
  *   This is similar to the org.kuali.student.common.assembly.client.Metadata and
 28  
  *   the org.kuali.student.core.dictionary.dto.Field and org.kuali.student.core.dictionary.dto.FieldDescriptor objects. 
 29  
  * 
 30  
  * @author Kuali Student Team
 31  
  *
 32  
  */
 33  
 @Deprecated
 34  115
 public class DataFieldDescriptor {    
 35  
     protected String name;
 36  
     
 37  
     protected String desc;
 38  
     
 39  
     protected String writeAccess;
 40  
     
 41  115
     private boolean canUnmask = false;
 42  
 
 43  115
     private boolean canView = true;
 44  
     
 45  115
     private boolean canEdit = true;
 46  
 
 47  
     protected String permission;
 48  
     
 49  
     protected String dataType;
 50  
     
 51  
     protected Object defaultValue;
 52  
     
 53  
     protected String defaultValuePath;
 54  
 
 55  
     protected boolean onChangeRefreshMetadata;
 56  
     
 57  
     protected String lookupContextPath;
 58  
     
 59  
     protected List<ConstraintMetadata> constraints;
 60  
     
 61  
     protected LookupMetadata initialLookup;
 62  
     
 63  
     protected List<LookupMetadata> additionalLookups;   
 64  
     
 65  
     protected DataObjectStructure dataObjectStructure;
 66  
         
 67  
     public String getName() {
 68  290
         return name;
 69  
     }
 70  
 
 71  
     public void setName(String name) {
 72  115
         this.name = name;
 73  115
     }
 74  
 
 75  
     public String getDesc() {
 76  0
         return desc;
 77  
     }
 78  
 
 79  
     public void setDesc(String desc) {
 80  0
         this.desc = desc;
 81  0
     }
 82  
 
 83  
     public String getWriteAccess() {
 84  145
         return writeAccess;
 85  
     }
 86  
 
 87  
     public String getPermission() {
 88  0
         return permission;
 89  
     }
 90  
 
 91  
     public void setPermission(String permission) {
 92  0
         this.permission = permission;
 93  0
     }
 94  
     
 95  
     public void setWriteAccess(String writeAccess) {
 96  115
         this.writeAccess = writeAccess;
 97  115
     }
 98  
 
 99  
     public String getDataType() {
 100  164
         return dataType;
 101  
     }
 102  
 
 103  
     public void setDataType(String dataType) {
 104  115
         this.dataType = dataType;
 105  115
     }
 106  
 
 107  
     public Object getDefaultValue() {
 108  145
         return defaultValue;
 109  
     }
 110  
 
 111  
     public void setDefaultValue(Object defaultValue) {
 112  22
         this.defaultValue = defaultValue;
 113  22
     }
 114  
 
 115  
     public List<ConstraintMetadata> getConstraints() {
 116  435
         return constraints;
 117  
     }
 118  
 
 119  
     public void setConstraints(List<ConstraintMetadata> constraints) {
 120  115
         this.constraints = constraints;
 121  115
     }
 122  
 
 123  
     public boolean isOnChangeRefreshMetadata() {
 124  0
         return onChangeRefreshMetadata;
 125  
     }
 126  
 
 127  
     public void setOnChangeRefreshMetadata(boolean onChangeRefreshMetadata) {
 128  115
         this.onChangeRefreshMetadata = onChangeRefreshMetadata;
 129  115
     }
 130  
 
 131  
     public String getLookupContextPath() {
 132  145
         return lookupContextPath;
 133  
     }
 134  
 
 135  
     public void setLookupContextPath(String lookupContextPath) {
 136  8
         this.lookupContextPath = lookupContextPath;
 137  8
     }
 138  
 
 139  
     public LookupMetadata getInitialLookup() {
 140  145
         return initialLookup;
 141  
     }
 142  
 
 143  
     public void setInitialLookup(LookupMetadata initialLookup) {
 144  11
         this.initialLookup = initialLookup;
 145  11
     }
 146  
 
 147  
     public List<LookupMetadata> getAdditionalLookups() {
 148  145
         return additionalLookups;
 149  
     }
 150  
 
 151  
     public String getDefaultValuePath() {
 152  0
         return defaultValuePath;
 153  
     }
 154  
 
 155  
     public void setDefaultValuePath(String defaultValuePath) {
 156  1
         this.defaultValuePath = defaultValuePath;
 157  1
     }
 158  
 
 159  
     public DataObjectStructure getDataObjectStructure() {
 160  184
         return dataObjectStructure;
 161  
     }
 162  
 
 163  
     public void setDataObjectStructure(DataObjectStructure dataObjectStructure) {
 164  29
         this.dataObjectStructure = dataObjectStructure;
 165  29
     }
 166  
 
 167  
     public boolean isCanUnmask() {
 168  145
         return canUnmask;
 169  
     }
 170  
 
 171  
     public void setCanUnmask(boolean canUnmask) {
 172  0
         this.canUnmask = canUnmask;
 173  0
     }
 174  
 
 175  
     public boolean isCanView() {
 176  145
         return canView;
 177  
     }
 178  
 
 179  
     public void setCanView(boolean canView) {
 180  0
         this.canView = canView;
 181  0
     }
 182  
 
 183  
     public boolean isCanEdit() {
 184  145
         return canEdit;
 185  
     }
 186  
 
 187  
     public void setCanEdit(boolean canEdit) {
 188  0
         this.canEdit = canEdit;
 189  0
     }
 190  
 
 191  
     public void setAdditionalLookups(List<LookupMetadata> additionalLookups) {
 192  0
         this.additionalLookups = additionalLookups;
 193  0
     }
 194  
 }