Search in sources :

Example 1 with SCIMComplexValue

use of org.apache.syncope.ext.scimv2.api.data.SCIMComplexValue in project syncope by apache.

the class SCIMITCase method getSampleUser.

private SCIMUser getSampleUser(final String username) {
    SCIMUser user = new SCIMUser(null, Collections.singletonList(Resource.User.schema()), null, username, true);
    user.setPassword("password123");
    SCIMUserName name = new SCIMUserName();
    name.setGivenName(username);
    name.setFamilyName("surname");
    name.setFormatted(username);
    user.setName(name);
    SCIMComplexValue userId = new SCIMComplexValue();
    userId.setType(EmailCanonicalType.work.name());
    userId.setValue(username + "@syncope.apache.org");
    user.getEmails().add(userId);
    SCIMComplexValue email = new SCIMComplexValue();
    email.setType(EmailCanonicalType.home.name());
    email.setValue(username + "@syncope.apache.org");
    user.getEmails().add(email);
    return user;
}
Also used : SCIMUser(org.apache.syncope.ext.scimv2.api.data.SCIMUser) SCIMUserName(org.apache.syncope.ext.scimv2.api.data.SCIMUserName) SCIMComplexValue(org.apache.syncope.ext.scimv2.api.data.SCIMComplexValue)

Aggregations

SCIMComplexValue (org.apache.syncope.ext.scimv2.api.data.SCIMComplexValue)1 SCIMUser (org.apache.syncope.ext.scimv2.api.data.SCIMUser)1 SCIMUserName (org.apache.syncope.ext.scimv2.api.data.SCIMUserName)1