public interface NestedBucketStorageSystem
NestedBucketStorageSystem nestedBucketStorageSystem = root.adaptTo(NestedBucketStorageSystem.class);
Modifier and Type | Field and Description |
---|---|
static String |
BUCKET_TYPE
The default bucket type.
|
static String |
DEFAULT_BUCKET_POSTFIX
The default bucket postfix.
|
static int |
MAX_NODES_PER_BUCKET
The maximum number of nodes per bucket.
|
Modifier and Type | Method and Description |
---|---|
Node |
addNode(String name,
String primaryNodeTypeName)
Add a new node with the given name and primary node type name.
|
Resource |
addResource(String name,
String primaryNodeTypeName)
Add a new resource with the given name and primary node type name.
|
String |
getBucketPostfix()
Get the bucket postfix.
|
String |
getBucketResourceType()
Get the bucket type.
|
long |
getNumberChildren()
Returns the number of resource located under the root node.
|
Resource |
getRoot()
Returns the root node of the storage system, for example,
/content/usergenerated/content/geometrixx/en/community/jcr:content/forum node.
|
Iterator<Resource> |
listBuckets()
List the buckets.
|
Iterator<Resource> |
listChildren()
Returns an iterator of the children of this bucket storage system.
|
void |
setBucketPostfix(String postfix)
Set the bucket postfix.
|
void |
setBucketResourceType(String type)
Set the bucket type.
|
static final int MAX_NODES_PER_BUCKET
static final String BUCKET_TYPE
static final String DEFAULT_BUCKET_POSTFIX
Resource getRoot()
void setBucketPostfix(String postfix)
String getBucketPostfix()
void setBucketResourceType(String type)
String getBucketResourceType()
long getNumberChildren() throws NestedBucketStorageException
NestedBucketStorageException
Iterator<Resource> listChildren() throws NestedBucketStorageException
NestedBucketStorageException
Resource addResource(String name, String primaryNodeTypeName) throws NestedBucketStorageException
name
- - name of the resource to addprimaryNodeTypeName
- - primary node type of the node to addResource
The new resourceNestedBucketStorageException
Node addNode(String name, String primaryNodeTypeName) throws NestedBucketStorageException
name
- - name of the resource to addprimaryNodeTypeName
- - primary node type of the node to addNestedBucketStorageException
Iterator<Resource> listBuckets() throws NestedBucketStorageException
Iterator
NestedBucketStorageException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"