Package org.openiam.esb.repository
Interface IDetacheableEntityRepository<T extends Serializable,K extends Serializable>
-
- Type Parameters:
T
- - Entity typeK
- - Entity's Key type
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,K>
,org.springframework.data.jpa.repository.JpaRepository<T,K>
,org.springframework.data.repository.PagingAndSortingRepository<T,K>
,org.springframework.data.repository.query.QueryByExampleExecutor<T>
,org.springframework.data.repository.Repository<T,K>
- All Known Subinterfaces:
GroupRepository
,OrganizationRepository
,RoleRepository
@NoRepositoryBean public interface IDetacheableEntityRepository<T extends Serializable,K extends Serializable> extends org.springframework.data.jpa.repository.JpaRepository<T,K>
Interface is used for entities that may provide access to any user to any resource.- Author:
- zaporozhec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.data.domain.Page<T>
getDetachedForUser(String userId, String name, org.springframework.data.domain.Pageable page)
method is used to getPage
ofIDetacheableEntityRepository
objects for user #userD that not provide any access to resources.-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
-
-
-
-
Method Detail
-
getDetachedForUser
org.springframework.data.domain.Page<T> getDetachedForUser(String userId, String name, org.springframework.data.domain.Pageable page)
method is used to getPage
ofIDetacheableEntityRepository
objects for user #userD that not provide any access to resources. Simply you can get all T objects that linked with given user and not linked with any resources. UI need this as separate use cases, because such entitlements more useless than gives any customization.- Parameters:
userId
- - id of User to check detached entitlementsname
- - name for case INSENSITIVE CONTAINS match search.page
- -Pageable
for paging- Returns:
- -
Page
with results;
-
-