com.ecyrd.jspwiki.providers
Class WikiVersioningAttachmentProvider
java.lang.Object
com.ecyrd.jspwiki.providers.WikiVersioningAttachmentProvider
- All Implemented Interfaces:
- com.ecyrd.jspwiki.providers.WikiAttachmentProvider, com.ecyrd.jspwiki.WikiProvider
public class WikiVersioningAttachmentProvider
- extends Object
- implements com.ecyrd.jspwiki.providers.WikiAttachmentProvider
Fields inherited from interface com.ecyrd.jspwiki.WikiProvider |
LATEST_VERSION |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PAGEDIR
public static final String PAGEDIR
- See Also:
- Constant Field Values
DOCUMENT_ID
public static final String DOCUMENT_ID
- See Also:
- Constant Field Values
VERSION_ID
public static final String VERSION_ID
- See Also:
- Constant Field Values
FILE_PATH
public static final String FILE_PATH
- See Also:
- Constant Field Values
WikiVersioningAttachmentProvider
public WikiVersioningAttachmentProvider()
deleteAttachment
public void deleteAttachment(com.ecyrd.jspwiki.attachment.Attachment att)
throws com.ecyrd.jspwiki.providers.ProviderException
- Specified by:
deleteAttachment
in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
deleteVersion
public void deleteVersion(com.ecyrd.jspwiki.attachment.Attachment att)
throws com.ecyrd.jspwiki.providers.ProviderException
- Specified by:
deleteVersion
in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
findAttachments
public Collection<com.ecyrd.jspwiki.attachment.Attachment> findAttachments(com.ecyrd.jspwiki.QueryItem[] query)
- Specified by:
findAttachments
in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
getAttachmentData
public InputStream getAttachmentData(com.ecyrd.jspwiki.attachment.Attachment att)
throws com.ecyrd.jspwiki.providers.ProviderException,
IOException
- Specified by:
getAttachmentData
in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
IOException
getAttachmentInfo
public com.ecyrd.jspwiki.attachment.Attachment getAttachmentInfo(com.ecyrd.jspwiki.WikiPage page,
String name,
int version)
throws com.ecyrd.jspwiki.providers.ProviderException
- Specified by:
getAttachmentInfo
in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
fillAttachment
protected void fillAttachment(com.ecyrd.jspwiki.attachment.Attachment att,
org.silverpeas.attachment.model.SimpleDocument currentVersion)
getDocumentVersion
protected org.silverpeas.attachment.model.SimpleDocument getDocumentVersion(org.silverpeas.attachment.model.SimpleDocumentPK docPk,
int versionNumber)
throws com.ecyrd.jspwiki.providers.ProviderException
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
getAllDocumentVersions
protected List<org.silverpeas.attachment.model.SimpleDocument> getAllDocumentVersions(org.silverpeas.attachment.model.SimpleDocumentPK docPk)
throws com.ecyrd.jspwiki.providers.ProviderException
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
getAttachedDocument
protected org.silverpeas.attachment.model.SimpleDocument getAttachedDocument(String pageName,
String fileName)
throws com.ecyrd.jspwiki.providers.ProviderException
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
getVersionHistory
public List<com.ecyrd.jspwiki.attachment.Attachment> getVersionHistory(com.ecyrd.jspwiki.attachment.Attachment att)
- Specified by:
getVersionHistory
in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
listAllChanged
public List<com.ecyrd.jspwiki.attachment.Attachment> listAllChanged(Date timestamp)
throws com.ecyrd.jspwiki.providers.ProviderException
- Specified by:
listAllChanged
in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
listAttachments
public Collection<com.ecyrd.jspwiki.attachment.Attachment> listAttachments(com.ecyrd.jspwiki.WikiPage page)
throws com.ecyrd.jspwiki.providers.ProviderException
- Specified by:
listAttachments
in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
moveAttachmentsForPage
public void moveAttachmentsForPage(String oldParent,
String newParent)
throws com.ecyrd.jspwiki.providers.ProviderException
- Specified by:
moveAttachmentsForPage
in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
putAttachmentData
public void putAttachmentData(com.ecyrd.jspwiki.attachment.Attachment att,
InputStream data)
throws com.ecyrd.jspwiki.providers.ProviderException,
IOException
- Specified by:
putAttachmentData
in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
- Throws:
com.ecyrd.jspwiki.providers.ProviderException
IOException
getProviderInfo
public String getProviderInfo()
- Specified by:
getProviderInfo
in interface com.ecyrd.jspwiki.WikiProvider
initialize
public void initialize(com.ecyrd.jspwiki.WikiEngine engine,
Properties properties)
throws com.ecyrd.jspwiki.NoRequiredPropertyException,
IOException
- Specified by:
initialize
in interface com.ecyrd.jspwiki.WikiProvider
- Throws:
com.ecyrd.jspwiki.NoRequiredPropertyException
IOException
Copyright © 2016 Silverpeas. All Rights Reserved.