Class JcrWebDavService

java.lang.Object
org.exoplatform.documents.storage.jcr.webdav.JcrWebDavService
All Implemented Interfaces:
org.exoplatform.documents.webdav.service.DocumentWebDavService
Direct Known Subclasses:
CachedJcrWebDavService

public class JcrWebDavService extends Object implements org.exoplatform.documents.webdav.service.DocumentWebDavService
  • Field Details

    • REPOSITORY_NAME

      public static final String REPOSITORY_NAME
      See Also:
    • DAS_VALUE

      public static final String DAS_VALUE
      See Also:
    • LOG

      protected static final org.exoplatform.services.log.Log LOG
    • readCommandHandler

      protected WebdavReadCommandHandler readCommandHandler
    • writeCommandHandler

      protected WebdavWriteCommandHandler writeCommandHandler
    • repositoryService

      protected org.exoplatform.services.jcr.impl.RepositoryServiceImpl repositoryService
    • userAcl

      protected org.exoplatform.portal.config.UserACL userAcl
  • Constructor Details

    • JcrWebDavService

      public JcrWebDavService(WebdavReadCommandHandler readCommandHandler, WebdavWriteCommandHandler writeCommandHandler, org.exoplatform.services.jcr.impl.RepositoryServiceImpl repositoryService, org.exoplatform.portal.config.UserACL userAcl)
  • Method Details

    • getNamespaceContext

      public NamespaceContext getNamespaceContext()
      Specified by:
      getNamespaceContext in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
    • getDaslValue

      public String getDaslValue()
      Specified by:
      getDaslValue in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
    • isFile

      public boolean isFile(String webDavPath)
      Specified by:
      isFile in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
    • download

      public org.exoplatform.documents.webdav.model.WebDavFileDownload download(String webDavPath, String version, String baseUri, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      download in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • getLastModifiedDate

      public long getLastModifiedDate(String webDavPath, String version) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      getLastModifiedDate in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • get

      public org.exoplatform.documents.webdav.model.WebDavItem get(String webDavPath, String propRequestType, Set<QName> requestedPropertyNames, boolean requestPropertyNamesOnly, int depth, String baseUri, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      get in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • search

      public List<org.exoplatform.documents.webdav.model.WebDavItem> search(String webDavPath, String queryLanguage, String query, String baseUri, String username)
      Specified by:
      search in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
    • getVersions

      public List<org.exoplatform.documents.webdav.model.WebDavItem> getVersions(String webDavPath, Set<QName> requestedPropertyNames, String baseUri, String username)
      Specified by:
      getVersions in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
    • createFolder

      public void createFolder(String webDavPath, String folderType, String contentNodeType, String mixinTypes, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      createFolder in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • saveFile

      public void saveFile(String webDavPath, String fileType, String contentNodeType, String mediaType, String mixinTypes, InputStream inputStream, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      saveFile in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • delete

      public void delete(String webDavPath, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      delete in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • move

      public boolean move(String sourcePath, String targetPath, boolean overwrite, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      move in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • copy

      public void copy(String sourcePath, String targetPath, int depth, boolean overwrite, boolean removeDestination, org.exoplatform.documents.webdav.model.WebDavItemProperty webDavItemProperty, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      copy in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • saveProperties

      public Map<String,Collection<org.exoplatform.documents.webdav.model.WebDavItemProperty>> saveProperties(String webDavPath, List<org.exoplatform.documents.webdav.model.WebDavItemProperty> propertiesToSave, List<org.exoplatform.documents.webdav.model.WebDavItemProperty> propertiesToRemove, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      saveProperties in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • enableVersioning

      public void enableVersioning(String webDavPath, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      enableVersioning in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • checkin

      public void checkin(String webDavPath, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      checkin in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • checkout

      public void checkout(String webDavPath, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      checkout in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • uncheckout

      public void uncheckout(String webDavPath, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      uncheckout in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • lock

      public org.exoplatform.documents.webdav.model.WebDavLockResponse lock(String webDavPath, int depth, int lockTimeout, boolean bodyIsEmpty, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      lock in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • unlock

      public void unlock(String webDavPath, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      unlock in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • order

      public boolean order(String webDavPath, List<org.exoplatform.documents.webdav.model.WebDavItemOrder> members, List<String> lockTokens, String username) throws org.exoplatform.documents.webdav.model.WebDavException
      Specified by:
      order in interface org.exoplatform.documents.webdav.service.DocumentWebDavService
      Throws:
      org.exoplatform.documents.webdav.model.WebDavException
    • unlockTimedOutNodes

      public void unlockTimedOutNodes()
    • getSession

      protected javax.jcr.Session getSession(String username)
    • getSession

      protected javax.jcr.Session getSession()
    • newSession

      public javax.jcr.Session newSession(String username, org.exoplatform.services.jcr.core.ManageableRepository repository, org.exoplatform.services.jcr.impl.WorkspaceContainer workspaceContainer) throws javax.jcr.RepositoryException
      Throws:
      javax.jcr.RepositoryException