com.liferay.portlet.wiki.engines.jspwiki
Class LiferayAttachmentProvider

java.lang.Object
  extended by com.liferay.portlet.wiki.engines.jspwiki.LiferayAttachmentProvider
All Implemented Interfaces:
com.ecyrd.jspwiki.providers.WikiAttachmentProvider, com.ecyrd.jspwiki.WikiProvider

public class LiferayAttachmentProvider
extends java.lang.Object
implements com.ecyrd.jspwiki.providers.WikiAttachmentProvider

View Source

Author:
Jorge Ferrer

Field Summary
 
Fields inherited from interface com.ecyrd.jspwiki.WikiProvider
LATEST_VERSION
 
Constructor Summary
LiferayAttachmentProvider()
           
 
Method Summary
 void deleteAttachment(com.ecyrd.jspwiki.attachment.Attachment attachment)
           
 void deleteVersion(com.ecyrd.jspwiki.attachment.Attachment attachment)
           
 java.util.Collection<com.ecyrd.jspwiki.attachment.Attachment> findAttachments(com.ecyrd.jspwiki.QueryItem[] query)
           
 java.io.InputStream getAttachmentData(com.ecyrd.jspwiki.attachment.Attachment attachment)
           
 com.ecyrd.jspwiki.attachment.Attachment getAttachmentInfo(com.ecyrd.jspwiki.WikiPage page, java.lang.String name, int version)
           
 java.lang.String getProviderInfo()
           
 java.util.List<com.ecyrd.jspwiki.attachment.Attachment> getVersionHistory(com.ecyrd.jspwiki.attachment.Attachment attachment)
           
 void initialize(com.ecyrd.jspwiki.WikiEngine engine, java.util.Properties props)
           
 java.util.List<com.ecyrd.jspwiki.attachment.Attachment> listAllChanged(java.util.Date timestamp)
           
 java.util.Collection<com.ecyrd.jspwiki.attachment.Attachment> listAttachments(com.ecyrd.jspwiki.WikiPage page)
           
 void moveAttachmentsForPage(java.lang.String oldParent, java.lang.String newParent)
           
 void putAttachmentData(com.ecyrd.jspwiki.attachment.Attachment attachment, java.io.InputStream data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiferayAttachmentProvider

public LiferayAttachmentProvider()
Method Detail

deleteAttachment

public void deleteAttachment(com.ecyrd.jspwiki.attachment.Attachment attachment)
                      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 attachment)
                   throws com.ecyrd.jspwiki.providers.ProviderException
Specified by:
deleteVersion in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
Throws:
com.ecyrd.jspwiki.providers.ProviderException

findAttachments

public java.util.Collection<com.ecyrd.jspwiki.attachment.Attachment> findAttachments(com.ecyrd.jspwiki.QueryItem[] query)
Specified by:
findAttachments in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider

getAttachmentData

public java.io.InputStream getAttachmentData(com.ecyrd.jspwiki.attachment.Attachment attachment)
                                      throws java.io.IOException,
                                             com.ecyrd.jspwiki.providers.ProviderException
Specified by:
getAttachmentData in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
Throws:
java.io.IOException
com.ecyrd.jspwiki.providers.ProviderException

getAttachmentInfo

public com.ecyrd.jspwiki.attachment.Attachment getAttachmentInfo(com.ecyrd.jspwiki.WikiPage page,
                                                                 java.lang.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

getProviderInfo

public java.lang.String getProviderInfo()
Specified by:
getProviderInfo in interface com.ecyrd.jspwiki.WikiProvider

getVersionHistory

public java.util.List<com.ecyrd.jspwiki.attachment.Attachment> getVersionHistory(com.ecyrd.jspwiki.attachment.Attachment attachment)
Specified by:
getVersionHistory in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider

initialize

public void initialize(com.ecyrd.jspwiki.WikiEngine engine,
                       java.util.Properties props)
                throws java.io.IOException,
                       com.ecyrd.jspwiki.NoRequiredPropertyException
Specified by:
initialize in interface com.ecyrd.jspwiki.WikiProvider
Throws:
java.io.IOException
com.ecyrd.jspwiki.NoRequiredPropertyException

listAllChanged

public java.util.List<com.ecyrd.jspwiki.attachment.Attachment> listAllChanged(java.util.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 java.util.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(java.lang.String oldParent,
                                   java.lang.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 attachment,
                              java.io.InputStream data)
                       throws java.io.IOException,
                              com.ecyrd.jspwiki.providers.ProviderException
Specified by:
putAttachmentData in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
Throws:
java.io.IOException
com.ecyrd.jspwiki.providers.ProviderException