This is an old revision of the document!


Duplicate role

Role is duplicated by RoleDuplicateBulkAction bulk action. This action propagate DUPLICATE event type with content:

  • original source - contains the selected original role
  • content - contains duplicated role

Creating duplicate role is then propagated into registered (and enabled) entity event processors. Custom processors can be registered by the different module (or product processor can be disabled and overriden, see below).

Implemented processors in the product sorted by order of the processing:

@since 9.5.0

  • Event content: IdmRoleDto
  • Event type: DUPLICATE
  • Default order: -1000

Prepares role's basic properties.

Register custom processor after this processor's order, if some role property has to be overriden (or filled by different business logic).
## Enable / disable
idm.sec.core.processor.core-duplicate-role-prepare-processor.enabled=true

TODO: - all registered processors, orders, recursion, duplicate on the same vs. different environment. - registered processors tells the bulk action form attributes + attribute has module now for a localization. - entity state deleted - usage, prevent to remove account - create duplicate vs update duplicate - how to register new processor (example) - how to override processor + custom from test

  • by tomiskar