Class BroadleafAdminTypedEntityRequestFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
org.broadleafcommerce.common.web.filter.AbstractIgnorableOncePerRequestFilter
org.broadleafcommerce.openadmin.web.filter.AbstractBroadleafAdminRequestFilter
org.broadleafcommerce.openadmin.web.filter.BroadleafAdminTypedEntityRequestFilter
All Implemented Interfaces:
jakarta.servlet.Filter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable, org.springframework.core.Ordered, org.springframework.web.context.ServletContextAware

@Component("blAdminTypedEntityRequestFilter") public class BroadleafAdminTypedEntityRequestFilter extends AbstractBroadleafAdminRequestFilter
Responsible for setting the necessary attributes on the BroadleafRequestContext
Author:
Jon Fleschler (jfleschler)
  • Field Details

    • requestProcessor

      @Autowired @Qualifier("blAdminRequestProcessor") protected org.broadleafcommerce.common.web.BroadleafWebRequestProcessor requestProcessor
    • adminNavigationService

      @Autowired @Qualifier("blAdminNavigationService") protected AdminNavigationService adminNavigationService
    • adminRemoteSecurityService

      @Autowired @Qualifier("blAdminSecurityRemoteService") protected SecurityVerifier adminRemoteSecurityService
  • Constructor Details

    • BroadleafAdminTypedEntityRequestFilter

      public BroadleafAdminTypedEntityRequestFilter()
  • Method Details

    • doFilterInternalUnlessIgnored

      public void doFilterInternalUnlessIgnored(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doFilterInternalUnlessIgnored in class org.broadleafcommerce.common.web.filter.AbstractIgnorableOncePerRequestFilter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • isRequestForTypedEntity

      public boolean isRequestForTypedEntity(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException
      Throws:
      jakarta.servlet.ServletException
      IOException
    • getTypedEntityFromServletPathId

      protected org.broadleafcommerce.common.admin.domain.TypedEntity getTypedEntityFromServletPathId(String servletPath, String ceilingEntity)
    • getTypeAdminSectionMismatchUrl

      protected String getTypeAdminSectionMismatchUrl(org.broadleafcommerce.common.admin.domain.TypedEntity typedEntity, String ceilingEntity, String uri, String sectionKey)
    • typeMatchesAdminSection

      protected boolean typeMatchesAdminSection(org.broadleafcommerce.common.admin.domain.TypedEntity typedEntity, String sectionKey)
    • adminUserHasAccess

      protected boolean adminUserHasAccess(AdminSection typedEntitySection)
    • getEntityTypeFromRequest

      protected String getEntityTypeFromRequest(jakarta.servlet.http.HttpServletRequest request)
    • getSectionKeyFromRequest

      protected String getSectionKeyFromRequest(jakarta.servlet.http.HttpServletRequest request)
    • getTypeFieldName

      protected String getTypeFieldName(AdminSection adminSection)
    • getDynamicEntityDao

      protected DynamicEntityDao getDynamicEntityDao(String className)
    • getOrder

      public int getOrder()