Package com.day.cq.connector
Interface ConnectorResource
ConnectorResource provides unified access to content exposed
by various JCR connector implementations.-
Field Summary
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING -
Method Summary
Modifier and TypeMethodDescriptionexecuteQuery(String fulltext) Executes a fulltext query on this resource.Lists the children of this resource.booleanMethods inherited from interface org.apache.sling.api.resource.Resource
getChild, getName, getParent, getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, getValueMap, hasChildren, isResourceType, listChildren
-
Method Details
-
executeQuery
Executes a fulltext query on this resource. The scope of the query is limitted to the descendants of this resource.- Parameters:
fulltext- the fulltext query statement.- Returns:
- an iterator over result set.
-
getChildren
Iterable<ConnectorResource> getChildren()Lists the children of this resource.- Specified by:
getChildrenin interfaceResource- Returns:
- the children of this resource.
- See Also:
-
isContainer
boolean isContainer()- Returns:
trueif this resource is a container that contains other resources;falseotherwise.
-
getLastModified
Calendar getLastModified()- Returns:
- the date when this resource was last modified.
-
getMimeType
String getMimeType()- Returns:
- the mime type of this resource.
-