Project

General

Profile

Actions

Feature #527

open

Automatic basic type conversion for acc

Added by Filip Měšťánek almost 7 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Eav
Target version:
-
Start date:
06/22/2017
Due date:
% Done:

70%

Estimated time:
Owner:

Description

This is a feature suggestion:
Perform automatic type conversion for basic types. For example I have a form attribute of type Long and resource attribute of type String. When I perform provisioning or sync, it fails with "Form value [2037] for attribute [idPerson] has to be type of [LONG], given [java.lang.String]" (or similar for provisioning). Now it is required to do the conversion in transform to/from. Idea is to perform the conversion automatically for basic datatypes.


Related issues

Related to IdStory Identity Manager - Task #1076: Add JodaTime to DATE and DATETIME types of EAVClosedRadek Tomiška04/18/2018

Actions
Actions #1

Updated by Radek Tomiška almost 7 years ago

  • Category changed from Provisioning to Eav
  • Target version set to Diamond (7.4.0)

This feature can be dangerous and will do some "black magic". We need to talk about it before implementation. Possible solution: https://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert-Spring-config.

Actions #2

Updated by Vít Švanda over 6 years ago

  • Target version deleted (Diamond (7.4.0))
Actions #3

Updated by Radek Tomiška almost 6 years ago

  • Related to Task #1076: Add JodaTime to DATE and DATETIME types of EAV added
Actions #4

Updated by Radek Tomiška almost 6 years ago

  • % Done changed from 0 to 70

In ticket #1076 was added default conversion from string to almost all persistent types instead:
- DOUBLE - here can be different number separator (.,) - depends on locale
- BYTEARRAY - not implemented now

Actions

Also available in: Atom PDF