Package org.apache.syncope.core.persistence.beans

Examples of org.apache.syncope.core.persistence.beans.ExternalResource.addMapping()


        derived.setExtAttrName("fullname");
        derived.setIntAttrName("cn");
        derived.setIntMappingType(IntMappingType.UserDerivedSchema);

        derived.setResource(resource);
        resource.addMapping(derived);

        // save the resource
        ExternalResource actual = resourceDAO.save(resource);
        assertNotNull(actual);
View Full Code Here


        SchemaMapping newMapping = new SchemaMapping();
        newMapping.setIntMappingType(IntMappingType.Username);
        newMapping.setExtAttrName("TEST");
        newMapping.setResource(csv);
        csv.addMapping(newMapping);

        resourceDAO.save(csv);
        resourceDAO.flush();

        csv = resourceDAO.find("resource-csv");
View Full Code Here

            mapping.setIntAttrName("nonexistent" + i);
            mapping.setIntMappingType(IntMappingType.UserSchema);
            mapping.setMandatoryCondition("false");

            mapping.setResource(resource);
            resource.addMapping(mapping);
        }
        SchemaMapping accountId = new SchemaMapping();
        accountId.setAccountid(true);
        accountId.setExtAttrName("username");
        accountId.setIntAttrName("username");
View Full Code Here

        accountId.setExtAttrName("username");
        accountId.setIntAttrName("username");
        accountId.setIntMappingType(IntMappingType.SyncopeUserId);

        accountId.setResource(resource);
        resource.addMapping(accountId);

        // map a derived attribute
        SchemaMapping derived = new SchemaMapping();
        derived.setAccountid(false);
        derived.setExtAttrName("fullname");
View Full Code Here

        derived.setExtAttrName("fullname");
        derived.setIntAttrName("cn");
        derived.setIntMappingType(IntMappingType.UserDerivedSchema);

        derived.setResource(resource);
        resource.addMapping(derived);

        // save the resource
        ExternalResource actual = resourceDAO.save(resource);
        assertNotNull(actual);
View Full Code Here

        SchemaMapping newMapping = new SchemaMapping();
        newMapping.setIntMappingType(IntMappingType.Username);
        newMapping.setExtAttrName("TEST");
        newMapping.setResource(csv);
        csv.addMapping(newMapping);

        resourceDAO.save(csv);
        resourceDAO.flush();

        csv = resourceDAO.find("resource-csv");
View Full Code Here

        SchemaMapping accountId = new SchemaMapping();
        accountId.setResource(resource);
        accountId.setAccountid(true);
        accountId.setIntMappingType(IntMappingType.UserSchema);

        resource.addMapping(accountId);

        // save the resource
        ExternalResource actual = resourceDAO.save(resource);

        assertNotNull(actual);
View Full Code Here

        SchemaMapping accountId = new SchemaMapping();
        accountId.setResource(resource);
        accountId.setAccountid(true);
        accountId.setIntMappingType(IntMappingType.UserVirtualSchema);

        resource.addMapping(accountId);

        // save the resource
        ExternalResource actual = resourceDAO.save(resource);

        assertNotNull(actual);
View Full Code Here

        mapping.setResource(resource);
        mapping.setAccountid(true);
        mapping.setIntAttrName("fullname");
        mapping.setIntMappingType(IntMappingType.UserSchema);

        resource.addMapping(mapping);

        mapping = new SchemaMapping();
        mapping.setResource(resource);
        mapping.setIntAttrName("userId");
        mapping.setIntMappingType(IntMappingType.UserSchema);
View Full Code Here

        mapping = new SchemaMapping();
        mapping.setResource(resource);
        mapping.setIntAttrName("userId");
        mapping.setIntMappingType(IntMappingType.UserSchema);

        resource.addMapping(mapping);

        resourceDAO.save(resource);
    }

    @Test
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.