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);
}
}
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;
}
Aggregations