当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
AttachmentToken - JBOSS Portal 2.6 API 英文版文档
org.jboss.portlet.forums.helper
Class AttachmentToken
java.lang.Object
org.jboss.portlet.forums.helper.AttachmentToken
- public class AttachmentToken
- extends java.lang.Object
Token that stores attachment id - to secure download
- Version:
- $Revision: 5448 $
- Author:
- Boleslaw Dawidowicz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createDate
private java.util.Date createDate
expireDate
private java.util.Date expireDate
id
private int id
attachmentId
private java.lang.Integer attachmentId
AttachmentToken
public AttachmentToken(int id)
AttachmentToken
public AttachmentToken(int tokenId,
java.lang.Integer attachmentId,
java.util.Date expireDate)
getCreateDate
public java.util.Date getCreateDate()
setCreateDate
public void setCreateDate(java.util.Date createDate)
getExpirationDate
public java.util.Date getExpirationDate()
setExpirationDate
public void setExpirationDate(java.util.Date expireDate)
getId
public int getId()
setId
public void setId(int id)
getAttachmentId
public java.lang.Integer getAttachmentId()
setAttachmentId
public void setAttachmentId(java.lang.Integer attachmentId)
isValid
public boolean isValid()
- compares createDate and expirationDate
- Returns: