Search in sources :

Example 1 with SysProvisioningBreakRecipientFilter

use of eu.bcvsolutions.idm.acc.dto.filter.SysProvisioningBreakRecipientFilter in project CzechIdMng by bcvsolutions.

the class IdentityDeleteProcessor method deleteProvisioningRecipients.

/**
 * Method remove all provisioning recipient for identity id given in parameter
 *
 * @param identityId
 */
private void deleteProvisioningRecipients(UUID identityId) {
    SysProvisioningBreakRecipientFilter filter = new SysProvisioningBreakRecipientFilter();
    filter.setIdentityId(identityId);
    for (SysProvisioningBreakRecipientDto recipient : provisioningBreakRecipientService.find(filter, null).getContent()) {
        LOG.debug("Remove recipient from provisioning break [{}]", recipient.getId());
        provisioningBreakRecipientService.delete(recipient);
    }
}
Also used : SysProvisioningBreakRecipientDto(eu.bcvsolutions.idm.acc.dto.SysProvisioningBreakRecipientDto) SysProvisioningBreakRecipientFilter(eu.bcvsolutions.idm.acc.dto.filter.SysProvisioningBreakRecipientFilter)

Example 2 with SysProvisioningBreakRecipientFilter

use of eu.bcvsolutions.idm.acc.dto.filter.SysProvisioningBreakRecipientFilter in project CzechIdMng by bcvsolutions.

the class RoleDeleteProcessor method deleteProvisioningRecipient.

/**
 * Method remove all provisioning recipient for role id given in parameter
 *
 * @param identityId
 */
private void deleteProvisioningRecipient(UUID roleId) {
    SysProvisioningBreakRecipientFilter filter = new SysProvisioningBreakRecipientFilter();
    filter.setRoleId(roleId);
    for (SysProvisioningBreakRecipientDto recipient : provisioningBreakRecipientService.find(filter, null).getContent()) {
        LOG.debug("Remove recipient from provisioning break [{}]", recipient.getId());
        provisioningBreakRecipientService.delete(recipient);
    }
}
Also used : SysProvisioningBreakRecipientDto(eu.bcvsolutions.idm.acc.dto.SysProvisioningBreakRecipientDto) SysProvisioningBreakRecipientFilter(eu.bcvsolutions.idm.acc.dto.filter.SysProvisioningBreakRecipientFilter)

Example 3 with SysProvisioningBreakRecipientFilter

use of eu.bcvsolutions.idm.acc.dto.filter.SysProvisioningBreakRecipientFilter in project CzechIdMng by bcvsolutions.

the class DefaultSysProvisioningBreakRecipientService method findAllByBreakConfig.

@Override
public List<SysProvisioningBreakRecipientDto> findAllByBreakConfig(UUID provisioningBreakConfig) {
    SysProvisioningBreakRecipientFilter filter = new SysProvisioningBreakRecipientFilter();
    filter.setBreakConfigId(provisioningBreakConfig);
    // 
    return this.find(filter, null).getContent();
}
Also used : SysProvisioningBreakRecipientFilter(eu.bcvsolutions.idm.acc.dto.filter.SysProvisioningBreakRecipientFilter)

Aggregations

SysProvisioningBreakRecipientFilter (eu.bcvsolutions.idm.acc.dto.filter.SysProvisioningBreakRecipientFilter)3 SysProvisioningBreakRecipientDto (eu.bcvsolutions.idm.acc.dto.SysProvisioningBreakRecipientDto)2