com.jamasoftware.contour.domain
Class Token
java.lang.Object
com.jamasoftware.contour.domain.DomainObjectBaseSupport
com.jamasoftware.contour.domain.DomainObjectSupport
com.jamasoftware.contour.domain.Token
- All Implemented Interfaces:
- DomainObject, DomainObjectBase, OrganizationAware, java.io.Serializable
@Entity
public class Token
- extends DomainObjectSupport
- Author:
- Dylan
- See Also:
- Serialized Form
|
Constructor Summary |
Token()
|
Token(java.lang.String tokenString)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TRIAL_TOKEN
public static final java.lang.Integer TRIAL_TOKEN
FORGOT_PASSWORD_TOKEN
public static final java.lang.Integer FORGOT_PASSWORD_TOKEN
INVITE_TOKEN
public static final java.lang.Integer INVITE_TOKEN
EMAIL_TOKEN
public static final java.lang.Integer EMAIL_TOKEN
Token
public Token()
Token
public Token(java.lang.String tokenString)
getAttribute
public java.lang.String getAttribute(java.lang.String key)
setAttribute
public void setAttribute(java.lang.String key,
java.lang.Object value)
- Sets an attribute on a token. toString() will be called on
the object to store it in the token's map.
- Parameters:
key - key of the attribute to setvalue - value of the attribute to set. Will be cast as a String
getTokenString
public java.lang.String getTokenString()
setTokenString
public void setTokenString(java.lang.String tokenString)
getExpirationDate
public java.util.Date getExpirationDate()
setExpirationDate
public void setExpirationDate(java.util.Date expirationDate)
getAttributes
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
setAttributes
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
getId
public java.lang.Integer getId()
setId
public void setId(java.lang.Integer id)
getOrganizationId
public java.lang.Integer getOrganizationId()
setOrganizationId
public void setOrganizationId(java.lang.Integer organizationId)
getTokenType
public java.lang.Integer getTokenType()
setTokenType
public void setTokenType(java.lang.Integer tokenType)
getXmlToString
public java.lang.String getXmlToString()
Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.