Author: areshetnyak
Date: 2010-12-21 06:01:15 -0500 (Tue, 21 Dec 2010)
New Revision: 3693
Added:
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/RestoreConfigurationException.java
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/BackupLogsFilter.java
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/RepositoryBackupLogsFilter.java
Log:
JCR-1502 : All changes for this issue was committed.
Added:
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/RestoreConfigurationException.java
===================================================================
---
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/RestoreConfigurationException.java
(rev 0)
+++
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/RestoreConfigurationException.java 2010-12-21
11:01:15 UTC (rev 3693)
@@ -0,0 +1,65 @@
+/*
+ * Copyright (C) 2003-2010 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not,
see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.services.jcr.ext.backup;
+
+/**
+ * Created by The eXo Platform SAS.
+ *
+ * <br/>Date: 2010
+ *
+ * @author <a href="mailto:alex.reshetnyak@exoplatform.com.ua">Alex
Reshetnyak</a>
+ * @version $Id: RestoreConfigurationException.java 111 2010-11-11 11:11:11Z rainf0x $
+ */
+public class RestoreConfigurationException
+ extends Exception
+{
+ /**
+ * RestoreConfigurationException constructor.
+ *
+ * @param message
+ * String, the exception message
+ */
+ public RestoreConfigurationException(String message)
+ {
+ super(message);
+ }
+
+ /**
+ * RestoreConfigurationException constructor.
+ *
+ * @param message
+ * String, the exception message
+ * @param e
+ * Throwable, the cause exception
+ */
+ public RestoreConfigurationException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+
+ /**
+ * RestoreConfigurationException constructor.
+ *
+ * @param e
+ * Throwable, the cause exception
+ */
+ public RestoreConfigurationException(Throwable e)
+ {
+ super(e.getMessage(), e);
+ }
+}
+
Added:
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/BackupLogsFilter.java
===================================================================
---
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/BackupLogsFilter.java
(rev 0)
+++
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/BackupLogsFilter.java 2010-12-21
11:01:15 UTC (rev 3693)
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2003-2010 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not,
see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.services.jcr.ext.backup.impl;
+
+import org.exoplatform.services.jcr.ext.backup.BackupChainLog;
+
+import java.io.File;
+import java.io.FileFilter;
+
+/**
+ * Created by The eXo Platform SAS.
+ *
+ * <br/>Date: 2010
+ *
+ * @author <a href="mailto:alex.reshetnyak@exoplatform.com.ua">Alex
Reshetnyak</a>
+ * @version $Id: BackupLogsFilter.java 111 2010-11-11 11:11:11Z rainf0x $
+ */
+public class BackupLogsFilter
+implements FileFilter
+{
+
+ public boolean accept(File pathname)
+ {
+ return pathname.getName().endsWith(".xml") &&
pathname.getName().startsWith(BackupChainLog.PREFIX);
+ }
+}
Added:
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/RepositoryBackupLogsFilter.java
===================================================================
---
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/RepositoryBackupLogsFilter.java
(rev 0)
+++
jcr/trunk/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/backup/impl/RepositoryBackupLogsFilter.java 2010-12-21
11:01:15 UTC (rev 3693)
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2003-2010 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not,
see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.services.jcr.ext.backup.impl;
+
+import org.exoplatform.services.jcr.ext.backup.RepositoryBackupChainLog;
+
+import java.io.File;
+import java.io.FileFilter;
+
+/**
+ * Created by The eXo Platform SAS.
+ *
+ * <br/>Date: 2010
+ *
+ * @author <a href="mailto:alex.reshetnyak@exoplatform.com.ua">Alex
Reshetnyak</a>
+ * @version $Id: RepositoryBackupLogsFilter.java 111 2010-11-11 11:11:11Z rainf0x $
+ */
+public class RepositoryBackupLogsFilter
+ implements FileFilter
+{
+
+ public boolean accept(File pathname)
+ {
+ return pathname.getName().endsWith(".xml") &&
pathname.getName().startsWith(RepositoryBackupChainLog.PREFIX);
+ }
+}