Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adapter JSON file
[
{
"adaptables":"org.apache.sling.api.resource.Resource",
"adapters":[
"javax.jcr.Node",
"javax.jcr.Item",
"java.net.URL",
"java.util.Map",
"org.apache.sling.api.resource.ValueMap"
],
"condition":"If the resource is a JcrNodeResource"
},
{
"adaptables":"org.apache.sling.api.resource.Resource",
"adapters":[
"java.io.InputStream",
],
"condition":"If the resource is a JcrNodeResource and has a jcr:data property or in an nt:file node"
},
{
"adaptables":"org.apache.sling.api.resource.Resource",
"adapters":[
"org.apache.sling.api.resource.PersistableValueMap",
],
"condition":"If the resource is a JcrNodeResource and the user has set property privileges on the node"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.