Class DefaultCustomerGroupDao
- java.lang.Object
-
- de.hybris.platform.commerceservices.search.dao.impl.DefaultPagedGenericDao<CustomerModel>
-
- de.hybris.platform.assistedserviceservices.dao.impl.DefaultCustomerGroupDao
-
- All Implemented Interfaces:
CustomerGroupDao
,PagedGenericDao<CustomerModel>
public class DefaultCustomerGroupDao extends DefaultPagedGenericDao<CustomerModel> implements CustomerGroupDao
Concrete implementation for the customer group Dao
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
CURRENTDATE
protected static java.lang.String
DELIVERY_STATUS
protected static java.lang.String
GROUPS_UID
protected static java.lang.String
LOGINDISABLED_PARAMETER
protected static java.lang.String
SORT_BY_CREATIONTIME_DESC
protected static java.lang.String
SORT_BY_NAME_ASC
protected static java.lang.String
SORT_BY_NAME_DESC
protected static java.lang.String
SORT_BY_ODER_DATE_ASC
protected static java.lang.String
SORT_BY_ORDER_DATE_DESC
-
Constructor Summary
Constructors Constructor Description DefaultCustomerGroupDao(java.lang.String typeCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
createQuery(java.lang.String... queryClauses)
<T extends CustomerModel>
SearchPageData<T>findAllCustomersByConsignmentsInPointOfServices(java.util.List<PointOfServiceModel> poses, PageableData pageableData)
Get paginated customers for specific pos-list where customer have a consignment.<T extends CustomerModel>
SearchPageData<T>findAllCustomersByGroups(java.util.List<UserGroupModel> groups, PageableData pageableData)
Get paginated customers for specific customer listprotected java.lang.String
getDeliveryStatus()
protected TimeService
getTimeService()
void
setTimeService(TimeService timeService)
-
Methods inherited from class de.hybris.platform.commerceservices.search.dao.impl.DefaultPagedGenericDao
appendOrderByClausesToBuilder, appendWhereClausesToBuilder, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createQueryString, createSortQueryData, createSortQueryData, createSortQueryData, find, find, find, find, getPagedFlexibleSearchService, setPagedFlexibleSearchService
-
-
-
-
Field Detail
-
SORT_BY_NAME_ASC
protected static final java.lang.String SORT_BY_NAME_ASC
- See Also:
- Constant Field Values
-
SORT_BY_NAME_DESC
protected static final java.lang.String SORT_BY_NAME_DESC
- See Also:
- Constant Field Values
-
SORT_BY_ODER_DATE_ASC
protected static final java.lang.String SORT_BY_ODER_DATE_ASC
- See Also:
- Constant Field Values
-
SORT_BY_ORDER_DATE_DESC
protected static final java.lang.String SORT_BY_ORDER_DATE_DESC
- See Also:
- Constant Field Values
-
SORT_BY_CREATIONTIME_DESC
protected static final java.lang.String SORT_BY_CREATIONTIME_DESC
- See Also:
- Constant Field Values
-
GROUPS_UID
protected static final java.lang.String GROUPS_UID
- See Also:
- Constant Field Values
-
CURRENTDATE
protected static final java.lang.String CURRENTDATE
- See Also:
- Constant Field Values
-
DELIVERY_STATUS
protected static final java.lang.String DELIVERY_STATUS
- See Also:
- Constant Field Values
-
LOGINDISABLED_PARAMETER
protected static final java.lang.String LOGINDISABLED_PARAMETER
- See Also:
- Constant Field Values
-
-
Method Detail
-
findAllCustomersByGroups
public <T extends CustomerModel> SearchPageData<T> findAllCustomersByGroups(java.util.List<UserGroupModel> groups, PageableData pageableData)
Description copied from interface:CustomerGroupDao
Get paginated customers for specific customer list- Specified by:
findAllCustomersByGroups
in interfaceCustomerGroupDao
- Parameters:
groups
- groups that we want to get customers forpageableData
- paging information- Returns:
- customer model search page data
-
findAllCustomersByConsignmentsInPointOfServices
public <T extends CustomerModel> SearchPageData<T> findAllCustomersByConsignmentsInPointOfServices(java.util.List<PointOfServiceModel> poses, PageableData pageableData)
Description copied from interface:CustomerGroupDao
Get paginated customers for specific pos-list where customer have a consignment.- Specified by:
findAllCustomersByConsignmentsInPointOfServices
in interfaceCustomerGroupDao
- Parameters:
poses
- POS-es with employee belongs topageableData
- paging information- Returns:
- customer model search page data
-
createQuery
protected java.lang.String createQuery(java.lang.String... queryClauses)
-
getDeliveryStatus
protected java.lang.String getDeliveryStatus()
-
getTimeService
protected TimeService getTimeService()
-
setTimeService
public void setTimeService(TimeService timeService)
-
-