Skip to content

Instantly share code, notes, and snippets.

@justinedelson
Created November 12, 2011 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinedelson/1359997 to your computer and use it in GitHub Desktop.
Save justinedelson/1359997 to your computer and use it in GitHub Desktop.
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