Class ResourceHelper
- java.lang.Object
-
- org.ametys.plugins.explorer.resources.ResourceHelper
-
public final class ResourceHelper extends Object
Helper class that provides utility methods to work with resources.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateResourceHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static TraversableAmetysObject_getResourceRoot(AmetysObject object)Get the resource root of an ametys object.static TraversableAmetysObjectgetResourceRoot(Resource resource)Get the resource root of a resource.static TraversableAmetysObjectgetResourceRoot(ResourceCollection collection)Get the resource root of a resource collection.
-
-
-
Constructor Detail
-
ResourceHelper
private ResourceHelper()
-
-
Method Detail
-
getResourceRoot
public static TraversableAmetysObject getResourceRoot(Resource resource)
Get the resource root of a resource.- Parameters:
resource- The resource.- Returns:
- The resource root.
-
getResourceRoot
public static TraversableAmetysObject getResourceRoot(ResourceCollection collection)
Get the resource root of a resource collection.- Parameters:
collection- The resource collection.- Returns:
- The resource root.
-
_getResourceRoot
private static TraversableAmetysObject _getResourceRoot(AmetysObject object)
Get the resource root of an ametys object.- Parameters:
object- The object.- Returns:
- The resource root of the ametys object.
-
-