-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1351 from JanssenProject/jans-config-api-issue
feat(jans-config-api): user endpoint to expose custom attributes at root level
- Loading branch information
Showing
4 changed files
with
257 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Eclipse | ||
.project | ||
.classpath | ||
.settings/ | ||
bin/ | ||
|
||
# IntelliJ | ||
.idea | ||
*.ipr | ||
*.iml | ||
*.iws | ||
|
||
# NetBeans | ||
nb-configuration.xml | ||
|
||
# Visual Studio Code | ||
.vscode | ||
|
||
# OSX | ||
.DS_Store | ||
|
||
# Vim | ||
*.swp | ||
*.swo | ||
|
||
# patch | ||
*.orig | ||
*.rej | ||
|
||
# Maven | ||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
release.properties |
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
54 changes: 54 additions & 0 deletions
54
...ins/user-mgt-plugin/src/main/java/io/jans/configapi/plugin/mgt/model/user/CustomUser.java
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,54 @@ | ||
package io.jans.configapi.plugin.mgt.model.user; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
import io.jans.as.common.model.common.User; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class CustomUser extends User { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private String mail; | ||
private String displayName; | ||
private String jansStatus; | ||
private String givenName; | ||
private String userPassword; | ||
|
||
public String getMail() { | ||
return mail; | ||
} | ||
public void setMail(String mail) { | ||
this.mail = mail; | ||
} | ||
public String getDisplayName() { | ||
return displayName; | ||
} | ||
public void setDisplayName(String displayName) { | ||
this.displayName = displayName; | ||
} | ||
public String getJansStatus() { | ||
return jansStatus; | ||
} | ||
public void setJansStatus(String jansStatus) { | ||
this.jansStatus = jansStatus; | ||
} | ||
public String getGivenName() { | ||
return givenName; | ||
} | ||
public void setGivenName(String givenName) { | ||
this.givenName = givenName; | ||
} | ||
public String getUserPassword() { | ||
return userPassword; | ||
} | ||
public void setUserPassword(String userPassword) { | ||
this.userPassword = userPassword; | ||
} | ||
@Override | ||
public String toString() { | ||
return "CustomUser [mail=" + mail + ", displayName=" + displayName + ", jansStatus=" + jansStatus + ", givenName=" | ||
+ givenName + ", userPassword= XXXXX ]"; | ||
} | ||
|
||
} |
Oops, something went wrong.