Class WebDavUtil


  • public class WebDavUtil
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String checkForWhiteSpace​(java.lang.String content)  
      boolean contentExists()
      Verify if content (file or folder) exists
      WebDavWrapper copyOrMove​(org.alfresco.utility.model.ContentModel destinationModel, boolean copy, boolean overwrite)  
      java.util.List<org.alfresco.utility.model.ContentModel> getChildren()
      Get a list of contents (file and folders) from current location
      protected java.lang.String getContent()
      Get the content from a file
      java.util.List<org.alfresco.utility.model.FileModel> getFiles()
      Get a list of files from current location
      java.util.List<org.alfresco.utility.model.FolderModel> getFolders()
      Get a list of folders from current location
      java.lang.String getLastResourceName()  
      protected int getStatus()  
      protected boolean isContentInList​(org.alfresco.utility.model.ContentModel contentModel, java.util.List<org.alfresco.utility.model.ContentModel> contents)  
      protected boolean isFileInList​(org.alfresco.utility.model.FileModel fileModel, java.util.List<org.alfresco.utility.model.FileModel> files)  
      protected boolean isFolderInList​(org.alfresco.utility.model.FolderModel folderModel, java.util.List<org.alfresco.utility.model.FolderModel> folders)  
      boolean isLocked()  
      java.io.File setNewFile​(org.alfresco.utility.model.FileModel fileModel)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • setNewFile

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

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

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

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

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

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

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

        public java.lang.String checkForWhiteSpace​(java.lang.String content)
      • getStatus

        protected int getStatus()
      • copyOrMove

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

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

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

        public java.lang.String getLastResourceName()
      • isLocked

        public boolean isLocked()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception