Package com.day.cq.wcm.msm.api
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 Summary
Modifier and TypeMethodDescriptiongetBlueprint(String absPath) Access the Blueprint that is stored at the given Path argument.
If a Blueprint can be accessed, theBlueprint's pathmust be the same as the argument.getContainingBlueprint(String path) Try to access a Blueprint for a given Resource
A Blueprint is found if the Resource is equal or a descendant of theBlueprint.getSitePath()Blueprint's SitePath}.
-
Method Details
-
getBlueprints
- Returns:
- all Blueprints available int the System
- Throws:
WCMException- in case of error
-
getBlueprint
Access the Blueprint that is stored at the given Path argument.
If a Blueprint can be accessed, theBlueprint's pathmust 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
nullif Resource at Path is not a Blueprint - Throws:
WCMException- in case of error- See Also:
-
getContainingBlueprint
Try to access a Blueprint for a given Resource
A Blueprint is found if the Resource is equal or a descendant of theBlueprint.getSitePath()Blueprint's SitePath}.- Parameters:
path- to find the Blueprint for- Returns:
- the Blueprint containing the path or
nullif no Blueprint is defined for the path - Throws:
WCMException- in case of error
-