Package org.openiam.esb.repository.impl
Class ApproverAssociationRepositoryImpl
- java.lang.Object
-
- org.openiam.esb.repository.impl.AbstractKeyEntityRepositoryImpl<ApproverAssociationEntity,ApproverAssociationSearchBean>
-
- org.openiam.esb.repository.impl.ApproverAssociationRepositoryImpl
-
- All Implemented Interfaces:
AbstractKeyEntityCustomRepository<ApproverAssociationEntity,String>
,ApproverAssociationRepositoryCustom
,FindBeansRepositoryCustom<ApproverAssociationEntity,ApproverAssociationSearchBean>
public class ApproverAssociationRepositoryImpl extends AbstractKeyEntityRepositoryImpl<ApproverAssociationEntity,ApproverAssociationSearchBean> implements ApproverAssociationRepositoryCustom
This is repository for working with ApproverAssociationEntity- Author:
- Anton Novikov
-
-
Field Summary
-
Fields inherited from class org.openiam.esb.repository.impl.AbstractKeyEntityRepositoryImpl
LOG
-
-
Constructor Summary
Constructors Constructor Description ApproverAssociationRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.data.jpa.domain.Specification<ApproverAssociationEntity>
buildSpecifications(ApproverAssociationSearchBean sb)
List<ApproverAssociationEntity>
findByAssociationEntityId(String associationEntityId)
protected Class<ApproverAssociationEntity>
getEntityClass()
protected AbstractKeyEntityRepository<ApproverAssociationEntity,String>
getRepository()
void
removeApproverAssociations(String associationEntityId, List<String> approverIdList)
Remove Approver Associations.-
Methods inherited from class org.openiam.esb.repository.impl.AbstractKeyEntityRepositoryImpl
between, between, booleanEquals, booleanEquals, booleanEquals, buildPredicate, buildSpecification, buildSpecification, buildSpecification, count, dateBetween, evict, evict, evict, find, find, findByIdIn, ge, getPKfieldName, getSort, greaterThan, greaterThanOrEquals, gt, idSpecification, idSpecification, in, in, isCaseInSensitiveDatabase, isEmpty, isNotEmpty, isNull, isOracle, isValidSearchBean, le, lessThan, lessThanOrEquals, lt, notIn, objectBetween, objectEquals, objectEquals, stringEquals, stringEquals, stringEquals
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openiam.esb.repository.custom.AbstractKeyEntityCustomRepository
findByIdIn
-
Methods inherited from interface org.openiam.esb.repository.custom.FindBeansRepositoryCustom
count, find, find, find, getByExample, getByExample, isValidSearchBean
-
-
-
-
Method Detail
-
buildSpecifications
protected org.springframework.data.jpa.domain.Specification<ApproverAssociationEntity> buildSpecifications(ApproverAssociationSearchBean sb)
-
getRepository
protected AbstractKeyEntityRepository<ApproverAssociationEntity,String> getRepository()
- Specified by:
getRepository
in classAbstractKeyEntityRepositoryImpl<ApproverAssociationEntity,ApproverAssociationSearchBean>
-
getEntityClass
protected Class<ApproverAssociationEntity> getEntityClass()
- Specified by:
getEntityClass
in classAbstractKeyEntityRepositoryImpl<ApproverAssociationEntity,ApproverAssociationSearchBean>
-
removeApproverAssociations
@Transactional public void removeApproverAssociations(String associationEntityId, List<String> approverIdList)
Remove Approver Associations.- Specified by:
removeApproverAssociations
in interfaceApproverAssociationRepositoryCustom
- Parameters:
associationEntityId
- ID of target object, can be null.approverIdList
- IDs of approvers, it can be IDs of users, groups, roles, etc. depending on approver entity type. Can be null.
-
findByAssociationEntityId
public List<ApproverAssociationEntity> findByAssociationEntityId(String associationEntityId)
- Specified by:
findByAssociationEntityId
in interfaceApproverAssociationRepositoryCustom
-
-