Class DefaultContextRequestHydrator

    • Constructor Detail

      • DefaultContextRequestHydrator

        public DefaultContextRequestHydrator()
    • Method Detail

      • setDataRouteReference

        @Autowired
        public void setDataRouteReference​(@Nullable
                                          com.broadleafcommerce.common.extension.data.DataRouteReference reference)
      • setEnvironment

        @Autowired
        public void setEnvironment​(@Nullable
                                   org.springframework.core.env.Environment environment)
      • setAttributesConverter

        @Autowired
        @Qualifier("authenticationAttributesConverter")
        public void setAttributesConverter​(@Nullable
                                           org.springframework.core.convert.converter.Converter<org.springframework.security.core.Authentication,​Map<String,​Object>> attributesConverter)
        Set the appropriate attributes converter for the policy utils.
        Parameters:
        attributesConverter - the attributes converter to set on policy utils
      • fetchFromCache

        protected Application fetchFromCache​(String applicationId,
                                             boolean processCatalog,
                                             boolean isProductionRequest)
      • determineCatalog

        protected void determineCatalog​(ContextRequest request)
        Given the requested catalog id (ContextRequest.getCatalogId()), figure out the correct Catalog instance to set on the ContextRequest. For example, for standard sites, the catalog will generally be the implicit catalog assigned to the site for the requested catalog. For global sites, the catalog will generally be the same as what was requested.
        Parameters:
        request - the request context
      • setupSiteInheritanceLines

        protected void setupSiteInheritanceLines​(Application application)
        Parameters:
        application - The recently fetched application instance