Example #1
0
 public void deleteDocument() throws Exception {
   IDocumentManagerWS documentS =
       ScriptingTools.createDocumentService(
           properties.getURL(), properties.getLoginForUser1(), properties.getPassword());
   for (String oldFolder : documentS.getFolders(properties.getWorkspace())) {
     if (oldFolder.equals(FOLDER_NAME)) {
       documentS.deleteFolder(properties.getWorkspace() + "/" + FOLDER_NAME);
     }
   }
 }
Example #2
0
 public void createDocument() throws Exception {
   IDocumentManagerWS documentS =
       ScriptingTools.createDocumentService(
           properties.getURL(), properties.getLoginForUser1(), properties.getPassword());
   assertNotNull(documentS);
   documentS.createFolder(properties.getWorkspace(), FOLDER_NAME);
   documentS.createDocumentMaster(
       properties.getWorkspace() + "/" + FOLDER_NAME,
       DOCUMENT_ID,
       "",
       null,
       null,
       null,
       null,
       null);
   documentS.deleteFolder(properties.getWorkspace() + "/" + FOLDER_NAME);
 }