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

Examples of org.apache.syncope.core.persistence.beans.SchemaMapping


        ConnInstance connector = resourceDAO.find("ws-target-resource-1").getConnector();

        resource.setConnector(connector);

        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);
View Full Code Here


        ConnInstance connector = resourceDAO.find("ws-target-resource-1").getConnector();

        resource.setConnector(connector);

        SchemaMapping mapping = new SchemaMapping();
        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);

        resource.addMapping(mapping);

        resourceDAO.save(resource);
    }
View Full Code Here

        ConnInstance connector = resourceDAO.find("ws-target-resource-1").getConnector();

        resource.setConnector(connector);

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

        resource.addMapping(mapping);

        mapping = new SchemaMapping();
        mapping.setResource(resource);
        mapping.setIntAttrName("icon");
        mapping.setExtAttrName("icon");
        mapping.setIntMappingType(IntMappingType.RoleSchema);

        resource.addMapping(mapping);

        mapping = new SchemaMapping();
        mapping.setResource(resource);
        mapping.setIntAttrName("mderiveddata");
        mapping.setExtAttrName("mderiveddata");
        mapping.setIntMappingType(IntMappingType.MembershipDerivedSchema);

        resource.addMapping(mapping);

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

        boolean result = false;

        for (Iterator<SchemaMapping> itor = resource.getMappings(intAttrName, attributableUtil.intMappingType()).
                iterator(); itor.hasNext() && !result;) {

            SchemaMapping mapping = itor.next();
            result |= evaluateMandatoryCondition(mapping.getMandatoryCondition(), attributes);
        }

        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.syncope.core.persistence.beans.SchemaMapping

Copyright © 2018 www.massapicom. 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.