Package org.openiam.esb.core.service
Interface GetBeansService<DTO extends KeyDTO,ENTITY extends KeyEntity,KeyType extends Serializable,SEARCH_BEAN extends SearchBean<DTO,KeyType>>
-
- Type Parameters:
DTO- - extendsKeyDTO- this is Type of objects that will be delivered by service to external usage.ENTITY- - extendsKeyEntitythis is Type of persistent Objects that is represent DB model for ObjectKeyType- - Type of Primary key ofGetBeansServiceSEARCH_BEAN- - Type ofSearchBean- search bean that used to search for ObjectsGetBeansService.
- All Known Subinterfaces:
AccessCertificationService,BusinessRuleService,BusinessRuleTargetService,GetBeansElasticsearchService<DTO,ENTITY,KeyType,SEARCH_BEAN>,GetEntitlementBeansService<DTO,ENTITY,KeyType,SEARCH_BEAN>,GroupDataService,MailboxConfigurationService,MailboxConfigurationTemplateService,ManagedSystemService,MetadataElementService,MetadataTypeService,OrganizationService,OTPProviderService,ResourceService,RoleDataService,SelfRegistrationWorkflowService
- All Known Implementing Classes:
AbstractBusinessRuleServiceImpl,AbstractDetachableBeansServiceImpl,AbstractEntitlementGetBeansServiceImpl,AbstractKeyGetBeansElasticsearchServiceImpl,AbstractKeyGetBeansServiceImpl,AbstractOwnerAdminBeansServiceImpl,AccessCertificationServiceImpl,BusinessRuleServiceImpl,BusinessRuleTargetServiceImpl,GroupDataServiceImpl,MailboxConfigurationServiceImpl,MailboxConfigurationTemplateServiceImpl,ManagedSystemServiceImpl,MetadataElementServiceImpl,MetadataTypeServiceImpl,OrganizationServiceImpl,OTPProviderServiceImpl,ResourceServiceImpl,RoleDataServiceImpl,SelfRegistrationWorkflowServiceImpl
public interface GetBeansService<DTO extends KeyDTO,ENTITY extends KeyEntity,KeyType extends Serializable,SEARCH_BEAN extends SearchBean<DTO,KeyType>>Service is used for get/search method of Services implementation that works with JPA ObjectGetBeansServiceand delivery it's representation asGetBeansService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountBeans(SEARCH_BEAN searchBean)method is used to retrieve number of objects that satisfiedGetBeansServiceconditions.org.springframework.data.domain.Page<DTO>find(SEARCH_BEAN searchBean, int from, int size)Method is used to retrieve list ofGetBeansServiceobjects based onGetBeansServiceif instance ofGetBeansServiceis NULL the result ofPage.empty().org.springframework.data.domain.Page<DTO>findBeans(SEARCH_BEAN searchBean, boolean deepCopy, int from, int size)Method is used to retrieve list ofGetBeansServiceobjects based onGetBeansServiceif instance ofGetBeansServiceis NULL the result ofPage.empty().org.springframework.data.domain.Page<ENTITY>findBeans(SEARCH_BEAN searchBean, int from, int size)Method is used to retrieve list ofGetBeansServiceobjects based onGetBeansServiceif instance ofGetBeansServiceis NULL the result ofPage.empty().DTOget(String id)Get DTO by Id from DB
-
-
-
Method Detail
-
findBeans
org.springframework.data.domain.Page<DTO> findBeans(SEARCH_BEAN searchBean, boolean deepCopy, int from, int size)
Method is used to retrieve list ofGetBeansServiceobjects based onGetBeansServiceif instance ofGetBeansServiceis NULL the result ofPage.empty().- Parameters:
searchBean- - search bean that used to search for ObjectsGetBeansService.deepCopy- - deepCopy of return objects.from- - paging - from element numbersize- - paging - size of page- Returns:
- -
PageofGetBeansService
-
find
org.springframework.data.domain.Page<DTO> find(SEARCH_BEAN searchBean, int from, int size)
Method is used to retrieve list ofGetBeansServiceobjects based onGetBeansServiceif instance ofGetBeansServiceis NULL the result ofPage.empty().- Parameters:
searchBean- - search bean that used to search for ObjectsGetBeansService.from- - paging - from element numbersize- - paging - size of page- Returns:
- -
PageofGetBeansService
-
findBeans
org.springframework.data.domain.Page<ENTITY> findBeans(SEARCH_BEAN searchBean, int from, int size)
Method is used to retrieve list ofGetBeansServiceobjects based onGetBeansServiceif instance ofGetBeansServiceis NULL the result ofPage.empty().- Parameters:
searchBean- - search bean that used to search for ObjectsGetBeansService.from- - paging - from element numbersize- - paging - size of page- Returns:
- -
PageofGetBeansService
-
countBeans
int countBeans(SEARCH_BEAN searchBean)
method is used to retrieve number of objects that satisfiedGetBeansServiceconditions.- Parameters:
searchBean- - input searchBean- Returns:
- - number of objects that satisfy search bean conditions
-
-