@Entity(name="Token") public class TokenImpl extends DomainObjectSupport implements Token
EMAIL_TOKEN, FORGOT_PASSWORD_TOKEN, INVITE_TOKEN, TRIAL_TOKEN
MAP_DOMAIN_OBJECT_TO_ID_FUNCTION, ORGANIZATION_COLUMN_NAME
Constructor and Description |
---|
TokenImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String key) |
Map<String,String> |
getAttributes() |
Date |
getExpirationDate() |
Integer |
getId() |
Integer |
getOrganizationId() |
String |
getTokenString() |
Integer |
getTokenType() |
String |
getXmlToString() |
void |
setAttribute(String key,
Object value)
Sets an attribute on a token.
|
void |
setAttributes(Map<String,String> attributes) |
void |
setExpirationDate(Date expirationDate) |
void |
setId(Integer id) |
void |
setOrganizationId(Integer organizationId) |
void |
setTokenString(String tokenString) |
void |
setTokenType(Integer tokenType) |
getCreatedBy, getCreatedDate, getModifiedBy, getModifiedDate, setCreatedBy, setCreatedDate, setModifiedBy, setModifiedDate
equals, hashCode, isNewObject, obtainAclObjectIdentity
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getCreatedBy, getCreatedDate, getModifiedBy, getModifiedDate, isNewObject, obtainAclObjectIdentity, setCreatedBy, setCreatedDate, setModifiedBy, setModifiedDate
public String getAttribute(String key)
getAttribute
in interface Token
public void setAttribute(String key, Object value)
setAttribute
in interface Token
key
- key of the attribute to setvalue
- value of the attribute to set. Will be cast as a Stringpublic String getTokenString()
getTokenString
in interface Token
public void setTokenString(String tokenString)
setTokenString
in interface Token
public Date getExpirationDate()
getExpirationDate
in interface Token
public void setExpirationDate(Date expirationDate)
setExpirationDate
in interface Token
public Map<String,String> getAttributes()
getAttributes
in interface Token
public void setAttributes(Map<String,String> attributes)
setAttributes
in interface Token
public Integer getId()
getId
in interface DomainObjectBase
public void setId(Integer id)
setId
in interface DomainObjectBase
public Integer getOrganizationId()
getOrganizationId
in interface DomainObjectBase
getOrganizationId
in interface OrganizationAware
public void setOrganizationId(Integer organizationId)
setOrganizationId
in interface DomainObjectBase
public Integer getTokenType()
getTokenType
in interface Token
public void setTokenType(Integer tokenType)
setTokenType
in interface Token
public String getXmlToString()
getXmlToString
in interface DomainObject
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.