Class DefaultAccountAddressService<P extends AccountAddress>
- java.lang.Object
 - 
- com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
 - 
- com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
 - 
- com.broadleafcommerce.customer.service.DefaultAccountAddressService<P>
 
 
 
 
- 
- All Implemented Interfaces:
 AccountAddressService<P>,com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
public class DefaultAccountAddressService<P extends AccountAddress> extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P> implements AccountAddressService<P>
Default implementation of theAccountAddressService.- Author:
 - Chris Kittrell (ckittrell)
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultAccountAddressService(AccountAddressRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pcreate(P accountAddress, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)protected AccountAddressRepository<com.broadleafcommerce.data.tracking.core.Trackable>getRepository()org.springframework.data.domain.Page<P>readByAccountId(@NonNull 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(@NonNull String id, @NonNull String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Finds theAccountAddresswhich has the given ID and account ID.Preplace(@NonNull String accountAddressId, P accountAddress, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)- 
Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService
getRsqlHelper, readAll, readAll, readAll, readAll 
- 
Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, createAll, createAllAllowingPartialSuccess, delete, getHelper, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSort 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
DefaultAccountAddressService
public DefaultAccountAddressService(AccountAddressRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
 
 - 
 
- 
Method Detail
- 
create
@Transactional("customerTransactionManager") public P create(@NonNull P accountAddress, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)- Specified by:
 createin interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends AccountAddress>- Overrides:
 createin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends AccountAddress>
 
- 
replace
@Transactional("customerTransactionManager") public P replace(@NonNull @NonNull String accountAddressId, @NonNull P accountAddress, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)- Specified by:
 replacein interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends AccountAddress>- Overrides:
 replacein classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends AccountAddress>
 
- 
readByAccountId
public org.springframework.data.domain.Page<P> readByAccountId(@NonNull @NonNull 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)
Description copied from interface:AccountAddressServiceReads all of the AccountAddress relationships in the database associated with the given account ID.- Specified by:
 readByAccountIdin interfaceAccountAddressService<P extends AccountAddress>- 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
public P readByIdAndAccountId(@NonNull @NonNull String id, @NonNull @NonNull String accountId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Description copied from interface:AccountAddressServiceFinds theAccountAddresswhich has the given ID and account ID.- Specified by:
 readByIdAndAccountIdin interfaceAccountAddressService<P extends AccountAddress>- 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
 
 
- 
getRepository
@NonNull protected AccountAddressRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepository()
- Overrides:
 getRepositoryin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends AccountAddress>
 
 - 
 
 -