-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LDAP: Make more sophisticated logged in
- Loading branch information
Showing
6 changed files
with
134 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/** | ||
* Yona, 21st Century Project Hosting SW | ||
* <p> | ||
* Copyright Yona & Yobi Authors & NAVER Corp. | ||
* https://yona.io | ||
**/ | ||
|
||
package models; | ||
|
||
import org.apache.commons.lang3.StringUtils; | ||
import play.Play; | ||
|
||
// Simple DTO for automatic user creation | ||
public class CandidateUser { | ||
private String name; | ||
private String email; | ||
private String loginId; | ||
private String password; | ||
|
||
public CandidateUser(String name, String email) { | ||
this.name = name; | ||
this.email = email; | ||
} | ||
|
||
public CandidateUser(String name, String email, String loginId, String password) { | ||
this.name = name; | ||
this.email = email; | ||
this.loginId = loginId; | ||
this.password = password; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getEmail() { | ||
if (StringUtils.isBlank(this.email)) { | ||
return ""; | ||
} | ||
return email; | ||
} | ||
|
||
public String getLoginId() { | ||
return loginId; | ||
} | ||
|
||
public String getPassword() { | ||
return password; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
|
||
public void setLoginId(String loginId) { | ||
this.loginId = loginId; | ||
} | ||
|
||
public void setPassword(String password) { | ||
this.password = password; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "CandidateUser{" + | ||
"name='" + name + '\'' + | ||
", email='" + email + '\'' + | ||
", loginId='" + loginId + '\'' + | ||
", password='" + password + '\'' + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters