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);
}
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());
}
Aggregations