create
org.apache.sling.api.resource.Resource create(org.apache.sling.api.resource.ResourceResolver resolver,
org.apache.sling.api.resource.Resource parent,
String name)
throws javax.jcr.RepositoryException,
org.apache.sling.api.resource.PersistenceException
Create the resource with the given administrative resolver. A ResourceResolver.commit()
is
not necessary - that's performed in the LazyCreationService.
- Parameters:
resolver
- an administrative resolver
parent
- the parent of the resource at which to attach the resource
name
- the name of the resource to create.
- Returns:
- the created resource, which must be the child with the given name of the given parent.
- Throws:
javax.jcr.RepositoryException
org.apache.sling.api.resource.PersistenceException