@@ -141,11 +141,6 @@ public class BagItAipWriter {
141
141
*/
142
142
private List <BagBitstream > bitstreams ;
143
143
144
- /**
145
- * Last modified time of DSpace object
146
- */
147
- private Long lastModifiedTime ;
148
-
149
144
/**
150
145
* Constructor for a {@link BagItAipWriter}. Takes a minimal set of information needed in order to write an AIP as a
151
146
* BagIt bag for dspace consumption.
@@ -161,7 +156,6 @@ public BagItAipWriter(final Context context, final File directory, final String
161
156
this .logo = null ;
162
157
this .policies = null ;
163
158
this .metadata = null ;
164
- this .lastModifiedTime = DEFAULT_MODIFIED_DATE ;
165
159
this .archFmt = checkNotNull (archFmt );
166
160
this .directory = checkNotNull (directory );
167
161
this .properties = checkNotNull (properties );
@@ -222,15 +216,6 @@ public BagItAipWriter withBitstreams(final List<BagBitstream> bitstreams) {
222
216
return this ;
223
217
}
224
218
225
- /**
226
- * @param lastModifiedTime the {@link Item} to use when writing AIP files
227
- * @return the {@link BagItAipWriter} used for creating the aip
228
- */
229
- public BagItAipWriter withLastModifiedTime (final long lastModifiedTime ) {
230
- this .lastModifiedTime = lastModifiedTime ;
231
- return this ;
232
- }
233
-
234
219
/**
235
220
* Create a serialized BagIt bag using the parameters the BagItAipWriter was instantiated with
236
221
*
@@ -372,7 +357,7 @@ public File packageAip() throws IOException, SQLException, AuthorizeException {
372
357
bag .write ();
373
358
374
359
final BagSerializer serializer = SerializationSupport .serializerFor (archFmt , profile );
375
- final Path serializedBag = serializer .serializeWithTimestamp (directory .toPath (), lastModifiedTime );
360
+ final Path serializedBag = serializer .serialize (directory .toPath ());
376
361
delete (directory );
377
362
378
363
return serializedBag .toFile ();
0 commit comments