public class ResourceCollectionUtil extends Object
Constructor and Description |
---|
ResourceCollectionUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
createUniqueChildName(org.apache.sling.api.resource.Resource resource,
String name)
Create a unique name for a child of the
resource . |
public static String createUniqueChildName(org.apache.sling.api.resource.Resource resource, String name)
resource
. Generates a unique name and test if child
already exists. If name is already existing, iterate until a unique one is foundresource
- parent resourcename
- the name to checkCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.