Interface AccountAddressService<P extends AccountAddress>
- 
- All Superinterfaces:
 com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
 DefaultAccountAddressService
public interface AccountAddressService<P extends AccountAddress> extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>Service API forAccountAddresss. Supported byAccountAddressRepository.- Author:
 - Chris Kittrell (ckittrell)
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.data.domain.Page<P>readByAccountId(String accountId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Reads all of the AccountAddress relationships in the database associated with the given account ID.PreadByIdAndAccountId(String id, String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Finds theAccountAddresswhich has the given ID and account ID.- 
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort 
 - 
 
 - 
 
- 
- 
Method Detail
- 
readByAccountId
org.springframework.data.domain.Page<P> readByAccountId(String accountId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Reads all of the AccountAddress relationships in the database associated with the given account ID.- Parameters:
 accountId- the account ID to find the relationships forfilters- additional filters to apply in the query. Should beEmptyNodeif no additional filters should be applied.page- the requested page of results from the databasecontextInfo- the context to query within- Returns:
 - the AccountAddress relationships in the database that match the given account context ID
 
 
- 
readByIdAndAccountId
P readByIdAndAccountId(String id, String accountId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Finds theAccountAddresswhich has the given ID and account ID.- Parameters:
 id- the ID of theAccountAddressaccountId- the ID of the owningAccountcontextInfo- context surrounding customer and multitenant state- Returns:
 - the account address that has the given ID and owning account ID
 - Throws:
 com.broadleafcommerce.data.tracking.core.exception.EntityMissingException- if no suchAccountAddresswas found
 
 - 
 
 -