Package com.composum.sling.core.resource
Class SyntheticQueryResult
- java.lang.Object
-
- org.apache.sling.api.adapter.SlingAdaptable
-
- org.apache.sling.api.resource.AbstractResource
-
- org.apache.sling.api.resource.SyntheticResource
-
- com.composum.sling.core.resource.SyntheticQueryResult
-
- All Implemented Interfaces:
org.apache.sling.api.adapter.Adaptable
,org.apache.sling.api.resource.Resource
public class SyntheticQueryResult extends org.apache.sling.api.resource.SyntheticResource
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceFilter
filter
protected javax.jcr.query.QueryResult
queryResult
protected org.apache.sling.api.resource.ModifiableValueMap
valueMap
-
Constructor Summary
Constructors Constructor Description SyntheticQueryResult(org.apache.sling.api.resource.ResourceResolver resolver, String path, javax.jcr.query.QueryResult queryResult)
SyntheticQueryResult(org.apache.sling.api.resource.ResourceResolver resolver, String path, javax.jcr.query.QueryResult queryResult, ResourceFilter filter)
SyntheticQueryResult(org.apache.sling.api.resource.ResourceResolver resolver, String path, javax.jcr.query.QueryResult queryResult, ResourceFilter filter, String resourceType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <AdapterType>
AdapterTypeadaptTo(Class<AdapterType> type)
@NotNull Iterator<org.apache.sling.api.resource.Resource>
listChildren()
void
putValue(String path, Object value)
-
Methods inherited from class org.apache.sling.api.resource.SyntheticResource
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, toString
-
Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType
-
-
-
-
Field Detail
-
queryResult
protected final javax.jcr.query.QueryResult queryResult
-
valueMap
protected final org.apache.sling.api.resource.ModifiableValueMap valueMap
-
filter
protected final ResourceFilter filter
-
-
Constructor Detail
-
SyntheticQueryResult
public SyntheticQueryResult(org.apache.sling.api.resource.ResourceResolver resolver, String path, javax.jcr.query.QueryResult queryResult)
-
SyntheticQueryResult
public SyntheticQueryResult(org.apache.sling.api.resource.ResourceResolver resolver, String path, javax.jcr.query.QueryResult queryResult, ResourceFilter filter)
-
SyntheticQueryResult
public SyntheticQueryResult(org.apache.sling.api.resource.ResourceResolver resolver, String path, javax.jcr.query.QueryResult queryResult, ResourceFilter filter, String resourceType)
-
-
Method Detail
-
adaptTo
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
- Specified by:
adaptTo
in interfaceorg.apache.sling.api.adapter.Adaptable
- Overrides:
adaptTo
in classorg.apache.sling.api.adapter.SlingAdaptable
-
listChildren
@NotNull public @NotNull Iterator<org.apache.sling.api.resource.Resource> listChildren()
- Specified by:
listChildren
in interfaceorg.apache.sling.api.resource.Resource
- Overrides:
listChildren
in classorg.apache.sling.api.resource.AbstractResource
-
-