com.xpn.xwiki.gwt.api.client
Class Attachment

java.lang.Object
  extended by com.xpn.xwiki.gwt.api.client.Attachment
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class Attachment
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable


Constructor Summary
Attachment()
           
 
Method Summary
 String getAuthor()
           
 long getDate()
           
 String getDownloadUrl()
           
 String getFilename()
           
 int getFilesize()
           
 long getId()
           
 String getMimeType()
           
 String getVersion()
           
 boolean isImage()
           
 void setAttDate(long attDate)
           
 void setAuthor(String author)
           
 void setDownloadUrl(String downloadUrl)
           
 void setFilename(String filename)
           
 void setFilesize(int size)
           
 void setId(long id)
           
 void setImage(boolean image)
           
 void setMimeType(String mimeType)
           
 void setVersionName(String versionName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment()
Method Detail

getId

public long getId()
Returns:
the document Id of the attachment

getFilesize

public int getFilesize()
Returns:
the Attachment size

getFilename

public String getFilename()
Returns:
the attachment name

getAuthor

public String getAuthor()
Returns:
the login of the person who attach the file

getVersion

public String getVersion()
Returns:
the last version number of the document

getDate

public long getDate()
Returns:
the date of the last uploaded version

getMimeType

public String getMimeType()
Returns:
the mimetype of the attachment

isImage

public boolean isImage()
Returns:
true if it's an image

setImage

public void setImage(boolean image)

setId

public void setId(long id)

setFilesize

public void setFilesize(int size)

setFilename

public void setFilename(String filename)

setAuthor

public void setAuthor(String author)

setVersionName

public void setVersionName(String versionName)

setAttDate

public void setAttDate(long attDate)

setMimeType

public void setMimeType(String mimeType)

getDownloadUrl

public String getDownloadUrl()

setDownloadUrl

public void setDownloadUrl(String downloadUrl)


Copyright © 2004-2010 XWiki. All Rights Reserved.