Package org.apache.wiki.providers
Class WikiAttachmentAdapterProvider
- java.lang.Object
-
- org.apache.wiki.providers.WikiAttachmentAdapterProvider
-
- All Implemented Interfaces:
AttachmentProvider,WikiProvider
@Deprecated public class WikiAttachmentAdapterProvider extends java.lang.Object implements AttachmentProvider
Deprecated.adapted provider should useAttachmentProviderinstead.This provider ensures backward compatibility with attachment providers not using the public API. As providers should use the public API directly, the use of this class is considered deprecated.- See Also:
AttachmentProvider
-
-
Field Summary
-
Fields inherited from interface org.apache.wiki.api.providers.AttachmentProvider
PROP_STORAGEDIR
-
Fields inherited from interface org.apache.wiki.api.providers.WikiProvider
LATEST_VERSION
-
-
Constructor Summary
Constructors Constructor Description WikiAttachmentAdapterProvider()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddeleteAttachment(Attachment att)Deprecated.voiddeleteVersion(Attachment att)Deprecated.java.util.Collection<Attachment>findAttachments(QueryItem[] query)Deprecated.java.io.InputStreamgetAttachmentData(Attachment att)Deprecated.AttachmentgetAttachmentInfo(Page page, java.lang.String name, int version)Deprecated.java.lang.StringgetProviderInfo()Deprecated.java.util.List<Attachment>getVersionHistory(Attachment att)Deprecated.voidinitialize(Engine engine, java.util.Properties properties)Deprecated.java.util.List<Attachment>listAllChanged(java.util.Date timestamp)Deprecated.java.util.List<Attachment>listAttachments(Page page)Deprecated.voidmoveAttachmentsForPage(java.lang.String oldParent, java.lang.String newParent)Deprecated.voidputAttachmentData(Attachment att, java.io.InputStream data)Deprecated.
-
-
-
Constructor Detail
-
WikiAttachmentAdapterProvider
public WikiAttachmentAdapterProvider()
Deprecated.
-
-
Method Detail
-
initialize
public void initialize(Engine engine, java.util.Properties properties) throws NoRequiredPropertyException, java.io.IOException
Deprecated.- Specified by:
initializein interfaceWikiProvider- Throws:
NoRequiredPropertyExceptionjava.io.IOException
-
getProviderInfo
public java.lang.String getProviderInfo()
Deprecated.- Specified by:
getProviderInfoin interfaceWikiProvider
-
putAttachmentData
public void putAttachmentData(Attachment att, java.io.InputStream data) throws ProviderException, java.io.IOException
Deprecated.- Specified by:
putAttachmentDatain interfaceAttachmentProvider- Throws:
ProviderExceptionjava.io.IOException
-
getAttachmentData
public java.io.InputStream getAttachmentData(Attachment att) throws ProviderException, java.io.IOException
Deprecated.- Specified by:
getAttachmentDatain interfaceAttachmentProvider- Throws:
ProviderExceptionjava.io.IOException
-
listAttachments
public java.util.List<Attachment> listAttachments(Page page) throws ProviderException
Deprecated.- Specified by:
listAttachmentsin interfaceAttachmentProvider- Throws:
ProviderException
-
findAttachments
public java.util.Collection<Attachment> findAttachments(QueryItem[] query)
Deprecated.- Specified by:
findAttachmentsin interfaceAttachmentProvider
-
listAllChanged
public java.util.List<Attachment> listAllChanged(java.util.Date timestamp) throws ProviderException
Deprecated.- Specified by:
listAllChangedin interfaceAttachmentProvider- Throws:
ProviderException
-
getAttachmentInfo
public Attachment getAttachmentInfo(Page page, java.lang.String name, int version) throws ProviderException
Deprecated.- Specified by:
getAttachmentInfoin interfaceAttachmentProvider- Throws:
ProviderException
-
getVersionHistory
public java.util.List<Attachment> getVersionHistory(Attachment att)
Deprecated.- Specified by:
getVersionHistoryin interfaceAttachmentProvider
-
deleteVersion
public void deleteVersion(Attachment att) throws ProviderException
Deprecated.- Specified by:
deleteVersionin interfaceAttachmentProvider- Throws:
ProviderException
-
deleteAttachment
public void deleteAttachment(Attachment att) throws ProviderException
Deprecated.- Specified by:
deleteAttachmentin interfaceAttachmentProvider- Throws:
ProviderException
-
moveAttachmentsForPage
public void moveAttachmentsForPage(java.lang.String oldParent, java.lang.String newParent) throws ProviderException
Deprecated.- Specified by:
moveAttachmentsForPagein interfaceAttachmentProvider- Throws:
ProviderException
-
-