You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by Santiago Moral <sm...@conicet.gov.ar> on 2016/02/23 13:58:42 UTC
Syncope Client 1.2.7 - Create user with plain attributes
Hi,
I'm Santiago Moral and I want to create a new User with plain attributes
using de Syncope Client 1.2.7 and I can't find a way to add this
attributes to de entity UserTO. I've tried using the following code:
AttributeTO attributeTO = new AttributeTO();
attributeTO.setSchema(schema);
attributeTO.getValues().add(value);
userTO.getAttrMap().put(attributeTO.getSchema(), attributeTO);
I'm getting java.lang.UnsupportedOperationException becouse attrMap is
an UnmodifiableMap.
I really apreciate any kind of help that you can bring to me.
Regards,
Santiago.
Re: Syncope Client 1.2.7 - Create user with plain attributes
Posted by andrea <an...@tirasa.net>.
Hi,
Welcome to the Apache Syncope world.
I'm glad that you solved very soon :)
If you need some other help you can refer to the wiki at [1] and
obviously to this mailing list.
Best regards,
Andrea
[1] https://cwiki.apache.org/confluence/display/SYNCOPE/Index
Il 23/02/2016 14:40, Santiago Moral ha scritto:
> I could solved the problem. I've never saw the method getAttrs() of
> UserTO.
>
> Thanks!
>
> On 23/02/16 09:58, Santiago Moral wrote:
>> Hi,
>> I'm Santiago Moral and I want to create a new User with plain
>> attributes using de Syncope Client 1.2.7 and I can't find a way to
>> add this attributes to de entity UserTO. I've tried using the
>> following code:
>>
>> AttributeTO attributeTO = new AttributeTO();
>> attributeTO.setSchema(schema);
>> attributeTO.getValues().add(value);
>> userTO.getAttrMap().put(attributeTO.getSchema(), attributeTO);
>>
>> I'm getting java.lang.UnsupportedOperationException becouse attrMap
>> is an UnmodifiableMap.
>>
>> I really apreciate any kind of help that you can bring to me.
>>
>> Regards,
>> Santiago.
>
Re: Syncope Client 1.2.7 - Create user with plain attributes
Posted by Santiago Moral <sm...@conicet.gov.ar>.
I could solved the problem. I've never saw the method getAttrs() of UserTO.
Thanks!
On 23/02/16 09:58, Santiago Moral wrote:
> Hi,
> I'm Santiago Moral and I want to create a new User with plain
> attributes using de Syncope Client 1.2.7 and I can't find a way to add
> this attributes to de entity UserTO. I've tried using the following code:
>
> AttributeTO attributeTO = new AttributeTO();
> attributeTO.setSchema(schema);
> attributeTO.getValues().add(value);
> userTO.getAttrMap().put(attributeTO.getSchema(), attributeTO);
>
> I'm getting java.lang.UnsupportedOperationException becouse attrMap is
> an UnmodifiableMap.
>
> I really apreciate any kind of help that you can bring to me.
>
> Regards,
> Santiago.
Re: Resources - Map user creation date
Posted by andrea <an...@tirasa.net>.
Il 24/02/2016 19:37, Santiago Moral ha scritto:
> Hi!
>
> Is there a way to map an attribute of a data base resource with the
> user creation date?
>
> Regards.
Hi Santiago,
Yes.
But you cannot do it with the "canonical" mapping, creationDate is not
exposed to the standard mapping mechanism, it is used only for internal
purposes.
You can do it with a custom synchronization action, you can refer to [1].
[1] https://cwiki.apache.org/confluence/display/SYNCOPE/SyncActionsClass
Best regards,
Andrea
Resources - Map user creation date
Posted by Santiago Moral <sm...@conicet.gov.ar>.
Hi!
Is there a way to map an attribute of a data base resource with the user
creation date?
Regards.