@@ -370,25 +370,23 @@ protected void getResources() throws XMLDBException {
370
370
371
371
final List <ResourceDescriptor > tableData = new ArrayList <ResourceDescriptor >(resources .length ); // A list of ResourceDescriptor for the GUI
372
372
373
- final String cols [] = new String [4 ];
374
373
int i = 0 ;
375
374
for (; i < childCollections .length ; i ++) {
376
375
//child = current.getChildCollection(childCollections[i]);
377
376
378
377
perm = mgtService .getSubCollectionPermissions (current , childCollections [i ]);
379
378
379
+ final Date created = mgtService .getSubCollectionCreationTime (current , childCollections [i ]);
380
+
380
381
if ("true" .equals (properties .getProperty (PERMISSIONS ))) {
381
- cols [0 ] = perm .toString ();
382
- cols [1 ] = getOwnerName (perm );
383
- cols [2 ] = getGroupName (perm );
384
- cols [3 ] = childCollections [i ];
385
- resources [i ] = 'd' + formatString (cols , colSizes );
382
+ resources [i ] = '-' + perm .toString () + '\t' + getOwnerName (perm )
383
+ + '\t' + getGroupName (perm ) + '\t'
384
+ + created .toString () + '\t'
385
+ + childCollections [i ];
386
386
} else {
387
387
resources [i ] = childCollections [i ];
388
388
}
389
389
390
- final Date created = mgtService .getSubCollectionCreationTime (current , childCollections [i ]);
391
-
392
390
if (options .startGUI ) {
393
391
try {
394
392
tableData .add (
@@ -413,17 +411,18 @@ protected void getResources() throws XMLDBException {
413
411
if (perm == null ) {
414
412
System .out .println ("null" ); //TODO this is not useful!
415
413
}
414
+
415
+ final Date lastModificationTime = ((EXistResource ) res ).getLastModificationTime ();
416
+
416
417
if ("true" .equals (properties .getProperty (PERMISSIONS ))) {
417
- resources [i ] = '-' + perm .toString () + '\t' + perm .getOwner ().getName ()
418
- + '\t' + perm .getGroup ().getName () + '\t'
418
+ resources [i ] = '-' + perm .toString () + '\t' + getOwnerName (perm )
419
+ + '\t' + getGroupName (perm ) + '\t'
420
+ + lastModificationTime .toString () + '\t'
419
421
+ childResources [j ];
420
422
} else {
421
423
resources [i ] = childResources [j ];
422
424
}
423
425
424
- final Date lastModificationTime = ((EXistResource ) res ).getLastModificationTime ();
425
- resources [i ] += "\t " + lastModificationTime ;
426
-
427
426
if (options .startGUI ) {
428
427
try {
429
428
tableData .add (
0 commit comments