001    /**
002     * Copyright 2010 The Kuali Foundation Licensed under the
003     * Educational Community License, Version 2.0 (the "License"); you may
004     * not use this file except in compliance with the License. You may
005     * obtain a copy of the License at
006     *
007     * http://www.osedu.org/licenses/ECL-2.0
008     *
009     * Unless required by applicable law or agreed to in writing,
010     * software distributed under the License is distributed on an "AS IS"
011     * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012     * or implied. See the License for the specific language governing
013     * permissions and limitations under the License.
014     */
015    
016    package org.kuali.student.common.assembly.dictionary.old;
017    
018    import java.util.List;
019    
020    import org.kuali.student.common.assembly.data.ConstraintMetadata;
021    import org.kuali.student.common.assembly.data.LookupMetadata;
022    
023    
024    /**
025     * This defines a field in the orchestration data object
026     * 
027     *   This is similar to the org.kuali.student.common.assembly.client.Metadata and
028     *   the org.kuali.student.core.dictionary.dto.Field and org.kuali.student.core.dictionary.dto.FieldDescriptor objects. 
029     * 
030     * @author Kuali Student Team
031     *
032     */
033    @Deprecated
034    public class DataFieldDescriptor {    
035        protected String name;
036        
037        protected String desc;
038        
039        protected String writeAccess;
040        
041        private boolean canUnmask = false;
042    
043        private boolean canView = true;
044        
045        private boolean canEdit = true;
046    
047        protected String permission;
048        
049        protected String dataType;
050        
051        protected Object defaultValue;
052        
053        protected String defaultValuePath;
054    
055        protected boolean onChangeRefreshMetadata;
056        
057        protected String lookupContextPath;
058        
059        protected List<ConstraintMetadata> constraints;
060        
061        protected LookupMetadata initialLookup;
062        
063        protected List<LookupMetadata> additionalLookups;   
064        
065        protected DataObjectStructure dataObjectStructure;
066            
067        public String getName() {
068            return name;
069        }
070    
071        public void setName(String name) {
072            this.name = name;
073        }
074    
075        public String getDesc() {
076            return desc;
077        }
078    
079        public void setDesc(String desc) {
080            this.desc = desc;
081        }
082    
083        public String getWriteAccess() {
084            return writeAccess;
085        }
086    
087        public String getPermission() {
088            return permission;
089        }
090    
091        public void setPermission(String permission) {
092            this.permission = permission;
093        }
094        
095        public void setWriteAccess(String writeAccess) {
096            this.writeAccess = writeAccess;
097        }
098    
099        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    }