Package org.dspace.app.rest.utils
Class ScopeResolver
java.lang.Object
org.dspace.app.rest.utils.ScopeResolver
Utility bean that can resolve a scope in the REST API to a DSpace Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveScope(Context context, String scope) Returns an IndexableObject corresponding to the community or collection of the given scope, or null if the scope is not a valid UUID, or is a valid UUID that does not correspond to a community of collection.
-
Constructor Details
-
ScopeResolver
public ScopeResolver()
-
-
Method Details
-
resolveScope
Returns an IndexableObject corresponding to the community or collection of the given scope, or null if the scope is not a valid UUID, or is a valid UUID that does not correspond to a community of collection.- Parameters:
context- the DSpace contextscope- a String containing the UUID of the community or collection to return.- Returns:
- an IndexableObject corresponding to the community or collection of the given scope, or null if the scope is not a valid UUID, or is a valid UUID that does not correspond to a community of collection.
-