Search in sources :

Example 6 with PropertyLimitationsType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.PropertyLimitationsType in project midpoint by Evolveum.

the class LimitationsEditorDialog method savePerformed.

protected void savePerformed(AjaxRequestTarget target) {
    List<PropertyLimitationsTypeDto> list = model.getObject();
    List<PropertyLimitationsType> outputList = new ArrayList<>();
    for (PropertyLimitationsTypeDto dto : list) {
        outputList.add(dto.prepareDtoForSave());
    }
    inputModel.getObject().clear();
    inputModel.getObject().addAll(outputList);
    close(target);
}
Also used : PropertyLimitationsTypeDto(com.evolveum.midpoint.web.component.wizard.resource.dto.PropertyLimitationsTypeDto) ArrayList(java.util.ArrayList) PropertyLimitationsType(com.evolveum.midpoint.xml.ns._public.common.common_3.PropertyLimitationsType)

Example 7 with PropertyLimitationsType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.PropertyLimitationsType in project midpoint by Evolveum.

the class LimitationsEditorDialog method addLimitationsPerformed.

private void addLimitationsPerformed(AjaxRequestTarget target) {
    changeState = ChangeState.LAST;
    model.getObject().add(new PropertyLimitationsTypeDto(new PropertyLimitationsType()));
    target.add(getContent());
}
Also used : PropertyLimitationsTypeDto(com.evolveum.midpoint.web.component.wizard.resource.dto.PropertyLimitationsTypeDto) PropertyLimitationsType(com.evolveum.midpoint.xml.ns._public.common.common_3.PropertyLimitationsType)

Aggregations

PropertyLimitationsType (com.evolveum.midpoint.xml.ns._public.common.common_3.PropertyLimitationsType)7 PropertyLimitationsTypeDto (com.evolveum.midpoint.web.component.wizard.resource.dto.PropertyLimitationsTypeDto)3 ArrayList (java.util.ArrayList)2 ItemPath (com.evolveum.midpoint.prism.path.ItemPath)1 PathKeyedMap (com.evolveum.midpoint.prism.path.PathKeyedMap)1 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)1 LayerType (com.evolveum.midpoint.xml.ns._public.common.common_3.LayerType)1 ObjectReferenceType (com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType)1 ObjectTemplateItemDefinitionType (com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectTemplateItemDefinitionType)1 PropertyAccessType (com.evolveum.midpoint.xml.ns._public.common.common_3.PropertyAccessType)1 Map (java.util.Map)1