1 package org.kuali.ole.docstore.model.xmlpojo.ingest;
2
3 import java.util.ArrayList;
4 import java.util.Collection;
5 import java.util.LinkedHashMap;
6 import java.util.Map;
7
8
9
10
11
12
13
14
15 public class AdditionalAttributes {
16
17 public static final String DATE_ENTERED = "dateEntered";
18 public static final String CREATED_BY = "createdBy";
19 public static final String LAST_UPDATED = "lastUpdated";
20 public static final String UPDATED_BY = "updatedBy";
21 public static final String STATUS_UPDATED_BY = "statusUpdatedBy";
22 public static final String STATUS_UPDATED_ON = "statusUpdatedOn";
23 public static final String STATUS = "status";
24 public static final String FAST_ADD_FLAG = "fastAddFlag";
25 public static final String SUPRESS_FROM_PUBLIC = "supressFromPublic";
26 public static final String STAFFONLYFLAG = "staffOnlyFlag";
27 public static final String HOLDINGS_CREATED_BY = "holdingsCreatedBy";
28 public static final String HOLDINGS_UPDATED_BY = "holdingsUpdatedBy";
29 public static final String HOLDINGS_DATE_ENTERED = "holdingsDateEntered";
30 public static final String HOLDINGS_LAST_UPDATED = "holdingsLastUpdated";
31
32
33 private String dateEntered;
34 private String lastUpdated;
35 private String fastAddFlag;
36 private String supressFromPublic;
37 private String harvestable;
38 private String status;
39 private String createdBy;
40 private String updatedBy;
41 private String statusUpdatedOn;
42 private String statusUpdatedBy;
43 private String staffOnlyFlag;
44 private String holdingsCreatedBy;
45 private String holdingsUpdatedBy;
46 private String holdingsDateEntered;
47 private String holdingsLastUpdated;
48
49 public String getHoldingsCreatedBy() {
50 return holdingsCreatedBy;
51 }
52
53 public void setHoldingsCreatedBy(String holdingsCreatedBy) {
54 this.holdingsCreatedBy = holdingsCreatedBy;
55 }
56
57 public String getHoldingsUpdatedBy() {
58 return holdingsUpdatedBy;
59 }
60
61 public void setHoldingsUpdatedBy(String holdingsUpdatedBy) {
62 this.holdingsUpdatedBy = holdingsUpdatedBy;
63 }
64
65 public String getHoldingsDateEntered() {
66 return holdingsDateEntered;
67 }
68
69 public void setHoldingsDateEntered(String holdingsDateEntered) {
70 this.holdingsDateEntered = holdingsDateEntered;
71 }
72
73 public String getHoldingsLastUpdated() {
74 return holdingsLastUpdated;
75 }
76
77 public void setHoldingsLastUpdated(String holdingsLastUpdated) {
78 this.holdingsLastUpdated = holdingsLastUpdated;
79 }
80
81 public String getStaffOnlyFlag() {
82 return staffOnlyFlag;
83 }
84
85 public void setStaffOnlyFlag(String staffOnlyFlag) {
86 this.staffOnlyFlag = staffOnlyFlag;
87 }
88
89 public String getUpdatedBy() {
90 return updatedBy;
91 }
92
93 public void setUpdatedBy(String updatedBy) {
94 this.updatedBy = updatedBy;
95 }
96
97
98 public String getCreatedBy() {
99 return createdBy;
100 }
101
102 public void setCreatedBy(String createdBy) {
103 this.createdBy = createdBy;
104 }
105
106
107 private Map<String, String> attributeMap = new LinkedHashMap<String, String>();
108
109
110 public String getDateEntered() {
111 return dateEntered;
112 }
113
114 public void setDateEntered(String dateEntered) {
115 this.dateEntered = dateEntered;
116 }
117
118 public String getLastUpdated() {
119 return lastUpdated;
120 }
121
122 public void setLastUpdated(String lastUpdated) {
123 this.lastUpdated = lastUpdated;
124 }
125
126 public String getFastAddFlag() {
127 return fastAddFlag;
128 }
129
130 public void setFastAddFlag(String fastAddFlag) {
131 this.fastAddFlag = fastAddFlag;
132 }
133
134 public String getSupressFromPublic() {
135 return supressFromPublic;
136 }
137
138 public void setSupressFromPublic(String supressFromPublic) {
139 this.supressFromPublic = supressFromPublic;
140 }
141
142 public String getHarvestable() {
143 return harvestable;
144 }
145
146 public void setHarvestable(String harvestable) {
147 this.harvestable = harvestable;
148 }
149
150 public String getStatus() {
151 return status;
152 }
153
154 public void setStatus(String status) {
155 this.status = status;
156 }
157
158 public void setAttribute(String key, String value) {
159 attributeMap.put(key, value);
160 }
161
162 public String getAttribute(String value) {
163
164 return attributeMap.get(value);
165 }
166
167 public Collection<String> getAttributeNames() {
168 Collection<String> collection = null;
169 if (attributeMap != null && attributeMap.size() > 0) {
170 collection = attributeMap.keySet();
171 }
172
173 return collection;
174 }
175
176 public Map<String, String> getAttributeMap() {
177 return attributeMap;
178 }
179
180 public void setAttributeMap(Map<String, String> attributeMap) {
181 this.attributeMap = attributeMap;
182 }
183
184 public String getStatusUpdatedOn() {
185 return statusUpdatedOn;
186 }
187
188 public void setStatusUpdatedOn(String statusUpdatedOn) {
189 this.statusUpdatedOn = statusUpdatedOn;
190 }
191
192 public String getStatusUpdatedBy() {
193 return statusUpdatedBy;
194 }
195
196 public void setStatusUpdatedBy(String statusUpdatedBy) {
197 this.statusUpdatedBy = statusUpdatedBy;
198 }
199
200 public Collection<String> getAdditionalAttributeKeyCollection() {
201 Collection<String> keyCollection = new ArrayList<String>();
202 keyCollection.add("dateEntered");
203 keyCollection.add("lastUpdated");
204 keyCollection.add("fastAddFlag");
205 keyCollection.add("supressFromPublic");
206 keyCollection.add("harvestable");
207 keyCollection.add("status");
208 keyCollection.add("createdBy");
209 keyCollection.add("updatedBy");
210 keyCollection.add("statusUpdatedOn");
211 keyCollection.add("statusUpdatedBy");
212 keyCollection.add("staffOnlyFlag");
213 return keyCollection;
214 }
215 }