|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ecyrd.jspwiki.attachment.AttachmentManager
Provides facilities for handling attachments.
| Field Summary | |
static java.lang.String |
PROP_PROVIDER
|
| Constructor Summary | |
AttachmentManager(WikiEngine engine,
java.util.Properties props)
Creates a new AttachmentManager. |
|
| Method Summary | |
boolean |
attachmentsEnabled()
Returns true, if attachments are enabled and running. |
java.util.Collection |
getAllAttachments()
Returns a collection of Attachments, containing each and every attachment that is in this Wiki. |
Attachment |
getAttachmentInfo(java.lang.String name)
|
Attachment |
getAttachmentInfo(java.lang.String name,
int version)
|
Attachment |
getAttachmentInfo(WikiContext context,
java.lang.String attachmentname)
|
Attachment |
getAttachmentInfo(WikiContext context,
java.lang.String attachmentname,
int version)
Checks for a compound name, and attempts to get attachment information. |
java.io.InputStream |
getAttachmentStream(Attachment att)
|
WikiAttachmentProvider |
getCurrentProvider()
|
java.util.List |
getVersionHistory(java.lang.String attachmentName)
|
boolean |
hasAttachments(WikiPage wikipage)
Returns true, if the page has attachments. |
java.util.Collection |
listAttachments(WikiPage wikipage)
Returns the list of attachments associated with a given wiki page. |
void |
storeAttachment(Attachment att,
java.io.File source)
Stores an attachment that lives in the given file. |
void |
storeAttachment(Attachment att,
java.io.InputStream in)
Stores an attachment directly from a stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PROP_PROVIDER
| Constructor Detail |
public AttachmentManager(WikiEngine engine,
java.util.Properties props)
| Method Detail |
public boolean attachmentsEnabled()
public Attachment getAttachmentInfo(java.lang.String name)
throws ProviderException
ProviderException
public Attachment getAttachmentInfo(java.lang.String name,
int version)
throws ProviderException
ProviderException
public Attachment getAttachmentInfo(WikiContext context,
java.lang.String attachmentname)
throws ProviderException
ProviderException
public Attachment getAttachmentInfo(WikiContext context,
java.lang.String attachmentname,
int version)
throws ProviderException
ProviderException
public java.util.Collection listAttachments(WikiPage wikipage)
throws ProviderException
ProviderExceptionpublic boolean hasAttachments(WikiPage wikipage)
public java.io.InputStream getAttachmentStream(Attachment att)
throws java.io.IOException,
ProviderException
java.io.IOException
ProviderException
public void storeAttachment(Attachment att,
java.io.File source)
throws java.io.IOException,
ProviderException
java.io.IOException
ProviderException
public void storeAttachment(Attachment att,
java.io.InputStream in)
throws java.io.IOException,
ProviderException
java.io.IOException
ProviderException
public java.util.List getVersionHistory(java.lang.String attachmentName)
throws ProviderException
ProviderException
public java.util.Collection getAllAttachments()
throws ProviderException
ProviderExceptionpublic WikiAttachmentProvider getCurrentProvider()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||