MotechUser

public class MotechUser

Entity that represents Motech user

Constructors

MotechUser

public MotechUser()

MotechUser

public MotechUser(String userName, String password, String email, String externalId, List<String> roles, String openId, Locale locale)

Methods

equals

public boolean equals(Object o)

getEmail

public String getEmail()

getExternalId

public String getExternalId()

getFailureLoginCounter

public Integer getFailureLoginCounter()

getLastPasswordChange

public DateTime getLastPasswordChange()

getLocale

public Locale getLocale()

getOpenId

public String getOpenId()

getPassword

public String getPassword()

getRoles

public List<String> getRoles()

getUserName

public String getUserName()

getUserStatus

public UserStatus getUserStatus()

hasRole

public boolean hasRole(String role)

hashCode

public int hashCode()

incrementFailureLoginCounter

public void incrementFailureLoginCounter()

isActive

public boolean isActive()

setEmail

public void setEmail(String email)

setExternalId

public void setExternalId(String externalId)

setFailureLoginCounter

public void setFailureLoginCounter(Integer failureLoginCounter)

setLastPasswordChange

public void setLastPasswordChange(DateTime lastPasswordChange)

setLocale

public void setLocale(Locale locale)

setOpenId

public void setOpenId(String openId)

setPassword

public void setPassword(String password)

setRoles

public void setRoles(List<String> roles)

setUserName

public void setUserName(String userName)

setUserStatus

public void setUserStatus(UserStatus userStatus)

toString

public String toString()