public final class ResourceHelper extends Object
Resources and ResourceCollections.| Modifier and Type | Field and Description |
|---|---|
static String |
SHARED_RESOURCE_PATH
The shared resource base path in the repository.
|
static String |
SHARED_RESOURCE_PREFIX
The shared resource prefix.
|
| Modifier | Constructor and Description |
|---|---|
private |
ResourceHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getRightsContext(ExplorerNode explorerNode)
Get the rights context of an explorer node.
|
static String |
getRightsContext(String objectPath,
String resourcePath)
Get the rights context of a resource.
|
static String |
getSharedRootName(ExplorerNode explorerNode)
Get the shared root name of a shared explorer node.
|
static String |
getSharedRootName(Resource resource)
Get the shared root name of a shared resource.
|
static String |
getSharedRootName(ResourceCollection collection)
Get the shared root name of a shared resource collection.
|
static String |
getSharedRootName(String objectPath)
Get the shared root name of a shared resource or collection
|
static boolean |
isShared(ExplorerNode explorerNode)
Test if an explorer node belongs to a shared tree.
|
static boolean |
isShared(Resource resource)
Test if a resource belongs to a shared tree.
|
static boolean |
isShared(ResourceCollection collection)
Test if a resource collection belongs to a shared tree.
|
static boolean |
isShared(String objectPath)
Test if a resource or resource collection belongs to a shared tree.
|
public static final String SHARED_RESOURCE_PATH
public static final String SHARED_RESOURCE_PREFIX
private ResourceHelper()
public static final boolean isShared(Resource resource)
resource - the resource to test.public static final boolean isShared(ResourceCollection collection)
collection - the resource collection to test.public static final boolean isShared(ExplorerNode explorerNode)
explorerNode - the explorer node to test.public static final boolean isShared(String objectPath)
objectPath - the path of the resource or resource collection AmetysObject.public static final String getSharedRootName(Resource resource)
resource - the resource.public static final String getSharedRootName(ResourceCollection collection)
collection - the resource collection.public static final String getSharedRootName(ExplorerNode explorerNode)
explorerNode - the explorer node.public static final String getSharedRootName(String objectPath)
objectPath - the path of the resource or collection AmetysObject.public static final String getRightsContext(ExplorerNode explorerNode)
explorerNode - the explorer node.public static final String getRightsContext(String objectPath, String resourcePath)
objectPath - the path of the resource or collection AmetysObject.resourcePath - the path of the resource in the resource explorer.