comparison software/mpdl-services-new/mpiwg-mpdl-cms/src/de/mpg/mpiwg/berlin/mpdl/cms/document/MetadataRecord.java @ 25:e9fe3186670c default tip

letzter Stand eingecheckt
author Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de>
date Tue, 21 May 2013 10:19:32 +0200
parents
children
comparison
equal deleted inserted replaced
23:e845310098ba 25:e9fe3186670c
1 package de.mpg.mpiwg.berlin.mpdl.cms.document;
2
3 import java.util.Calendar;
4 import java.util.Date;
5
6 public class MetadataRecord {
7 private String docId; // local id: document identifier in index system, e.g. /echo/la/Benedetti_1585.xml
8 private String identifier; // local id: identifier field in documents metadata: e.g. /echo:echo/echo:metadata/dcterms:identifier
9 private String uri; // global id: document URI (uniform resource identifier), e.g. http://de.wikipedia.org/wiki/Ramones
10 private String language;
11 private String creator; // author
12 private String title;
13 private String description; // abstract etc.
14 private String subject; // subject keywords from the title or description or content or subject lists (thesaurus etc.)
15 private String publisher; // publisher with place: e.g. Springer, New York
16 private String type; // mime type: e.g. text/xml // TODO ist eigentlich das Feld "format" --> zus. instance variable "format" definieren
17 private String rights; // e.g. open access
18 private Date date; // creation date, modification date, etc.
19 private String license; // e.g. http://echo.mpiwg-berlin.mpg.de/policy/oa_basics/declaration
20 private String accessRights; // e.g. free
21 private String collectionNames; // e.g. "collection1 collection7"
22 private String schemaName; // e.g. TEI, echo, html, or archimedes
23 private Date lastModified;
24 private int pageCount;
25 private String echoId; // document identifier in echo system: directory name, e.g. /permanent/library/163127KK
26 private String echoPageImageDir; // document page image directory in echo system: directory name, e.g. /permanent/library/163127KK/pageimg
27 private String echoFiguresDir; // document figures directory in echo system: directory name, e.g. /permanent/library/163127KK/figures
28 private String mpiwgDocId; // mpiwg docId in echo system: e.g. MPIWG:U7FWNX06
29
30 public String getDocId() {
31 return docId;
32 }
33
34 public void setDocId(String docId) {
35 this.docId = docId;
36 }
37
38 public String getUri() {
39 return uri;
40 }
41
42 public void setUri(String uri) {
43 this.uri = uri;
44 }
45
46 public String getRights() {
47 return rights;
48 }
49
50 public void setRights(String rights) {
51 this.rights = rights;
52 }
53
54 public int getPageCount() {
55 return pageCount;
56 }
57
58 public void setPageCount(int pageCount) {
59 this.pageCount = pageCount;
60 }
61
62 public String getLicense() {
63 return license;
64 }
65
66 public void setLicense(String license) {
67 this.license = license;
68 }
69
70 public String getAccessRights() {
71 return accessRights;
72 }
73
74 public void setAccessRights(String accessRights) {
75 this.accessRights = accessRights;
76 }
77
78 public String getCreator() {
79 return creator;
80 }
81
82 public void setCreator(String creator) {
83 this.creator = creator;
84 }
85
86 public String getTitle() {
87 return title;
88 }
89
90 public void setTitle(String title) {
91 this.title = title;
92 }
93
94 public Date getDate() {
95 return date;
96 }
97
98 public void setDate(Date date) {
99 this.date = date;
100 }
101
102 public String getYear() {
103 String year = null;
104 if (date != null) {
105 Calendar cal = Calendar.getInstance();
106 cal.setTime(date);
107 int iYear = cal.get(Calendar.YEAR);
108 year = "" + iYear;
109 }
110 return year;
111 }
112
113 public String getDescription() {
114 return description;
115 }
116
117 public void setDescription(String description) {
118 this.description = description;
119 }
120
121 public String getSubject() {
122 return subject;
123 }
124
125 public void setSubject(String subject) {
126 this.subject = subject;
127 }
128
129 public String getCollectionNames() {
130 return collectionNames;
131 }
132
133 public void setCollectionNames(String collectionNames) {
134 this.collectionNames = collectionNames;
135 }
136
137 public String getIdentifier() {
138 return identifier;
139 }
140
141 public void setIdentifier(String identifier) {
142 this.identifier = identifier;
143 }
144
145 public String getLanguage() {
146 return language;
147 }
148
149 public void setLanguage(String language) {
150 this.language = language;
151 }
152
153 public String getPublisher() {
154 return publisher;
155 }
156
157 public void setPublisher(String publisher) {
158 this.publisher = publisher;
159 }
160
161 public String getType() {
162 return type;
163 }
164
165 public void setType(String type) {
166 this.type = type;
167 }
168
169 public String getSchemaName() {
170 return schemaName;
171 }
172
173 public void setSchemaName(String schemaName) {
174 this.schemaName = schemaName;
175 }
176
177 public Date getLastModified() {
178 return lastModified;
179 }
180
181 public void setLastModified(Date lastModified) {
182 this.lastModified = lastModified;
183 }
184
185 public String getEchoId() {
186 return echoId;
187 }
188
189 public void setEchoId(String echoId) {
190 this.echoId = echoId;
191 }
192
193 public String getEchoPageImageDir() {
194 return echoPageImageDir;
195 }
196
197 public void setEchoPageImageDir(String echoPageImageDir) {
198 this.echoPageImageDir = echoPageImageDir;
199 }
200
201 public String getEchoFiguresDir() {
202 return echoFiguresDir;
203 }
204
205 public void setEchoFiguresDir(String echoFiguresDir) {
206 this.echoFiguresDir = echoFiguresDir;
207 }
208
209 public String getMpiwgDocId() {
210 return mpiwgDocId;
211 }
212
213 public void setMpiwgDocId(String mpiwgDocId) {
214 this.mpiwgDocId = mpiwgDocId;
215 }
216
217 }