com.ecyrd.jspwiki.attachment
Class Attachment

java.lang.Object
  extended by com.ecyrd.jspwiki.WikiPage
      extended by com.ecyrd.jspwiki.attachment.Attachment
All Implemented Interfaces:
Cloneable, Comparable

public class Attachment
extends WikiPage

Describes an attachment. Attachments are actually derivatives of a WikiPage, since they do actually have a WikiName as well.

Author:
Erik Bunn, Janne Jalkanen

Field Summary
static int COMPLETE
           
static int CREATED
           
static int UPLOADING
           
 
Fields inherited from class com.ecyrd.jspwiki.WikiPage
ALIAS, DESCRIPTION, REDIRECT, SIZE
 
Constructor Summary
Attachment(WikiEngine engine, String parentPage, String fileName)
           
 
Method Summary
 String getFileName()
           
 String getParentName()
           
 int getStatus()
           
 void setFileName(String name)
           
 void setStatus(int status)
           
 String toString()
           
 
Methods inherited from class com.ecyrd.jspwiki.WikiPage
clone, compareTo, getAcl, getAttribute, getAttributes, getAuthor, getLastModified, getName, getSize, getVersion, getWiki, hasMetadata, invalidateMetadata, removeAttribute, setAcl, setAttribute, setAuthor, setHasMetadata, setLastModified, setSize, setVersion
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATED

public static final int CREATED
See Also:
Constant Field Values

UPLOADING

public static final int UPLOADING
See Also:
Constant Field Values

COMPLETE

public static final int COMPLETE
See Also:
Constant Field Values
Constructor Detail

Attachment

public Attachment(WikiEngine engine,
                  String parentPage,
                  String fileName)
Method Detail

toString

public String toString()
Overrides:
toString in class WikiPage

getFileName

public String getFileName()

setFileName

public void setFileName(String name)

getStatus

public int getStatus()

setStatus

public void setStatus(int status)

getParentName

public String getParentName()