org.silverpeas.attachment.webdav.impl
Class WebDavDocumentService
java.lang.Object
org.silverpeas.attachment.webdav.impl.WebDavDocumentService
- All Implemented Interfaces:
- WebdavService
@Named(value="webdavService")
public class WebDavDocumentService
- extends Object
- implements WebdavService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebDavDocumentService
public WebDavDocumentService()
updateDocumentContent
public void updateDocumentContent(SimpleDocument document)
- Description copied from interface:
WebdavService
- Update the document content language with the data from the associated webdav node.
- Specified by:
updateDocumentContent in interface WebdavService
- Parameters:
document - the document for which the content language will be updated with data from
webdav.
getContentEditionLanguage
public String getContentEditionLanguage(SimpleDocument document)
- Description copied from interface:
WebdavService
- Gets the current content edition language of the specified attachment.
If several webdav document exists (several content languages), then the one which has the
highest modified date is taken into account.
- Specified by:
getContentEditionLanguage in interface WebdavService
- Parameters:
document - the attachment.
- Returns:
- the content edition language if the specified attachment exists in the webdav
repository, null otherwise.
getContentEditionSize
public long getContentEditionSize(SimpleDocument document)
- Description copied from interface:
WebdavService
- Gets the current content edition size of the specified attachment.
If several webdav document exists (several content languages), then the one which has the
highest modified date is taken into account.
- Specified by:
getContentEditionSize in interface WebdavService
- Parameters:
document - the attachment.
- Returns:
- the content edition size if the specified attachment exists in the webdav
repository, -1 otherwise.
Copyright © 2016 Silverpeas. All Rights Reserved.