Skip to content

Commit

Permalink
panel for task execution constraints (MID-6456)
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Feb 12, 2021
1 parent 7f41ad8 commit 23fd75c
Showing 1 changed file with 15 additions and 0 deletions.
Expand Up @@ -9,6 +9,8 @@
import java.util.ArrayList;
import java.util.List;

import com.evolveum.midpoint.xml.ns._public.common.common_3.TaskExecutionConstraintsType;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.extensions.markup.html.tabs.ITab;
import org.apache.wicket.markup.html.WebMarkupContainer;
Expand Down Expand Up @@ -62,6 +64,7 @@ protected List<ITab> createTabs(PageAdminObjectDetails<TaskType> parentPage) {
createBasicPanel(tabs, parentTaskPage);
createScheduleTab(tabs, parentTaskPage);
createWorkManagementTab(tabs, parentTaskPage);
createExecutionConstraintsTab(tabs, parentTaskPage);
// createCleanupPoliciesTab(tabs, parentTaskPage);
createSubtasksTab(tabs, parentTaskPage);
createOperationStatisticsPanel(tabs, parentTaskPage);
Expand Down Expand Up @@ -159,6 +162,18 @@ protected ItemEditabilityHandler getEditabilityHandler() {
});
}

public void createExecutionConstraintsTab(List<ITab> tabs, PageTask parentPage) {

tabs.add(new PanelTab(parentPage.createStringResource("pageTask.executionConstraints.title")) {

@Override
public WebMarkupContainer createPanel(String panelId) {
return new SingleContainerPanel<TaskExecutionConstraintsType>(panelId, PrismContainerWrapperModel.fromContainerWrapper(getObjectModel(), TaskType.F_EXECUTION_CONSTRAINTS), TaskExecutionConstraintsType.COMPLEX_TYPE);
}
});
}


// private void createCleanupPoliciesTab(List<ITab> tabs, PageTask parentPage) {
// ObjectTabVisibleBehavior<TaskType> cleanupPoliciesTabVisibility = new ObjectTabVisibleBehavior<TaskType>
// (Model.of(getObjectWrapper().getObject()), ComponentConstants.UI_TASK_TAB_CLEANUP_POLICIES_URL, parentPage) {
Expand Down

0 comments on commit 23fd75c

Please sign in to comment.