001package org.kuali.student.r1.common.dictionary.dto; 002 003import java.io.Serializable; 004import java.util.ArrayList; 005 006 007 008 009@Deprecated 010public class CommonLookupParam implements Serializable { 011 012 013 private static final long serialVersionUID = 1L; 014 private String key; 015 private CommonLookup childLookup; 016 private WriteAccess writeAccess; 017 private DataType dataType; 018 private boolean optional; 019 020 private ArrayList<String> defaultValueList; 021 private String defaultValueString; 022 023 private String name; 024 private String desc; 025 private boolean caseSensitive; 026 private Usage usage; 027 protected String fieldPath; 028 protected String fieldPathMessageId; 029 030 public enum Widget { 031 SUGGEST_BOX, DROPDOWN_LIST, RADIO_BUTTONS, CHECK_BOXES, TEXT_BOX, CALENDAR, PICKER 032 } 033 034 public enum WriteAccess { 035 ON_CREATE, /* must also be required */ 036 ALWAYS, NEVER, WHEN_NULL, REQUIRED 037 } 038 039 public enum Usage { 040 DEFAULT, ADVANCED, CUSTOM, ADVANCED_CUSTOM 041 } 042 private Widget widget; 043 044 public String getKey() { 045 return key; 046 } 047 048 public void setKey(String key) { 049 this.key = key; 050 } 051 052 public CommonLookup getChildLookup() { 053 return childLookup; 054 } 055 056 public void setChildLookup(CommonLookup childLookup) { 057 this.childLookup = childLookup; 058 } 059 060 public WriteAccess getWriteAccess() { 061 return writeAccess; 062 } 063 064 public void setWriteAccess(WriteAccess writeAccess) { 065 this.writeAccess = writeAccess; 066 } 067 068 public DataType getDataType() { 069 return dataType; 070 } 071 072 public void setDataType(DataType dataType) { 073 this.dataType = dataType; 074 } 075 076 public boolean isOptional() { 077 return optional; 078 } 079 080 public void setOptional(boolean optional) { 081 this.optional = optional; 082 } 083 084 public ArrayList<String> getDefaultValueList() { 085 return defaultValueList; 086 } 087 088 public void setDefaultValueList(ArrayList<String> defaultValueList) { 089 this.defaultValueList = defaultValueList; 090 } 091 092 public String getDefaultValueString() { 093 return defaultValueString; 094 } 095 096 public void setDefaultValueString(String defaultValueString) { 097 this.defaultValueString = defaultValueString; 098 } 099 100 public String getName() { 101 return name; 102 } 103 104 public void setName(String name) { 105 this.name = name; 106 } 107 108 public String getDesc() { 109 return desc; 110 } 111 112 public void setDesc(String desc) { 113 this.desc = desc; 114 } 115 116 public boolean isCaseSensitive() { 117 return caseSensitive; 118 } 119 120 public void setCaseSensitive(boolean caseSensitive) { 121 this.caseSensitive = caseSensitive; 122 } 123 124 public Usage getUsage() { 125 return usage; 126 } 127 128 public void setUsage(Usage usage) { 129 this.usage = usage; 130 } 131 132 public String getFieldPath() { 133 return fieldPath; 134 } 135 136 public void setFieldPath(String fieldPath) { 137 this.fieldPath = fieldPath; 138 } 139 140 public Widget getWidget() { 141 return widget; 142 } 143 144 public void setWidget(Widget widget) { 145 this.widget = widget; 146 } 147 148 public String getFieldPathMessageId() { 149 return fieldPathMessageId; 150 } 151 152 public void setFieldPathMessageId(String fieldPathMessageId) { 153 this.fieldPathMessageId = fieldPathMessageId; 154 } 155}