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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TraversableAmetysObjectgetResourceRoot(Resource resource)Get the resource root of a resource.static TraversableAmetysObjectgetResourceRoot(ResourceCollection collection)Get the resource root of a resource collection.
-
-
-
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.
-
-