Package | Description |
---|---|
org.apache.sling.api.resource | |
org.apache.sling.jcr.resource |
Modifier and Type | Method and Description |
---|---|
void |
ResourceResolver.commit()
Persist all pending changes.
|
void |
ModifyingResourceProvider.commit(ResourceResolver resolver)
Commit all transient changes: create, delete and updates
|
Resource |
ModifyingResourceProvider.create(ResourceResolver resolver,
String path,
Map<String,Object> properties)
Create a new resource at the given path.
|
Resource |
ResourceResolver.create(Resource parent,
String name,
Map<String,Object> properties)
Add a child resource to the given parent resource
|
static String |
ResourceUtil.createUniqueChildName(Resource parent,
String name)
Create a unique name for a child of the
parent . |
void |
ResourceUtil.BatchResourceRemover.delete(Resource rsrc) |
void |
ResourceResolver.delete(Resource resource)
Delete the resource
Deleting a non existing resource leads to no operation nor exception.
|
void |
ModifyingResourceProvider.delete(ResourceResolver resolver,
String path)
Delete the resource at the given path.
|
static Resource |
ResourceUtil.getOrCreateResource(ResourceResolver resolver,
String path,
Map<String,Object> resourceProperties,
String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
static Resource |
ResourceUtil.getOrCreateResource(ResourceResolver resolver,
String path,
String resourceType,
String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
void |
PersistableValueMap.save()
Deprecated.
Persists the changes.
|
Modifier and Type | Method and Description |
---|---|
void |
JcrModifiablePropertyMap.save()
Deprecated.
|
Copyright © 2015 The Apache Software Foundation. All rights reserved.