|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceMergerService
Service to handle merged resources.
Method Summary | |
---|---|
org.apache.sling.api.resource.Resource |
getMergedResource(org.apache.sling.api.resource.Resource resource)
Returns a merged resource if the provided resource is from one of the search paths and the resource is not hidden. |
String |
getMergedResourcePath(String relativePath)
Returns the absolute path for the provided relative path. |
String |
getResourcePath(String searchPath,
String mergedResourcePath)
Return a resource path by taking the path of the merged resource, removing the mount point and replacing it with the search path. |
boolean |
isMergedResource(org.apache.sling.api.resource.Resource resource)
Returns true if the provided Resource is a merged resource. |
Method Detail |
---|
String getMergedResourcePath(String relativePath)
relativePath
- The relative path
org.apache.sling.api.resource.Resource getMergedResource(org.apache.sling.api.resource.Resource resource)
null
, null
is returned.
resource
- The resource
null
boolean isMergedResource(org.apache.sling.api.resource.Resource resource)
true
if the provided Resource
is a merged resource.
If the resource is null
, false
is returned.
resource
- The resource
true
if the provided Resource
is a merged resource.String getResourcePath(String searchPath, String mergedResourcePath)
searchPath
- The search path, this is an absolute path ending with a slash
as returned by the resource resolvermergedResourcePath
- An absolute path to a merged resource
IllegalArgumentException
- If search path is not absolute or does not end
with a slash or if the merged resource path
is not within the space of the merged resources.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |