com.xpn.xwiki.gwt.api.client
Class Attachment
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Attachment
public Attachment()
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-2008 XWiki. All Rights Reserved.