Class CustomerAccountRoleEndpoint

java.lang.Object
com.broadleafcommerce.auth.user.web.endpoint.CustomerAccountRoleEndpoint

@FrameworkRestController @FrameworkMapping("/accounts/roles") @DataRouteByExample(AccountRole.class) public class CustomerAccountRoleEndpoint extends Object
Endpoint for reading account roles from a customer facing perspective.
Author:
Cade Rea (cade-rea)
  • Field Details

  • Constructor Details

  • Method Details

    • readAccountRoles

      @FrameworkGetMapping @Policy(permissionRoots="ACCOUNT_USERS") public List<UserRole> readAccountRoles(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • readAccountRole

      @FrameworkGetMapping("/{roleId}") @Policy(permissionRoots="ACCOUNT_USERS") public UserRole readAccountRole(@PathVariable String roleId, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)