Search in sources :

Example 1 with SCIMUserConf

use of org.apache.syncope.common.lib.scim.SCIMUserConf in project syncope by apache.

the class SCIMFilterTest method setup.

@BeforeAll
public static void setup() {
    SCIMConf conf = new SCIMConf();
    conf.setUserConf(new SCIMUserConf());
    conf.getUserConf().setTitle("title");
    conf.getUserConf().setDisplayName("cn");
    conf.getUserConf().setUserType("userType");
    conf.getUserConf().setName(new SCIMUserNameConf());
    conf.getUserConf().getName().setFamilyName("surname");
    SCIMComplexConf<EmailCanonicalType> email = new SCIMComplexConf<>();
    email.setValue("email");
    email.setType(EmailCanonicalType.work);
    conf.getUserConf().getEmails().add(email);
    email = new SCIMComplexConf<>();
    email.setValue("gmail");
    email.setType(EmailCanonicalType.home);
    conf.getUserConf().getEmails().add(email);
    VISITOR = new SearchCondVisitor(Resource.User, conf);
}
Also used : SCIMUserConf(org.apache.syncope.common.lib.scim.SCIMUserConf) SCIMConf(org.apache.syncope.common.lib.scim.SCIMConf) SCIMComplexConf(org.apache.syncope.common.lib.scim.SCIMComplexConf) SCIMUserNameConf(org.apache.syncope.common.lib.scim.SCIMUserNameConf) EmailCanonicalType(org.apache.syncope.common.lib.scim.types.EmailCanonicalType) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

SCIMComplexConf (org.apache.syncope.common.lib.scim.SCIMComplexConf)1 SCIMConf (org.apache.syncope.common.lib.scim.SCIMConf)1 SCIMUserConf (org.apache.syncope.common.lib.scim.SCIMUserConf)1 SCIMUserNameConf (org.apache.syncope.common.lib.scim.SCIMUserNameConf)1 EmailCanonicalType (org.apache.syncope.common.lib.scim.types.EmailCanonicalType)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1