All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy