public interface CommerceQuoteDao extends GenericDao<QuoteModel>
QuoteModel| Modifier and Type | Method and Description |
|---|---|
SearchPageData<QuoteModel> |
findQuotesByCustomerAndStore(CustomerModel customerModel,
BaseStoreModel store,
PageableData pageableData,
java.util.Set<QuoteState> quoteStates)
Returns a paged list of maximum version (i.e.
|
SearchResult<QuoteModel> |
findQuotesExpired(java.util.Date currentDate,
QuoteNotificationType quoteNotificationType,
java.util.Set<QuoteState> quoteStates)
Returns a list of active (last version) quotes filtered by given statuses which are expired
|
SearchResult<QuoteModel> |
findQuotesSoonToExpire(java.util.Date expiredAfter,
java.util.Date expiredBy,
QuoteNotificationType quoteNotificationType,
java.util.Set<QuoteState> quoteStates)
Returns a list of active (last version) quotes filtered by given statuses which will expire by the specified date
|
QuoteModel |
findUniqueQuoteByCodeAndCustomerAndStore(CustomerModel customerModel,
BaseStoreModel store,
java.lang.String quoteCode,
java.util.Set<QuoteState> quoteStates)
Returns a unique quote of maximum version (i.e.
|
java.lang.Integer |
getQuotesCountForCustomerAndStore(CustomerModel customerModel,
BaseStoreModel store,
java.util.Set<QuoteState> quoteStates)
Returns the total number of quotes for the specified user and store.
|
SearchPageData<QuoteModel> findQuotesByCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, PageableData pageableData, java.util.Set<QuoteState> quoteStates)
customerModel - the customer to retrieve quotes forstore - the store to retrieve quotes forpageableData - the pagination settingsquoteStates - the quote states the user can accessjava.lang.IllegalArgumentException - if any of the parameters is null or the set of quote states is emptySearchResult<QuoteModel> findQuotesSoonToExpire(java.util.Date expiredAfter, java.util.Date expiredBy, QuoteNotificationType quoteNotificationType, java.util.Set<QuoteState> quoteStates)
expiredAfter - the date after which the quote is going to expireexpiredBy - the date before which the quote is going to expirequoteStates - the quote states the user can accessquoteNotificationType - the quote notification, for which we are getting quotes (quotes which have this notification set will be
excluded from the results)java.lang.IllegalArgumentException - if any of the parameters is null or the set of quote states is emptySearchResult<QuoteModel> findQuotesExpired(java.util.Date currentDate, QuoteNotificationType quoteNotificationType, java.util.Set<QuoteState> quoteStates)
currentDate - the current datequoteStates - the quote states the user can accessquoteNotificationType - the quote notification, for which we are getting quotes (quotes which have this notification set will be
excluded from the results)java.lang.IllegalArgumentException - if any of the parameters is null or the set of quote states is emptyQuoteModel findUniqueQuoteByCodeAndCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, java.lang.String quoteCode, java.util.Set<QuoteState> quoteStates)
customerModel - the customer to retrieve quotes forstore - the store to retrieve quotes forquoteCode - the quote code to search forquoteStates - the quote states the user can accessjava.lang.IllegalArgumentException - if any of the parameters is null or the set of quote states is emptyModelNotFoundException - if no results were foundAmbiguousIdentifierException - if more than one quote matches the search parametersjava.lang.Integer getQuotesCountForCustomerAndStore(CustomerModel customerModel, BaseStoreModel store, java.util.Set<QuoteState> quoteStates)
customerModel - the customer to get the quote count forstore - the store to get the quote count forquoteStates - the list of states the user can accessjava.lang.IllegalArgumentException - if any of the parameters is null or the set of quote states is emptyCopyright © 2018 SAP SE. All Rights Reserved.