Search in sources :

Example 1 with ProvisioningEvent

use of eu.bcvsolutions.idm.acc.event.ProvisioningEvent in project CzechIdMng by bcvsolutions.

the class AbstractProvisioningExecutor method doProvisioning.

@Override
public void doProvisioning(AccAccountDto account, DTO dto) {
    Assert.notNull(account, "Account cannot be null!");
    Assert.notNull(dto, "Dto cannot be null");
    // 
    LOG.debug("Start provisioning for account [{}]", account.getUid());
    entityEventManager.process(new ProvisioningEvent(ProvisioningEvent.ProvisioningEventType.START, account, ImmutableMap.of(ProvisioningService.DTO_PROPERTY_NAME, dto)));
}
Also used : ProvisioningEvent(eu.bcvsolutions.idm.acc.event.ProvisioningEvent)

Example 2 with ProvisioningEvent

use of eu.bcvsolutions.idm.acc.event.ProvisioningEvent in project CzechIdMng by bcvsolutions.

the class AbstractProvisioningExecutor method doProvisioning.

@Override
public EventContext<AccAccountDto> doProvisioning(AccAccountDto account, DTO dto, Map<String, Serializable> properties) {
    Assert.notNull(account, "Account cannot be null!");
    Assert.notNull(dto, "Dto cannot be null");
    // 
    LOG.debug("Start provisioning for account [{}]", account.getUid());
    Map<String, Serializable> fullProperties = ImmutableMap.<String, Serializable>builder().putAll(properties).put(ProvisioningService.DTO_PROPERTY_NAME, dto).build();
    return entityEventManager.process(new ProvisioningEvent(ProvisioningEvent.ProvisioningEventType.START, account, fullProperties));
}
Also used : Serializable(java.io.Serializable) ProvisioningEvent(eu.bcvsolutions.idm.acc.event.ProvisioningEvent) GuardedString(eu.bcvsolutions.idm.core.security.api.domain.GuardedString)

Aggregations

ProvisioningEvent (eu.bcvsolutions.idm.acc.event.ProvisioningEvent)2 GuardedString (eu.bcvsolutions.idm.core.security.api.domain.GuardedString)1 Serializable (java.io.Serializable)1