Examples of ShortInfoList


Examples of org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfoList

               new ShortInfo(ShortInfo.RESTORE, job.getBackupChainLog(), job.getStartTime(), job.getEndTime(), job
                  .getStateRestore(), job.getRepositoryName(), job.getWorkspaceName());
            list.add(info);
         }

         return Response.ok(new ShortInfoList(list)).cacheControl(noCache).build();

      }
      catch (Throwable e)
      {
         log.error("Can not get information about current restores.", e);
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfoList

               new ShortInfo(ShortInfo.RESTORE, job.getRepositoryBackupChainLog(), job.getStartTime(),
                  job.getEndTime(), job.getStateRestore(), job.getRepositoryName());
            list.add(info);
         }

         return Response.ok(new ShortInfoList(list)).cacheControl(noCache).build();

      }
      catch (Throwable e)
      {
         log.error("Can not get information about current repository restores.", e);
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfoList

      ContainerResponse cres = new ContainerResponse(responseWriter);
      handler.handleRequest(creq, cres);

      assertEquals(200, cres.getStatus());

      ShortInfoList infoList = (ShortInfoList) getObject(ShortInfoList.class, responseWriter.getBody());
      List<ShortInfo> list = new ArrayList<ShortInfo>(infoList.getBackups());

      ShortInfo info = getBackupInfo(list);
      assertNotNull(info);

      assertNotNull(info);
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfoList

      ContainerResponse cres = new ContainerResponse(responseWriter);
      handler.handleRequest(creq, cres);

      assertEquals(200, cres.getStatus());

      ShortInfoList infoList = (ShortInfoList) getObject(ShortInfoList.class, responseWriter.getBody());
      List<ShortInfo> list = new ArrayList<ShortInfo>(infoList.getBackups());

      ShortInfo info = getBackupInfo(list);
      assertNotNull(info);

      assertEquals(BackupManager.FULL_AND_INCREMENTAL, info.getBackupType().intValue());
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfoList

      ContainerResponse cres = new ContainerResponse(responseWriter);
      handler.handleRequest(creq, cres);

      assertEquals(200, cres.getStatus());

      ShortInfoList infoList = (ShortInfoList) getObject(ShortInfoList.class, responseWriter.getBody());
      List<ShortInfo> list = new ArrayList<ShortInfo>(infoList.getBackups());

      ShortInfo info = getBackupInfo(list);
      assertNotNull(info);

      assertEquals(BackupManager.FULL_AND_INCREMENTAL, info.getBackupType().intValue());
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfoList

      ContainerResponse cres = new ContainerResponse(responseWriter);
      handler.handleRequest(creq, cres);

      assertEquals(200, cres.getStatus());

      ShortInfoList infoList = (ShortInfoList) getObject(ShortInfoList.class, responseWriter.getBody());
      List<ShortInfo> list = new ArrayList<ShortInfo>(infoList.getBackups());

      ShortInfo info = getBackupInfo(list);
      assertNotNull(info);

      assertEquals(BackupManager.FULL_AND_INCREMENTAL, info.getBackupType().intValue());
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfoList

      ContainerResponse cres = new ContainerResponse(responseWriter);
      handler.handleRequest(creq, cres);

      assertEquals(200, cres.getStatus());

      ShortInfoList infoList = (ShortInfoList) getObject(ShortInfoList.class, responseWriter.getBody());
      List<ShortInfo> list = new ArrayList<ShortInfo>(infoList.getBackups());

      ShortInfo info = getBackupInfo(list);
      assertNotNull(info);

      assertEquals(BackupManager.FULL_AND_INCREMENTAL, info.getBackupType().intValue());
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfoList

      ContainerResponse cres = new ContainerResponse(responseWriter);
      handler.handleRequest(creq, cres);

      assertEquals(200, cres.getStatus());

      ShortInfoList infoList = (ShortInfoList) getObject(ShortInfoList.class, responseWriter.getBody());
      List<ShortInfo> list = new ArrayList<ShortInfo>(infoList.getBackups());

      ShortInfo info = getBackupInfo(list);
      assertNotNull(info);

      assertEquals(BackupManager.FULL_AND_INCREMENTAL, info.getBackupType().intValue());
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfoList

         ContainerResponse cres = new ContainerResponse(responseWriter);
         handler.handleRequest(creq, cres);

         assertEquals(200, cres.getStatus());

         ShortInfoList infoList = (ShortInfoList) getObject(ShortInfoList.class, responseWriter.getBody());
         List<ShortInfo> list = new ArrayList<ShortInfo>(infoList.getBackups());

         ShortInfo info = getBackupInfo(list);
         assertNotNull(info);

         assertEquals(info.getRepositoryName(), "db6");
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.server.bean.response.ShortInfoList

         ContainerResponse cres = new ContainerResponse(responseWriter);
         handler.handleRequest(creq, cres);

         assertEquals(200, cres.getStatus());

         ShortInfoList infoList = (ShortInfoList) getObject(ShortInfoList.class, responseWriter.getBody());
         List<ShortInfo> list = new ArrayList<ShortInfo>(infoList.getBackups());

         ShortInfo info = getBackupInfo(list);
         assertNotNull(info);

         assertEquals(info.getRepositoryName(), "db6");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.