Class DefaultRestrictionAwareService

java.lang.Object
de.hybris.platform.cmsfacades.common.service.impl.DefaultRestrictionAwareService
All Implemented Interfaces:
RestrictionAwareService

public class DefaultRestrictionAwareService extends Object implements RestrictionAwareService
Default implementation of RestrictionAwareService. Sets restriction information in the session during the execution of a supplier.
  • Constructor Details

    • DefaultRestrictionAwareService

      public DefaultRestrictionAwareService()
  • Method Details

    • execute

      public <T> T execute(RestrictionData restrictionData, Supplier<T> supplier)
      Description copied from interface: RestrictionAwareService
      Makes restriction data available during the execution of the provided supplier.
      Specified by:
      execute in interface RestrictionAwareService
      Type Parameters:
      T - The type returned by the supplier.
      Parameters:
      restrictionData - The restriction data to make available during the execution of the supplier.
      supplier - The supplier to execute.
      Returns:
      The value calculated by the supplier.
    • getRestrictionContextProvider

      protected RestrictionContextProvider getRestrictionContextProvider()
    • setRestrictionContextProvider

      public void setRestrictionContextProvider(RestrictionContextProvider restrictionContextProvider)