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 java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable


Constructor Summary
Attachment()
           
 
Method Summary
 java.lang.String getAuthor()
           
 long getDate()
           
 java.lang.String getDownloadUrl()
           
 java.lang.String getFilename()
           
 int getFilesize()
           
 long getId()
           
 java.lang.String getMimeType()
           
 java.lang.String getVersion()
           
 boolean isImage()
           
 void setAttDate(long attDate)
           
 void setAuthor(java.lang.String author)
           
 void setDownloadUrl(java.lang.String downloadUrl)
           
 void setFilename(java.lang.String filename)
           
 void setFilesize(int size)
           
 void setId(long id)
           
 void setImage(boolean image)
           
 void setMimeType(java.lang.String mimeType)
           
 void setVersionName(java.lang.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 java.lang.String getFilename()
Returns:
the attachment name

getAuthor

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

getVersion

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

getDate

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

getMimeType

public java.lang.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(java.lang.String filename)

setAuthor

public void setAuthor(java.lang.String author)

setVersionName

public void setVersionName(java.lang.String versionName)

setAttDate

public void setAttDate(long attDate)

setMimeType

public void setMimeType(java.lang.String mimeType)

getDownloadUrl

public java.lang.String getDownloadUrl()

setDownloadUrl

public void setDownloadUrl(java.lang.String downloadUrl)


Copyright © 2004-2009 XWiki. All Rights Reserved.