Search in sources :

Example 6 with IdmRoleCatalogue

use of eu.bcvsolutions.idm.core.model.entity.IdmRoleCatalogue in project CzechIdMng by bcvsolutions.

the class DefaultIdmRoleCatalogueService method findAllParents.

@Override
@Transactional(readOnly = true)
public List<IdmRoleCatalogueDto> findAllParents(UUID catalogueId) {
    IdmRoleCatalogue catalogue = this.getEntity(catalogueId);
    List<IdmRoleCatalogue> roleCatalogues = repository.findAllParents(catalogue, null);
    return toDtos(roleCatalogues, true);
}
Also used : IdmRoleCatalogue(eu.bcvsolutions.idm.core.model.entity.IdmRoleCatalogue) Transactional(org.springframework.transaction.annotation.Transactional)

Aggregations

IdmRoleCatalogue (eu.bcvsolutions.idm.core.model.entity.IdmRoleCatalogue)6 UUID (java.util.UUID)3 IdmRoleCatalogueRole (eu.bcvsolutions.idm.core.model.entity.IdmRoleCatalogueRole)2 Predicate (javax.persistence.criteria.Predicate)2 RoleType (eu.bcvsolutions.idm.core.api.domain.RoleType)1 ResultCodeException (eu.bcvsolutions.idm.core.api.exception.ResultCodeException)1 IdmForestIndexEntity (eu.bcvsolutions.idm.core.model.entity.IdmForestIndexEntity)1 IdmRoleComposition (eu.bcvsolutions.idm.core.model.entity.IdmRoleComposition)1 PageRequest (org.springframework.data.domain.PageRequest)1 Sort (org.springframework.data.domain.Sort)1 Transactional (org.springframework.transaction.annotation.Transactional)1