-
Notifications
You must be signed in to change notification settings - Fork 188
/
ShadowAssociationReferenceWrapperImpl.java
48 lines (38 loc) · 1.26 KB
/
ShadowAssociationReferenceWrapperImpl.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Copyright (c) 2010-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.gui.impl.prism;
import javax.xml.namespace.QName;
import com.evolveum.midpoint.gui.api.prism.ItemStatus;
import com.evolveum.midpoint.prism.PrismReference;
import com.evolveum.midpoint.prism.Referencable;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType;
/**
* @author skublik
*
*/
public class ShadowAssociationReferenceWrapperImpl<R extends Referencable> extends PrismReferenceWrapperImpl<R> {
private static final long serialVersionUID = 1L;
private String displayName;
public ShadowAssociationReferenceWrapperImpl(PrismContainerValueWrapper<?> parent, PrismReference item,
ItemStatus status) {
super(parent, item, status);
}
@Override
public String getDisplayName() {
if(displayName != null) {
return displayName;
}
return super.getDisplayName();
}
@Override
public QName getTargetTypeName() {
return ShadowType.COMPLEX_TYPE;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
}