Examples of WorkspaceEntry


Examples of org.exoplatform.services.jcr.config.WorkspaceEntry

                  HTTPBackupAgent.Constants.OperationType.RESTORE +
                  "/" + repositoryName +
                  "/" + backupId;

   
    WorkspaceEntry wEntry = null;
    try {
      wEntry = getWorkspaceEntry(config, repositoryName, workspaceName);
    } catch (Throwable e) {
     throw new BackupExecuteException("Can not get WorkspaceEntry for workspace '" + workspaceName + "' from config.", e);
    }
   
    JsonGeneratorImpl generatorImpl = new JsonGeneratorImpl();
    JsonValue json;
   
    try {
      json = generatorImpl.createJsonObject(wEntry);
    } catch (JsonException e) {
      throw new BackupExecuteException("Can not get json from  : " + wEntry.getClass().toString(), e);
    }
       
    BackupAgentResponse response  = transport.executePOST(sURL, json.toString());
   
    if (response.getStatus() == Response.Status.OK.getStatusCode()) {
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.