Search in sources :

Example 1 with RAutoassignSpecification

use of com.evolveum.midpoint.repo.sql.data.common.embedded.RAutoassignSpecification in project midpoint by Evolveum.

the class RAbstractRole method copyFromJAXB.

// dynamically called
public static void copyFromJAXB(AbstractRoleType jaxb, RAbstractRole repo, RepositoryContext repositoryContext, IdGeneratorResult generatorResult) throws DtoTranslationException {
    copyFocusInformationFromJAXB(jaxb, repo, repositoryContext, generatorResult);
    repo.setRequestable(jaxb.isRequestable());
    repo.setDisplayName(RPolyString.copyFromJAXB(jaxb.getDisplayName()));
    repo.setIdentifier(jaxb.getIdentifier());
    repo.setRiskLevel(jaxb.getRiskLevel());
    if (jaxb.getAutoassign() != null) {
        RAutoassignSpecification aa = new RAutoassignSpecification();
        RAutoassignSpecification.formJaxb(jaxb.getAutoassign(), aa);
        repo.setAutoassign(aa);
    }
    for (AssignmentType inducement : jaxb.getInducement()) {
        RAssignment rInducement = new RAssignment(repo, RAssignmentOwner.ABSTRACT_ROLE);
        RAssignment.fromJaxb(inducement, rInducement, jaxb, repositoryContext, generatorResult);
        repo.getAssignments().add(rInducement);
    }
}
Also used : RAssignment(com.evolveum.midpoint.repo.sql.data.common.container.RAssignment) AssignmentType(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType) RAutoassignSpecification(com.evolveum.midpoint.repo.sql.data.common.embedded.RAutoassignSpecification)

Example 2 with RAutoassignSpecification

use of com.evolveum.midpoint.repo.sql.data.common.embedded.RAutoassignSpecification in project midpoint by Evolveum.

the class AutoassignSpecificationMapper method map.

@Override
public RAutoassignSpecification map(AutoassignSpecificationType input, MapperContext context) {
    RAutoassignSpecification rspec = new RAutoassignSpecification();
    RAutoassignSpecification.formJaxb(input, rspec);
    return rspec;
}
Also used : RAutoassignSpecification(com.evolveum.midpoint.repo.sql.data.common.embedded.RAutoassignSpecification)

Aggregations

RAutoassignSpecification (com.evolveum.midpoint.repo.sql.data.common.embedded.RAutoassignSpecification)2 RAssignment (com.evolveum.midpoint.repo.sql.data.common.container.RAssignment)1 AssignmentType (com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType)1