Search in sources :

Example 1 with SysSystemGroupFilter

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

the class DefaultSysSystemGroupService method getByCode.

@Override
public SysSystemGroupDto getByCode(String code) {
    SysSystemGroupFilter filter = new SysSystemGroupFilter();
    filter.setCodeableIdentifier(code);
    return find(filter, PageRequest.of(0, 1)).getContent().stream().findFirst().orElse(null);
}
Also used : SysSystemGroupFilter(eu.bcvsolutions.idm.acc.dto.filter.SysSystemGroupFilter)

Example 2 with SysSystemGroupFilter

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

the class DefaultAccTestHelper method cleaner.

/**
 * Manual delete of all automatic roles, sync, mappings. Because previous tests didn't make a delete well.
 */
@Override
public void cleaner() {
    // Delete all automatic roles.
    roleTreeNodeService.deleteAll(roleTreeNodeService.find(new IdmRoleTreeNodeFilter(), null).getContent());
    automaticRoleAttributeService.deleteAll(automaticRoleAttributeService.find(new IdmRoleTreeNodeFilter(), null).getContent());
    // Delete all syncs.
    syncConfigService.deleteAll(syncConfigService.find(new SysSyncConfigFilter(), null).getContent());
    // Delete all groups.
    systemGroupService.deleteAll(systemGroupService.find(new SysSystemGroupFilter(), null));
    // Delete all mappings.
    systemMappingService.deleteAll(systemMappingService.find(new SysSystemMappingFilter(), null).getContent());
    // Delete all uniform password definitions.
    uniformPasswordService.deleteAll(uniformPasswordService.find(new AccUniformPasswordFilter(), null).getContent());
}
Also used : IdmRoleTreeNodeFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmRoleTreeNodeFilter) SysSystemMappingFilter(eu.bcvsolutions.idm.acc.dto.filter.SysSystemMappingFilter) SysSystemGroupFilter(eu.bcvsolutions.idm.acc.dto.filter.SysSystemGroupFilter) SysSyncConfigFilter(eu.bcvsolutions.idm.acc.dto.filter.SysSyncConfigFilter) AccUniformPasswordFilter(eu.bcvsolutions.idm.acc.dto.filter.AccUniformPasswordFilter)

Aggregations

SysSystemGroupFilter (eu.bcvsolutions.idm.acc.dto.filter.SysSystemGroupFilter)2 AccUniformPasswordFilter (eu.bcvsolutions.idm.acc.dto.filter.AccUniformPasswordFilter)1 SysSyncConfigFilter (eu.bcvsolutions.idm.acc.dto.filter.SysSyncConfigFilter)1 SysSystemMappingFilter (eu.bcvsolutions.idm.acc.dto.filter.SysSystemMappingFilter)1 IdmRoleTreeNodeFilter (eu.bcvsolutions.idm.core.api.dto.filter.IdmRoleTreeNodeFilter)1