util.AdminUser Maven / Gradle / Ivy
The newest version!
package util;
import com.github.simondan.definition.AbstractUniqueStorableObject;
import com.github.simondan.definition.fields.*;
/**
* Beschreibt einen Administrator-Account
*
* @author Simon Danner, 29.10.2015
*/
public class AdminUser extends AbstractUniqueStorableObject
{
public static final Field name = FieldFactory.field(String.class);
public static final Field password = FieldFactory.field(String.class);
public static final Field email = FieldFactory.field(String.class);
public AdminUser(String pUserName, String pPassword)
{
setValue(name, pPassword);
setValue(password, pPassword);
}
public String getName()
{
return getValue(name);
}
public String getPassword()
{
return getValue(password);
}
public void setPassword(String pPassword)
{
setValue(password, pPassword);
}
public String getEmail()
{
return getValue(email);
}
}