use of com.evolveum.midpoint.web.page.admin.certification.dto.StageDefinitionDto in project midpoint by Evolveum.
the class DefinitionStagesPanel method deletePerformed.
private void deletePerformed(AjaxRequestTarget target) {
ConfirmationPanel dialog = new ConfirmationPanel(getPageBase().getMainPopupBodyId(), new AbstractReadOnlyModel<String>() {
@Override
public String getObject() {
StageDefinitionDto dto = getModelObject().get(tabPanel.getSelectedTab());
return getString("DefinitionStagesPanel.confirmDeleteText", dto.getName());
}
}) {
@Override
public void yesPerformed(AjaxRequestTarget target) {
getPageBase().hideMainPopup(target);
deleteConfirmedPerformed(target);
}
};
getPageBase().showMainPopup(dialog, target);
}
use of com.evolveum.midpoint.web.page.admin.certification.dto.StageDefinitionDto in project midpoint by Evolveum.
the class DefinitionStagesPanel method createNewStageDefinitionDto.
private StageDefinitionDto createNewStageDefinitionDto() {
try {
AccessCertificationStageDefinitionType def = new AccessCertificationStageDefinitionType(parentPage.getPrismContext());
def.setNumber(getModel().getObject().size() + 1);
def.setName(DEFAULT_STAGE_NAME_PREFIX + def.getNumber());
return new StageDefinitionDto(def, parentPage.getPrismContext());
} catch (SchemaException e) {
throw new IllegalStateException(e);
}
}
use of com.evolveum.midpoint.web.page.admin.certification.dto.StageDefinitionDto in project midpoint by Evolveum.
the class DefinitionStagesPanel method addPerformed.
private void addPerformed(AjaxRequestTarget target) {
StageDefinitionDto newStageDefinitionDto = createNewStageDefinitionDto();
getModelObject().add(newStageDefinitionDto);
recreateTabs();
tabPanel.setSelectedTab(getModelObject().size() - 1);
target.add(parentPage.getTabPanel());
}
Aggregations