Interface BlueprintManager


public interface BlueprintManager
Provides a Service to access Blueprints. The Object is bound to a ResourceResolver, it my be accesses via the Managers BlueprintManagerFactory.getBlueprintManager(org.apache.sling.api.resource.ResourceResolver) Factory Method}
Since:
5.4
See Also:
  • Method Details

    • getBlueprints

      Collection<Blueprint> getBlueprints() throws WCMException
      Returns:
      all Blueprints available int the System
      Throws:
      WCMException - in case of error
    • getBlueprint

      Blueprint getBlueprint(String absPath) throws WCMException
      Access the Blueprint that is stored at the given Path argument.
      If a Blueprint can be accessed, the Blueprint's path must be the same as the argument.
      Parameters:
      absPath - the absolute Path the blueprint should be stored at
      Returns:
      the Blueprint for the given Path or null if Resource at Path is not a Blueprint
      Throws:
      WCMException - in case of error
      See Also:
    • getContainingBlueprint

      Blueprint getContainingBlueprint(String path) throws WCMException
      Try to access a Blueprint for a given Resource
      A Blueprint is found if the Resource is equal or a descendant of the Blueprint.getSitePath() Blueprint's SitePath}.
      Parameters:
      path - to find the Blueprint for
      Returns:
      the Blueprint containing the path or null if no Blueprint is defined for the path
      Throws:
      WCMException - in case of error