예제 #1
0
  public User getUserByEmailAddress(EmailAddress emailAddress) {
    User result;
    result = readObject(User.class, User.EMAIL_ADDRESS, emailAddress.asString());

    if (result != null) {
      User current = getUserById(result.getId());
      if (current == null) {
        doAddClient(result);
      } else {
        result = current;
      }
    }

    return result;
  }
예제 #2
0
파일: User.java 프로젝트: chscqe/wahlzeit
  /** @methodtype initialization */
  protected void initialize(
      String id,
      String nickName,
      EmailAddress emailAddress,
      AccessRights accessRights,
      Client previousClient) {
    super.initialize(id, nickName, emailAddress, accessRights, previousClient);

    log.config(
        LogBuilder.createSystemMessage()
            .addAction("initialize user")
            .addParameter("id", id)
            .addParameter("name", nickName)
            .addParameter("E-Mail", emailAddress.asString())
            .toString());
    incWriteCount();
  }
예제 #3
0
파일: User.java 프로젝트: chscqe/wahlzeit
 public User(String id, String myName, String myEmailAddress, Client previousClient) {
   this(id, myName, EmailAddress.getFromString(myEmailAddress), previousClient);
 }
예제 #4
0
파일: User.java 프로젝트: chscqe/wahlzeit
 public User(String id, String myName, String myEmailAddress) {
   this(id, myName, EmailAddress.getFromString(myEmailAddress), null);
 }
예제 #5
0
 public User getUserByEmailAddress(String emailAddress) {
   return getUserByEmailAddress(EmailAddress.getFromString(emailAddress));
 }