|
Now you should be able to use a config like that:
mapping(User.class)
|
.baseDN(embeddedServer.getUserDnSuffix())
|
.attribute("loginName", UID, true)
|
.attribute("firstName", CN)
|
.attribute("lastName", SN)
|
.attribute("email", EMAIL)
|
.readOnlyAttribute("createdDate", CREATE_TIMESTAMP)
|
.readOnlyAttribute("modifyDate", MODIFY_TIMESTAMP)
|
.mapping(Role.class)
|
.baseDN(embeddedServer.getRolesDnSuffix())
|
.attribute("name", CN, true)
|
.readOnlyAttribute("createdDate", CREATE_TIMESTAMP)
|
.readOnlyAttribute("modifyDate", MODIFY_TIMESTAMP)
|
.mapping(Grant.class)
|
.forMapping(Role.class)
|
.attribute("assignee", "member");
|
If you try to query like this:
IdentityQueryBuilder queryBuilder = identityManager.getQueryBuilder();
|
|
List result = queryBuilder.createIdentityQuery(User.class).getResultList();
|
You'll get instances of User created from each entry on the baseDn configured for this type. The same for other types, like roles, etc.
|