当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
AttachmentToken - JBOSS Portal 2.4 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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: