Interface AccountRoleService<P extends AccountRole>

All Known Implementing Classes:
DefaultAccountRoleService

public interface AccountRoleService<P extends AccountRole>
Methods to read and update AccountRoles.
Author:
Cade Rea (cade-rea)
  • Method Summary

    Modifier and Type
    Method
    Description
    readAllByAccountIdIn(Collection<String> accountIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Read all AccountRoles for the given account ids.
    org.springframework.data.domain.Page<P>
    readByAccountId(String accountId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Read AccountRoles for the given account id.
    replace(P accountRole, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Update the given AccountRole in the database.
    void
    updateAll(List<? extends P> accountRoles, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Update all given AccountRoles in the database.
  • Method Details

    • readByAccountId

      org.springframework.data.domain.Page<P> readByAccountId(String accountId, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read AccountRoles for the given account id. This returns all AccountRoles from all users that are members of the given account.
      Parameters:
      accountId - The id of the account to lookup roles.
      page - information about which page of results to return from the database.
      contextInfo - Context information for data tracking.
      Returns:
      Page of AccountRoles for the given account id.
    • readAllByAccountIdIn

      List<P> readAllByAccountIdIn(Collection<String> accountIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read all AccountRoles for the given account ids. This returns all AccountRoles from all users that are members of the given account.
      Parameters:
      accountIds - The ids of the accounts to lookup roles for.
      contextInfo - Context information for data tracking.
      Returns:
      List of AccountRoles for the given account ids.
    • replace

      P replace(P accountRole, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Update the given AccountRole in the database.
      Parameters:
      accountRole - The AccountRole to update.
      contextInfo - Context information for data tracking.
      Returns:
      The updated and persisted AccountRole.
    • updateAll

      void updateAll(List<? extends P> accountRoles, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Update all given AccountRoles in the database.
      Parameters:
      accountRoles - The list of AccountRoles to update.
      contextInfo - Context information for data tracking.