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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final org.exoplatform.services.log.Logprotected WebdavReadCommandHandlerstatic final Stringprotected org.exoplatform.services.jcr.impl.RepositoryServiceImplprotected org.exoplatform.portal.config.UserACLprotected WebdavWriteCommandHandler -
Constructor Summary
ConstructorsConstructorDescriptionJcrWebDavService(WebdavReadCommandHandler readCommandHandler, WebdavWriteCommandHandler writeCommandHandler, org.exoplatform.services.jcr.impl.RepositoryServiceImpl repositoryService, org.exoplatform.portal.config.UserACL userAcl) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcopy(String sourcePath, String targetPath, int depth, boolean overwrite, boolean removeDestination, org.exoplatform.documents.webdav.model.WebDavItemProperty webDavItemProperty, List<String> lockTokens, String username) voidcreateFolder(String webDavPath, String folderType, String contentNodeType, String mixinTypes, List<String> lockTokens, String username) voidorg.exoplatform.documents.webdav.model.WebDavFileDownloadvoidenableVersioning(String webDavPath, List<String> lockTokens, String username) org.exoplatform.documents.webdav.model.WebDavItemget(String webDavPath, String propRequestType, Set<QName> requestedPropertyNames, boolean requestPropertyNamesOnly, int depth, String baseUri, String username) longgetLastModifiedDate(String webDavPath, String version) protected javax.jcr.Sessionprotected javax.jcr.SessiongetSession(String username) List<org.exoplatform.documents.webdav.model.WebDavItem> booleanorg.exoplatform.documents.webdav.model.WebDavLockResponselock(String webDavPath, int depth, int lockTimeout, boolean bodyIsEmpty, List<String> lockTokens, String username) booleanmove(String sourcePath, String targetPath, boolean overwrite, List<String> lockTokens, String username) javax.jcr.SessionnewSession(String username, org.exoplatform.services.jcr.core.ManageableRepository repository, org.exoplatform.services.jcr.impl.WorkspaceContainer workspaceContainer) booleanorder(String webDavPath, List<org.exoplatform.documents.webdav.model.WebDavItemOrder> members, List<String> lockTokens, String username) voidsaveFile(String webDavPath, String fileType, String contentNodeType, String mediaType, String mixinTypes, InputStream inputStream, List<String> lockTokens, String username) 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) List<org.exoplatform.documents.webdav.model.WebDavItem> voiduncheckout(String webDavPath, List<String> lockTokens, String username) voidvoid
-
Field Details
-
REPOSITORY_NAME
- See Also:
-
DAS_VALUE
- See Also:
-
LOG
protected static final org.exoplatform.services.log.Log LOG -
readCommandHandler
-
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
- Specified by:
getNamespaceContextin interfaceorg.exoplatform.documents.webdav.service.DocumentWebDavService
-
getDaslValue
- Specified by:
getDaslValuein interfaceorg.exoplatform.documents.webdav.service.DocumentWebDavService
-
isFile
- Specified by:
isFilein interfaceorg.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:
downloadin interfaceorg.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:
getLastModifiedDatein interfaceorg.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:
getin interfaceorg.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:
searchin interfaceorg.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:
getVersionsin interfaceorg.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:
createFolderin interfaceorg.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:
saveFilein interfaceorg.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:
deletein interfaceorg.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:
movein interfaceorg.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:
copyin interfaceorg.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:
savePropertiesin interfaceorg.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:
enableVersioningin interfaceorg.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:
checkinin interfaceorg.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:
checkoutin interfaceorg.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:
uncheckoutin interfaceorg.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:
lockin interfaceorg.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:
unlockin interfaceorg.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:
orderin interfaceorg.exoplatform.documents.webdav.service.DocumentWebDavService- Throws:
org.exoplatform.documents.webdav.model.WebDavException
-
unlockTimedOutNodes
public void unlockTimedOutNodes() -
getSession
-
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
-