Class DefaultRestrictionAwareService

    • Constructor Detail

      • DefaultRestrictionAwareService

        public DefaultRestrictionAwareService()
    • Method Detail

      • execute

        public <T> T execute​(RestrictionData restrictionData,
                             java.util.function.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.
      • setRestrictionContextProvider

        public void setRestrictionContextProvider​(RestrictionContextProvider restrictionContextProvider)