Class WebDavUtil

java.lang.Object
org.alfresco.webdav.dsl.WebDavUtil

public class WebDavUtil extends Object
  • Constructor Details

  • Method Details

    • setNewFile

      public File setNewFile(org.alfresco.utility.model.FileModel fileModel) throws Exception
      Throws:
      Exception
    • isFolderInList

      protected boolean isFolderInList(org.alfresco.utility.model.FolderModel folderModel, List<org.alfresco.utility.model.FolderModel> folders)
    • isFileInList

      protected boolean isFileInList(org.alfresco.utility.model.FileModel fileModel, List<org.alfresco.utility.model.FileModel> files)
    • isContentInList

      protected boolean isContentInList(org.alfresco.utility.model.ContentModel contentModel, List<org.alfresco.utility.model.ContentModel> contents)
    • getFolders

      public List<org.alfresco.utility.model.FolderModel> getFolders() throws Exception
      Get a list of folders from current location
      Returns:
      List
      Throws:
      Exception
    • getFiles

      public List<org.alfresco.utility.model.FileModel> getFiles() throws Exception
      Get a list of files from current location
      Returns:
      List
      Throws:
      Exception
    • getChildren

      public List<org.alfresco.utility.model.ContentModel> getChildren() throws Exception
      Get a list of contents (file and folders) from current location
      Returns:
      List
      Throws:
      Exception
    • checkForWhiteSpace

      public String checkForWhiteSpace(String content)
    • getStatus

      protected int getStatus()
    • copyOrMove

      public WebDavWrapper copyOrMove(org.alfresco.utility.model.ContentModel destinationModel, boolean copy, boolean overwrite) throws Exception
      Throws:
      Exception
    • getContent

      protected String getContent() throws Exception
      Get the content from a file
      Returns:
      Throws:
      Exception
    • contentExists

      public boolean contentExists() throws Exception
      Verify if content (file or folder) exists
      Returns:
      Throws:
      Exception
    • getLastResourceName

      public String getLastResourceName()
    • isLocked

      public boolean isLocked() throws Exception
      Throws:
      Exception