user import fix
This commit is contained in:
parent
53f671e8af
commit
accb56be7f
3 changed files with 7 additions and 5 deletions
|
@ -104,7 +104,7 @@
|
||||||
<attribute name="slot"/>
|
<attribute name="slot"/>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
name = attributes.get("name");
|
name = attributes.get("name");
|
||||||
name = name.replace(/\./g, "/");
|
name = name.replace(".", "/");
|
||||||
project.setProperty("current.module.path", name + "/" + attributes.get("slot"));
|
project.setProperty("current.module.path", name + "/" + attributes.get("slot"));
|
||||||
]]>
|
]]>
|
||||||
</scriptdef>
|
</scriptdef>
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
<attribute name="slot"/>
|
<attribute name="slot"/>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
name = attributes.get("name");
|
name = attributes.get("name");
|
||||||
name = name.replace(/\./g, "/");
|
name = name.replace(".", "/");
|
||||||
project.setProperty("current.bundle.path", name + "/" + attributes.get("slot"));
|
project.setProperty("current.bundle.path", name + "/" + attributes.get("slot"));
|
||||||
]]>
|
]]>
|
||||||
</scriptdef>
|
</scriptdef>
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
{
|
{
|
||||||
"username" : "bburke@redhat.com",
|
"username" : "bburke@redhat.com",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"attributes" : {
|
"email" : "bburke@redhat.com",
|
||||||
"email" : "bburke@redhat.com"
|
"firstName": "Bill",
|
||||||
},
|
"lastName": "Burke",
|
||||||
"credentials" : [
|
"credentials" : [
|
||||||
{ "type" : "password",
|
{ "type" : "password",
|
||||||
"value" : "password" }
|
"value" : "password" }
|
||||||
|
|
|
@ -423,6 +423,8 @@ public class RealmManager {
|
||||||
UserModel user = newRealm.addUser(userRep.getUsername());
|
UserModel user = newRealm.addUser(userRep.getUsername());
|
||||||
user.setEnabled(userRep.isEnabled());
|
user.setEnabled(userRep.isEnabled());
|
||||||
user.setEmail(userRep.getEmail());
|
user.setEmail(userRep.getEmail());
|
||||||
|
user.setFirstName(userRep.getFirstName());
|
||||||
|
user.setLastName(userRep.getLastName());
|
||||||
if (userRep.getAttributes() != null) {
|
if (userRep.getAttributes() != null) {
|
||||||
for (Map.Entry<String, String> entry : userRep.getAttributes().entrySet()) {
|
for (Map.Entry<String, String> entry : userRep.getAttributes().entrySet()) {
|
||||||
user.setAttribute(entry.getKey(), entry.getValue());
|
user.setAttribute(entry.getKey(), entry.getValue());
|
||||||
|
|
Loading…
Reference in a new issue