<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Martin,<br>
<br>
It looks like enums are not supported by the ConnId. Neither as
configuration items nor resource object attributes. See
org.identityconnectors.framework.common.FrameworkUtil.isSupportedConfigurationType(Class<?>).
I think that support for enums might be possible to add to ConnId,
although it might be a bit tricky because the values have to be
serialized and deserialized when working with remote connectors.
Anyway, the right place to discuss this is the ConnId mailing
list:<br>
<br>
<a class="moz-txt-link-freetext" href="https://groups.google.com/forum/?fromgroups#!forum/connid-users">https://groups.google.com/forum/?fromgroups#!forum/connid-users</a><br>
<br>
I can only promise that if there will be a enum support in ConnId
then midPoint will support that feature as soon as possible. I
would personally like to see this feature, especially if it
extends to support both as configuration items and resource object
attributes. And we are definitely able to implement it both in
ConnId and midPoint. However, our plan for unfunded features are
currently quite full, so we do not have the capacity to invest in
this ourselves unless some external funding for the feature is
secured.<br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<br>
<br>
On 12/30/2015 12:32 PM, Martin Lízner - AMI Praha a.s. wrote:<br>
</div>
<blockquote
cite="mid:CALOh8eM_-J4RR-GL0wJrW0bjHo8AbSJwLDh8t+_w5z4shaFJXg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi all, im trying to create enumeration resource
attribute in my custom connector. My aim is to have mp resource
wizard to render this attribute as select box component. Im
actually able to do this via changing the connector XML directly
by defining new xsd:simpleType with xsd:enumeration. But the
problem is with Java connector or ICF, which seems to dislike
enums... any idea?
<div><br>
</div>
<div>Fragment of my connector code:</div>
<div>
<div>private OsType os;<br>
</div>
<div>private enum OsType {</div>
<div> RHEL("RHEL"), AIX("AIX");</div>
<div>...</div>
<div><br>
</div>
<div>Starting mp I get:</div>
<div>java.lang.IllegalArgumentException: Property type 'class
com.evolveum.polygon.connectors.kdm.KDMConfiguration$OsType'
is not supported.<br>
</div>
<div>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<table
style="font-family:Verdana,Arial,Helvetica,sans-serif;border-collapse:collapse;padding:0px;margin:0px;border-width:0px!important;border-style:solid!important;width:482px!important">
<tbody>
<tr
style="padding:0px;margin:0px;border:0px
solid gray!important">
<td colspan="2"
style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;vertical-align:bottom;padding:0px;border:0px
solid gray!important">
<p><span
style="font-size:14px;font-weight:bold">Martin
Lízner</span><br>
solution architect<br>
<br>
gsm: [+420] 737 745 571<br>
e-mail: <a moz-do-not-send="true"
href="mailto:jmeno.prijmeni@ami.cz"
target="_blank">martin.lizner@ami.cz</a></p>
</td>
<td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);padding:0px;border-top-width:0px!important;border-bottom-width:0px!important;border-left-width:0px!important;border-top-style:solid!important;border-bottom-style:solid!important;border-left-style:solid!important;border-top-color:gray!important;border-bottom-color:gray!important;border-left-color:gray!important"> </td>
<td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px
solid gray!important"> </td>
<td
style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;vertical-align:bottom;padding:0px;border:0px
solid gray!important">
<p>AMI Praha a.s.<br>
Pláničkova 11<br>
162 00 Praha 6<br>
tel.: [+420] 274 783 239<br>
web: <a moz-do-not-send="true"
href="http://www.ami.cz/"
target="_blank">www.ami.cz</a></p>
</td>
<td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);padding:0px;border-top-width:0px!important;border-bottom-width:0px!important;border-left-width:0px!important;border-top-style:solid!important;border-bottom-style:solid!important;border-left-style:solid!important;border-top-color:gray!important;border-bottom-color:gray!important;border-left-color:gray!important"> </td>
<td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px
solid gray!important"> </td>
<td
style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;margin:8px;border:0px
solid gray!important">
<p><img moz-do-not-send="true"
src="http://www.ami.cz/images/podpis/ami_logo.gif"
alt="" style="border: 0px;"></p>
</td>
</tr>
<tr
style="padding:0px;margin:0px;border:0px
solid gray!important">
<td colspan="8"
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px
solid gray!important"><br>
</td>
</tr>
<tr
style="padding:0px;margin:0px;border:0px
solid gray!important">
<td colspan="8"
style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:11px;padding:0px;border:0px
solid gray!important">
<table
style="font-family:Verdana,Arial,Helvetica,sans-serif;border-collapse:collapse;padding:0px;margin:0px;border-width:0px!important;border-style:solid!important;width:482px!important">
<tbody>
<tr
style="padding:0px;margin:0px;border:0px
solid gray!important">
<td colspan="7"
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;width:480px;border:0px
solid gray!important"><br>
<a moz-do-not-send="true"
href="http://www.skyidentity.com/"
target="_blank"><img
moz-do-not-send="true"
src="http://www.ami.cz/images/podpis/AMI-podpis-Sky.png"
alt="AMI Praha a.s."
style="border: 0px; width:
480px !important; height:
82px !important;"></a></td>
</tr>
<tr
style="padding:0px;margin:0px;border:0px
solid gray!important">
<td colspan="7"
style="font-family:Arial,sans-serif;padding:0px;border:0px
solid gray!important"><br>
</td>
</tr>
</tbody>
</table>
Textem tohoto e-mailu podepisující
neslibuje uzavřít ani neuzavírá za
společnost AMI Praha a.s.<br>
jakoukoliv smlouvu. Každá smlouva,
pokud bude uzavřena, musí mít výhradně
písemnou formu.</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>