View Javadoc

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.r1.common.assembly.dictionary.old;
17  
18  import java.util.List;
19  
20  import org.kuali.student.r1.common.assembly.data.ConstraintMetadata;
21  import org.kuali.student.r1.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  public class DataFieldDescriptor {    
35      protected String name;
36      
37      protected String desc;
38      
39      protected String writeAccess;
40      
41      private boolean canUnmask = false;
42  
43      private boolean canView = true;
44      
45      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          return name;
69      }
70  
71      public void setName(String name) {
72          this.name = name;
73      }
74  
75      public String getDesc() {
76          return desc;
77      }
78  
79      public void setDesc(String desc) {
80          this.desc = desc;
81      }
82  
83      public String getWriteAccess() {
84          return writeAccess;
85      }
86  
87      public String getPermission() {
88          return permission;
89      }
90  
91      public void setPermission(String permission) {
92          this.permission = permission;
93      }
94      
95      public void setWriteAccess(String writeAccess) {
96          this.writeAccess = writeAccess;
97      }
98  
99      public String getDataType() {
100         return dataType;
101     }
102 
103     public void setDataType(String dataType) {
104         this.dataType = dataType;
105     }
106 
107     public Object getDefaultValue() {
108         return defaultValue;
109     }
110 
111     public void setDefaultValue(Object defaultValue) {
112         this.defaultValue = defaultValue;
113     }
114 
115     public List<ConstraintMetadata> getConstraints() {
116         return constraints;
117     }
118 
119     public void setConstraints(List<ConstraintMetadata> constraints) {
120         this.constraints = constraints;
121     }
122 
123     public boolean isOnChangeRefreshMetadata() {
124         return onChangeRefreshMetadata;
125     }
126 
127     public void setOnChangeRefreshMetadata(boolean onChangeRefreshMetadata) {
128         this.onChangeRefreshMetadata = onChangeRefreshMetadata;
129     }
130 
131     public String getLookupContextPath() {
132         return lookupContextPath;
133     }
134 
135     public void setLookupContextPath(String lookupContextPath) {
136         this.lookupContextPath = lookupContextPath;
137     }
138 
139     public LookupMetadata getInitialLookup() {
140         return initialLookup;
141     }
142 
143     public void setInitialLookup(LookupMetadata initialLookup) {
144         this.initialLookup = initialLookup;
145     }
146 
147     public List<LookupMetadata> getAdditionalLookups() {
148         return additionalLookups;
149     }
150 
151     public String getDefaultValuePath() {
152         return defaultValuePath;
153     }
154 
155     public void setDefaultValuePath(String defaultValuePath) {
156         this.defaultValuePath = defaultValuePath;
157     }
158 
159     public DataObjectStructure getDataObjectStructure() {
160         return dataObjectStructure;
161     }
162 
163     public void setDataObjectStructure(DataObjectStructure dataObjectStructure) {
164         this.dataObjectStructure = dataObjectStructure;
165     }
166 
167     public boolean isCanUnmask() {
168         return canUnmask;
169     }
170 
171     public void setCanUnmask(boolean canUnmask) {
172         this.canUnmask = canUnmask;
173     }
174 
175     public boolean isCanView() {
176         return canView;
177     }
178 
179     public void setCanView(boolean canView) {
180         this.canView = canView;
181     }
182 
183     public boolean isCanEdit() {
184         return canEdit;
185     }
186 
187     public void setCanEdit(boolean canEdit) {
188         this.canEdit = canEdit;
189     }
190 
191     public void setAdditionalLookups(List<LookupMetadata> additionalLookups) {
192         this.additionalLookups = additionalLookups;
193     }
194 }