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 for AccountAddresss. Supported by AccountAddressRepository.
Author:
Chris Kittrell (ckittrell)
  • Method Summary

    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.
    readByIdAndAccountId(String id, String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds the AccountAddress which 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

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService

    readAll, readAll, readAll, readAll
  • Method Details

    • 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 for
      filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
      page - the requested page of results from the database
      contextInfo - 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 the AccountAddress which has the given ID and account ID.
      Parameters:
      id - the ID of the AccountAddress
      accountId - the ID of the owning Account
      contextInfo - 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 such AccountAddress was found