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
- - extendsKeyEntity
this is Type of persistent Objects that is represent DB model for ObjectKeyType
- - Type of Primary key ofGetBeansService
SEARCH_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 ObjectGetBeansService
and delivery it's representation asGetBeansService
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
countBeans(SEARCH_BEAN searchBean)
method is used to retrieve number of objects that satisfiedGetBeansService
conditions.org.springframework.data.domain.Page<DTO>
find(SEARCH_BEAN searchBean, int from, int size)
Method is used to retrieve list ofGetBeansService
objects based onGetBeansService
if instance ofGetBeansService
is 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 ofGetBeansService
objects based onGetBeansService
if instance ofGetBeansService
is 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 ofGetBeansService
objects based onGetBeansService
if instance ofGetBeansService
is NULL the result ofPage.empty()
.DTO
get(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 ofGetBeansService
objects based onGetBeansService
if instance ofGetBeansService
is 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:
- -
Page
ofGetBeansService
-
find
org.springframework.data.domain.Page<DTO> find(SEARCH_BEAN searchBean, int from, int size)
Method is used to retrieve list ofGetBeansService
objects based onGetBeansService
if instance ofGetBeansService
is 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:
- -
Page
ofGetBeansService
-
findBeans
org.springframework.data.domain.Page<ENTITY> findBeans(SEARCH_BEAN searchBean, int from, int size)
Method is used to retrieve list ofGetBeansService
objects based onGetBeansService
if instance ofGetBeansService
is 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:
- -
Page
ofGetBeansService
-
countBeans
int countBeans(SEARCH_BEAN searchBean)
method is used to retrieve number of objects that satisfiedGetBeansService
conditions.- Parameters:
searchBean
- - input searchBean- Returns:
- - number of objects that satisfy search bean conditions
-
-