Task #2329
closedSupport multivalued role column in ImportCSVUserContractRolesTaskExecutor
100%
Description
- Column with roles is not multivalued as name insist
- When a role is assigned to all contracts of the user, values of the EAV column have to be empty - use boolean instead
- Use only for the main contract - add boolean property
- At line 138 there is used isEmpty method - better use StringUtils.isBlank()
- Default definition of eav is used - maybe in configuration add a property with the name of the definition
Related issues
Updated by Marek Klement over 4 years ago
- Related to Defect #2323: ImportCSVUserContractRolesTaskExecutor - Contract EAV is null instead of empty String added
Updated by Marek Klement over 4 years ago
- Assignee changed from Marek Klement to Roman Kubica
Updated by Roman Kubica over 4 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 60
Updated by Roman Kubica over 4 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Roman Kubica to Peter Štrunc
Updated by Roman Kubica over 4 years ago
- % Done changed from 60 to 70
Updated documentation: https://wiki.czechidm.com/tutorial/adm/assign_roles_to_contract_-_import_of_data_from_csv
Updated by Peter Štrunc over 4 years ago
- Status changed from Needs feedback to In Progress
- Assignee changed from Peter Štrunc to Roman Kubica
Thanks for the changes. It looks great. I have found few minor issues.
Please document in more detail what each type of role assignment (allContracts, primeContract or eavContract) does.
replace "eu.bcvsolutions.idm.core.model.entity.IdmIdentityContract" with IdmIdentityContract.class.getName()
There are few places with commmented unnecessary code. Please delete them.
I am postponing this feature to 2.6.0
Updated by Peter Štrunc over 4 years ago
- Target version changed from 2.5.0 to 2.6.0
Updated by Roman Kubica over 4 years ago
- Assignee changed from Roman Kubica to Peter Štrunc
- % Done changed from 70 to 90
Documentation updated.
Code updated.
Run tests.
Documentation: https://wiki.czechidm.com/tutorial/adm/assign_roles_to_contract_-_import_of_data_from_csv#fill_all_attributes
Updated by Peter Štrunc over 4 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
Looks great. Thanks. I merged it to develop.