Class ReferenceConverter
- java.lang.Object
-
- com.evolveum.midpoint.gui.api.component.autocomplete.ReferenceConverter
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.convert.IConverter<ObjectReferenceType>
,org.apache.wicket.util.io.IClusterable
public class ReferenceConverter extends Object implements org.apache.wicket.util.convert.IConverter<ObjectReferenceType>
- Author:
- honchar
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReferenceConverter(org.apache.wicket.util.convert.IConverter<ObjectReferenceType> originConverter, List<ObjectReferenceType> referenceList, org.apache.wicket.markup.html.form.FormComponent baseComponent, PageBase pageBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectReferenceType
convertToObject(String value, Locale locale)
String
convertToString(ObjectReferenceType ref, Locale arg1)
protected <O extends ObjectType>
Class<O>getReferenceTargetObjectType()
protected boolean
isAllowedNotFoundObjectRef()
-
-
-
Constructor Detail
-
ReferenceConverter
public ReferenceConverter(org.apache.wicket.util.convert.IConverter<ObjectReferenceType> originConverter, List<ObjectReferenceType> referenceList, org.apache.wicket.markup.html.form.FormComponent baseComponent, PageBase pageBase)
-
-
Method Detail
-
convertToObject
public ObjectReferenceType convertToObject(String value, Locale locale) throws org.apache.wicket.util.convert.ConversionException
- Specified by:
convertToObject
in interfaceorg.apache.wicket.util.convert.IConverter<ObjectReferenceType>
- Throws:
org.apache.wicket.util.convert.ConversionException
-
convertToString
public String convertToString(ObjectReferenceType ref, Locale arg1)
- Specified by:
convertToString
in interfaceorg.apache.wicket.util.convert.IConverter<ObjectReferenceType>
-
getReferenceTargetObjectType
protected <O extends ObjectType> Class<O> getReferenceTargetObjectType()
-
isAllowedNotFoundObjectRef
protected boolean isAllowedNotFoundObjectRef()
-
-