com.jamasoftware.contour.domain
Class Token

java.lang.Object
  extended by com.jamasoftware.contour.domain.DomainObjectBaseSupport
      extended by com.jamasoftware.contour.domain.DomainObjectSupport
          extended by 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

Field Summary
static java.lang.Integer EMAIL_TOKEN
           
static java.lang.Integer FORGOT_PASSWORD_TOKEN
           
static java.lang.Integer INVITE_TOKEN
           
static java.lang.Integer TRIAL_TOKEN
           
 
Fields inherited from interface com.jamasoftware.contour.domain.DomainObjectBase
ORGANIZATION_COLUMN_NAME
 
Constructor Summary
Token()
           
Token(java.lang.String tokenString)
           
 
Method Summary
 java.lang.String getAttribute(java.lang.String key)
           
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
           
 java.util.Date getExpirationDate()
           
 java.lang.Integer getId()
           
 java.lang.Integer getOrganizationId()
           
 java.lang.String getTokenString()
           
 java.lang.Integer getTokenType()
           
 java.lang.String getXmlToString()
           
 void setAttribute(java.lang.String key, java.lang.Object value)
          Sets an attribute on a token.
 void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
           
 void setExpirationDate(java.util.Date expirationDate)
           
 void setId(java.lang.Integer id)
           
 void setOrganizationId(java.lang.Integer organizationId)
           
 void setTokenString(java.lang.String tokenString)
           
 void setTokenType(java.lang.Integer tokenType)
           
 
Methods inherited from class com.jamasoftware.contour.domain.DomainObjectSupport
getCreatedBy, getCreatedDate, getModifiedBy, getModifiedDate, setCreatedBy, setCreatedDate, setModifiedBy, setModifiedDate
 
Methods inherited from class com.jamasoftware.contour.domain.DomainObjectBaseSupport
equals, hashCode, isNewObject, obtainAclObjectIdentity
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Token

public Token()

Token

public Token(java.lang.String tokenString)
Method Detail

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 set
value - 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.