io.baltoro.domain.User Maven / Gradle / Ivy
package io.baltoro.domain;
public class User extends BO
{
private static final BOMD FULL_NAME = new BOMD("full.name", ColTypeEnum.str_1);
private static final BOMD PASSWORD_HASH = new BOMD("password.hash", ColTypeEnum.str_2);
private static final BOMD PASSWORD_SALT = new BOMD("password.salt", ColTypeEnum.str_3);
//private static final BOMD CELL_PHONE = new BOMD("cell.phone", ColTypeEnum.str_3);
//private static final BOMD PUBLIC_KEY = new BOMD("public.key", ColTypeEnum.str_4);
//private static final BOMD PRIVATE_KEY = new BOMD("private.key", ColTypeEnum.str_5);
String passwordHash;
String passwordSalt;
//private Set contianerSet = null;
@Override
public BOMD[] getMDDef()
{
return new BOMD[]{FULL_NAME, PASSWORD_HASH, PASSWORD_SALT};
}
public String getFullName()
{
return getValue(FULL_NAME.getName());
}
public void setFullName(String fullName)
{
addValue(FULL_NAME.getName(), fullName);
}
public String getEmail()
{
return getName();
}
public void setEmail(String email)
{
setName(email);
}
/*
public Set getContianerSet()
{
return contianerSet;
}
public void setContianerSet(Set contianerSet)
{
this.contianerSet = contianerSet;
}
*/
public String getPasswordHash()
{
return getValue(PASSWORD_HASH.getName());
}
public void setPasswordHash(String passwordHash)
{
addValue(PASSWORD_HASH.getName(), passwordHash);
}
public String getPasswordSalt()
{
return getValue(PASSWORD_SALT.getName());
}
public void setPasswordSalt(String passwordSalt)
{
addValue(PASSWORD_SALT.getName(), passwordSalt);
}
/*
public String getPublicKey()
{
return getValue(PUBLIC_KEY.getName());
}
public void setPublicKey(String publicKey)
{
addValue(PUBLIC_KEY.getName(), publicKey);
}
public String getPrivateKey()
{
return getValue(PRIVATE_KEY.getName());
}
public void setPrivateKey(String privateKey)
{
addValue(PRIVATE_KEY.getName(), privateKey);
}
*/
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy