com.rshtech.jspwiki
Class LocalAttachmentProvider

java.lang.Object
  extended by com.ecyrd.jspwiki.providers.BasicAttachmentProvider
      extended by com.rshtech.jspwiki.LocalAttachmentProvider
All Implemented Interfaces:
com.ecyrd.jspwiki.providers.WikiAttachmentProvider, com.ecyrd.jspwiki.WikiProvider

public class LocalAttachmentProvider
extends com.ecyrd.jspwiki.providers.BasicAttachmentProvider

TODO Class summary sentence. Class documentation.

Version:
$Revision: 3175 $
Author:
$Author: kostya $

Nested Class Summary
 
Nested classes/interfaces inherited from class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
com.ecyrd.jspwiki.providers.BasicAttachmentProvider.AttachmentFilter, com.ecyrd.jspwiki.providers.BasicAttachmentProvider.AttachmentVersionFilter
 
Field Summary
 
Fields inherited from class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
ATTDIR_EXTENSION, DIR_EXTENSION, PROP_STORAGEDIR, PROPERTY_FILE
 
Fields inherited from interface com.ecyrd.jspwiki.WikiProvider
LATEST_VERSION
 
Constructor Summary
LocalAttachmentProvider()
           
 
Method Summary
 void deleteAttachment(com.ecyrd.jspwiki.attachment.Attachment att)
           
 void deleteVersion(com.ecyrd.jspwiki.attachment.Attachment att)
           
 java.util.Collection findAttachments(com.ecyrd.jspwiki.QueryItem[] query)
           
 java.io.InputStream getAttachmentData(com.ecyrd.jspwiki.attachment.Attachment att)
           
 com.ecyrd.jspwiki.attachment.Attachment getAttachmentInfo(com.ecyrd.jspwiki.WikiPage page, java.lang.String name, int version)
           
 java.lang.String getProviderInfo()
           
 java.util.List getVersionHistory(com.ecyrd.jspwiki.attachment.Attachment att)
           
 void initialize(com.ecyrd.jspwiki.WikiEngine engine, java.util.Properties properties)
           
 java.util.List listAllChanged(java.util.Date timestamp)
           
 java.util.Collection listAttachments(com.ecyrd.jspwiki.WikiPage page)
           
 void moveAttachmentsForPage(java.lang.String oldParent, java.lang.String newParent)
           
 void putAttachmentData(com.ecyrd.jspwiki.attachment.Attachment att, java.io.InputStream data)
           
 
Methods inherited from class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
getFileExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalAttachmentProvider

public LocalAttachmentProvider()
Method Detail

initialize

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

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
Overrides:
deleteAttachment in class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
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
Overrides:
deleteVersion in class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
Throws:
com.ecyrd.jspwiki.providers.ProviderException

findAttachments

public java.util.Collection findAttachments(com.ecyrd.jspwiki.QueryItem[] query)
Specified by:
findAttachments in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
Overrides:
findAttachments in class com.ecyrd.jspwiki.providers.BasicAttachmentProvider

getAttachmentData

public java.io.InputStream getAttachmentData(com.ecyrd.jspwiki.attachment.Attachment att)
                                      throws java.io.IOException,
                                             com.ecyrd.jspwiki.providers.ProviderException
Specified by:
getAttachmentData in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
Overrides:
getAttachmentData in class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
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
Overrides:
getAttachmentInfo in class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
Throws:
com.ecyrd.jspwiki.providers.ProviderException

getProviderInfo

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

getVersionHistory

public java.util.List getVersionHistory(com.ecyrd.jspwiki.attachment.Attachment att)
Specified by:
getVersionHistory in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
Overrides:
getVersionHistory in class com.ecyrd.jspwiki.providers.BasicAttachmentProvider

listAllChanged

public java.util.List listAllChanged(java.util.Date timestamp)
                              throws com.ecyrd.jspwiki.providers.ProviderException
Specified by:
listAllChanged in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
Overrides:
listAllChanged in class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
Throws:
com.ecyrd.jspwiki.providers.ProviderException

listAttachments

public java.util.Collection listAttachments(com.ecyrd.jspwiki.WikiPage page)
                                     throws com.ecyrd.jspwiki.providers.ProviderException
Specified by:
listAttachments in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
Overrides:
listAttachments in class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
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
Overrides:
moveAttachmentsForPage in class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
Throws:
com.ecyrd.jspwiki.providers.ProviderException

putAttachmentData

public void putAttachmentData(com.ecyrd.jspwiki.attachment.Attachment att,
                              java.io.InputStream data)
                       throws com.ecyrd.jspwiki.providers.ProviderException,
                              java.io.IOException
Specified by:
putAttachmentData in interface com.ecyrd.jspwiki.providers.WikiAttachmentProvider
Overrides:
putAttachmentData in class com.ecyrd.jspwiki.providers.BasicAttachmentProvider
Throws:
com.ecyrd.jspwiki.providers.ProviderException
java.io.IOException