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.wicket.markup.html.bootstrap.dialog.BaseModal;
22 import org.apache.syncope.common.lib.to.RelationshipTypeTO;
23 import org.apache.wicket.PageReference;
24
25 public class RelationshipTypeModalPanel extends AbstractModalPanel<RelationshipTypeTO> {
26
27 private static final long serialVersionUID = 1602285111803121341L;
28
29 private final RelationshipTypeTO relationshipTypeTO;
30
31 public RelationshipTypeModalPanel(
32 final BaseModal<RelationshipTypeTO> modal,
33 final RelationshipTypeTO relationshipTypeTO,
34 final PageReference pageRef) {
35 super(modal, pageRef);
36 this.relationshipTypeTO = relationshipTypeTO;
37 add(new RelationshipTypeDetailsPanel("relationshipTypeDetails", this.relationshipTypeTO));
38 }
39
40 @Override
41 public RelationshipTypeTO getItem() {
42 return this.relationshipTypeTO;
43 }
44 }