Author: tolusha
Date: 2010-03-25 10:32:04 -0400 (Thu, 25 Mar 2010)
New Revision: 2133
Modified:
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/server/HTTPBackupAgent.java
Log:
EXOJCR-549: fix bug
Modified:
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/server/HTTPBackupAgent.java
===================================================================
---
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/server/HTTPBackupAgent.java 2010-03-25
14:29:25 UTC (rev 2132)
+++
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/server/HTTPBackupAgent.java 2010-03-25
14:32:04 UTC (rev 2133)
@@ -855,8 +855,8 @@
log.error("Can not get information about current or completed reposioty
backups", e);
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(
- "Can not get information about current or completed repository
backups" + e.getMessage()).type(MediaType.TEXT_PLAIN)
- .cacheControl(noCache).build();
+ "Can not get information about current or completed repository
backups" + e.getMessage()).type(
+ MediaType.TEXT_PLAIN).cacheControl(noCache).build();
}
}
@@ -907,7 +907,7 @@
MediaType.TEXT_PLAIN).cacheControl(noCache).build();
}
}
-
+
/**
* Will be returned the detailed info of current or completed repository backup by
'id'.
*
@@ -987,7 +987,7 @@
noCache).build();
}
}
-
+
/**
* Will be returned the list short info of current backups .
*
@@ -1069,7 +1069,7 @@
List<ShortInfo> completedList = new ArrayList<ShortInfo>();
for (RepositoryBackupChainLog chainLog :
backupManager.getRepositoryBackupsLogs())
- if (backupManager.findBackup(chainLog.getBackupId()) == null)
+ if (backupManager.findRepositoryBackupId(chainLog.getBackupId()) == null)
completedList.add(new ShortInfo(ShortInfo.COMPLETED, chainLog));
ShortInfoList list = new ShortInfoList(completedList);