1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.client.console.panels;
20
21 import org.apache.syncope.client.console.widgets.JobWidget;
22 import org.apache.syncope.common.lib.types.IdRepoEntitlement;
23 import org.apache.wicket.Component;
24 import org.apache.wicket.PageReference;
25 import org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
26 import org.apache.wicket.markup.html.panel.Panel;
27
28 public class DashboardControlPanel extends Panel {
29
30 private static final long serialVersionUID = -776362411304859269L;
31
32 public DashboardControlPanel(final String id, final PageReference pageRef) {
33 super(id);
34
35 JobWidget job = new JobWidget("job", pageRef);
36 MetaDataRoleAuthorizationStrategy.authorize(job, Component.RENDER,
37 String.format("%s,%s,%s",
38 IdRepoEntitlement.NOTIFICATION_LIST,
39 IdRepoEntitlement.TASK_LIST,
40 IdRepoEntitlement.REPORT_LIST));
41 add(job);
42 }
43 }