|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.AbstractEntity
org.openwms.core.domain.system.usermanagement.Email
public class Email
An Email represents the email address of an User
.
User
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.openwms.core.domain.AbstractEntity |
---|
AbstractEntity.AbstractEntityListener |
Field Summary |
---|
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
Email(String userName,
String emailAddress)
Create a new Email with an userName and an
emailAddress . |
Method Summary | |
---|---|
String |
getEmailAddress()
Return the emailAddress. |
String |
getFullName()
Return the fullName. |
Long |
getId()
Return the technical key value. |
String |
getUserName()
Returns the name of the User who owns this
Email . |
long |
getVersion()
Return the value of the optimistic locking field. |
boolean |
isNew()
Check whether the instance is a transient or persisted one. |
void |
setEmailAddress(String emailAddress)
Set the emailAddress. |
void |
setFullName(String fullName)
Set the fullName. |
void |
setUserName(String userName)
Assign the Email to an User . |
String |
toString()
Return the emailAddress as String. |
Methods inherited from class org.openwms.core.domain.AbstractEntity |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Email(String userName, String emailAddress)
Email
with an userName
and an
emailAddress
.
userName
- The name of the UseremailAddress
- The email address of the User
IllegalArgumentException
- when userName or emailAddress is null
or emptyMethod Detail |
---|
public Long getId()
getId
in interface DomainObject<Long>
public boolean isNew()
isNew
in interface DomainObject<Long>
true
if transient (not persisted before), otherwise
false
public String getUserName()
User
who owns this
Email
.
public void setUserName(String userName)
Email
to an User
.
userName
- Name of the User
.public String getEmailAddress()
public void setEmailAddress(String emailAddress)
emailAddress
- The emailAddress to set.public String getFullName()
public void setFullName(String fullName)
fullName
- The fullName to set.public long getVersion()
getVersion
in interface DomainObject<Long>
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |