Class SimpleDistributionRequest

java.lang.Object
org.apache.sling.distribution.SimpleDistributionRequest
All Implemented Interfaces:
DistributionRequest

@ProviderType public final class SimpleDistributionRequest extends Object implements DistributionRequest
A SimpleDistributionRequest is a DistributionRequest where all paths are either "deep" or "shallow".
  • Constructor Details

    • SimpleDistributionRequest

      public SimpleDistributionRequest(DistributionRequestType requestType, boolean isDeep, String... paths)
      Creates distribution request with "deep" or "shallow" paths.
      Parameters:
      requestType - the request type
      isDeep - is true if all paths are "deep" and is false if all paths are "shallow"
      paths - the array of paths to be distributed
    • SimpleDistributionRequest

      public SimpleDistributionRequest(DistributionRequestType requestType, String... paths)
      Creates a distribution request with "shallow" paths.
      Parameters:
      requestType - the request type
      paths - the array of paths to be distributed
    • SimpleDistributionRequest

      public SimpleDistributionRequest(DistributionRequestType requestType, String[] paths, Set<String> deepPaths)
      Creates a distribution request with additional "deep" paths.
      Parameters:
      requestType - the request type
      paths - the array of paths to be distributed
      deepPaths - the set of paths that are to be distributed in depth (with all their children)
    • SimpleDistributionRequest

      public SimpleDistributionRequest(DistributionRequestType requestType, String[] paths, Set<String> deepPaths, Map<String,String[]> pathFilters)
      Creates a distribution request with "deep" paths and filters.
      Parameters:
      requestType - the request type
      paths - the array of paths to be distributed
      deepPaths - the set of paths that are to be distributed in depth (with all their children)
      pathFilters - the filters applicable for each path
  • Method Details