Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
407 additions
and
30 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...-gui/src/main/java/com/evolveum/midpoint/web/page/admin/server/TaskApprovalsTabPanel.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2016 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:wicket="http://wicket.apache.org"> | ||
<body> | ||
<wicket:panel> | ||
<div class="box box-success"> | ||
<div class="box-body no-padding"> | ||
<table class="table table-striped"> | ||
<tr> | ||
<td><wicket:message key="pageTaskEdit.recurring"/></td> | ||
<td> | ||
<div class="col-md-6"> | ||
<div wicket:id="recurrence"/> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
</wicket:panel> | ||
</body> | ||
</html> | ||
|
56 changes: 56 additions & 0 deletions
56
...-gui/src/main/java/com/evolveum/midpoint/web/page/admin/server/TaskApprovalsTabPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright (c) 2010-2016 Evolveum | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.evolveum.midpoint.web.page.admin.server; | ||
|
||
import com.evolveum.midpoint.gui.api.model.LoadableModel; | ||
import com.evolveum.midpoint.gui.api.page.PageBase; | ||
import com.evolveum.midpoint.util.logging.Trace; | ||
import com.evolveum.midpoint.util.logging.TraceManager; | ||
import com.evolveum.midpoint.web.component.form.Form; | ||
import com.evolveum.midpoint.web.component.objectdetails.AbstractObjectTabPanel; | ||
import com.evolveum.midpoint.web.component.prism.ObjectWrapper; | ||
import com.evolveum.midpoint.web.component.prism.PrismPropertyPanel; | ||
import com.evolveum.midpoint.web.model.PropertyWrapperFromObjectWrapperModel; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType; | ||
|
||
/** | ||
* @author semancik | ||
*/ | ||
public class TaskApprovalsTabPanel extends AbstractObjectTabPanel<TaskType> { | ||
private static final long serialVersionUID = 1L; | ||
|
||
protected static final String ID_RECURRENCE = "recurrence"; | ||
|
||
private static final Trace LOGGER = TraceManager.getTrace(TaskApprovalsTabPanel.class); | ||
|
||
public TaskApprovalsTabPanel(String id, Form mainForm, | ||
LoadableModel<ObjectWrapper<TaskType>> taskWrapperModel, | ||
PageBase pageBase) { | ||
super(id, mainForm, taskWrapperModel, pageBase); | ||
initLayout(pageBase); | ||
} | ||
|
||
private void initLayout(PageBase pageBase) { | ||
|
||
PrismPropertyPanel recurrencePanel = new PrismPropertyPanel<>(ID_RECURRENCE, | ||
new PropertyWrapperFromObjectWrapperModel(getObjectWrapperModel(), TaskType.F_RECURRENCE), | ||
null, pageBase); | ||
recurrencePanel.setLabelContainerVisible(false); | ||
add(recurrencePanel); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ui/src/main/java/com/evolveum/midpoint/web/page/admin/server/TaskPerformanceTabPanel.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2016 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:wicket="http://wicket.apache.org"> | ||
<body> | ||
<wicket:panel> | ||
|
||
<div wicket:id="statisticsPanel"/> | ||
|
||
</wicket:panel> | ||
</body> | ||
</html> | ||
|
59 changes: 59 additions & 0 deletions
59
...ui/src/main/java/com/evolveum/midpoint/web/page/admin/server/TaskPerformanceTabPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Copyright (c) 2010-2016 Evolveum | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.evolveum.midpoint.web.page.admin.server; | ||
|
||
import com.evolveum.midpoint.gui.api.model.LoadableModel; | ||
import com.evolveum.midpoint.gui.api.page.PageBase; | ||
import com.evolveum.midpoint.util.logging.Trace; | ||
import com.evolveum.midpoint.util.logging.TraceManager; | ||
import com.evolveum.midpoint.web.component.form.Form; | ||
import com.evolveum.midpoint.web.component.objectdetails.AbstractObjectTabPanel; | ||
import com.evolveum.midpoint.web.component.prism.ObjectWrapper; | ||
import com.evolveum.midpoint.web.component.prism.PrismPropertyPanel; | ||
import com.evolveum.midpoint.web.component.progress.StatisticsDtoModel; | ||
import com.evolveum.midpoint.web.component.progress.StatisticsPanel; | ||
import com.evolveum.midpoint.web.model.PropertyWrapperFromObjectWrapperModel; | ||
import com.evolveum.midpoint.web.page.admin.server.dto.TaskDto; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType; | ||
import org.apache.wicket.model.AbstractReadOnlyModel; | ||
import org.apache.wicket.model.IModel; | ||
|
||
/** | ||
* @author semancik | ||
*/ | ||
public class TaskPerformanceTabPanel extends AbstractObjectTabPanel<TaskType> { | ||
private static final long serialVersionUID = 1L; | ||
|
||
private static final String ID_STATISTICS_PANEL = "statisticsPanel"; | ||
|
||
private LoadableModel<TaskDto> taskDtoModel; | ||
|
||
private static final Trace LOGGER = TraceManager.getTrace(TaskPerformanceTabPanel.class); | ||
|
||
public TaskPerformanceTabPanel(String id, Form mainForm, | ||
LoadableModel<ObjectWrapper<TaskType>> taskWrapperModel, | ||
LoadableModel<TaskDto> taskDtoModel, PageBase pageBase) { | ||
super(id, mainForm, taskWrapperModel, pageBase); | ||
this.taskDtoModel = taskDtoModel; | ||
initLayout(pageBase); | ||
} | ||
|
||
private void initLayout(PageBase pageBase) { | ||
StatisticsDtoModel statisticsDtoModel = new StatisticsDtoModel(taskDtoModel); | ||
StatisticsPanel statisticsPanel = new StatisticsPanel(ID_STATISTICS_PANEL, statisticsDtoModel); | ||
add(statisticsPanel); | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...n-gui/src/main/java/com/evolveum/midpoint/web/page/admin/server/TaskProgressTabPanel.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2016 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:wicket="http://wicket.apache.org"> | ||
<body> | ||
<wicket:panel> | ||
<div class="box box-success"> | ||
<div class="box-body no-padding"> | ||
<table class="table table-striped"> | ||
<tr> | ||
<td><wicket:message key="pageTaskEdit.recurring"/></td> | ||
<td> | ||
<div class="col-md-6"> | ||
<div wicket:id="recurrence"/> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
</wicket:panel> | ||
</body> | ||
</html> | ||
|
56 changes: 56 additions & 0 deletions
56
...n-gui/src/main/java/com/evolveum/midpoint/web/page/admin/server/TaskProgressTabPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright (c) 2010-2016 Evolveum | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.evolveum.midpoint.web.page.admin.server; | ||
|
||
import com.evolveum.midpoint.gui.api.model.LoadableModel; | ||
import com.evolveum.midpoint.gui.api.page.PageBase; | ||
import com.evolveum.midpoint.util.logging.Trace; | ||
import com.evolveum.midpoint.util.logging.TraceManager; | ||
import com.evolveum.midpoint.web.component.form.Form; | ||
import com.evolveum.midpoint.web.component.objectdetails.AbstractObjectTabPanel; | ||
import com.evolveum.midpoint.web.component.prism.ObjectWrapper; | ||
import com.evolveum.midpoint.web.component.prism.PrismPropertyPanel; | ||
import com.evolveum.midpoint.web.model.PropertyWrapperFromObjectWrapperModel; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.TaskType; | ||
|
||
/** | ||
* @author semancik | ||
*/ | ||
public class TaskProgressTabPanel extends AbstractObjectTabPanel<TaskType> { | ||
private static final long serialVersionUID = 1L; | ||
|
||
protected static final String ID_RECURRENCE = "recurrence"; | ||
|
||
private static final Trace LOGGER = TraceManager.getTrace(TaskProgressTabPanel.class); | ||
|
||
public TaskProgressTabPanel(String id, Form mainForm, | ||
LoadableModel<ObjectWrapper<TaskType>> taskWrapperModel, | ||
PageBase pageBase) { | ||
super(id, mainForm, taskWrapperModel, pageBase); | ||
initLayout(pageBase); | ||
} | ||
|
||
private void initLayout(PageBase pageBase) { | ||
|
||
PrismPropertyPanel recurrencePanel = new PrismPropertyPanel<>(ID_RECURRENCE, | ||
new PropertyWrapperFromObjectWrapperModel(getObjectWrapperModel(), TaskType.F_RECURRENCE), | ||
null, pageBase); | ||
recurrencePanel.setLabelContainerVisible(false); | ||
add(recurrencePanel); | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.