Package org.dspace.app.rest.utils
Class ScopeResolver
- java.lang.Object
-
- org.dspace.app.rest.utils.ScopeResolver
-
@Component public class ScopeResolver extends Object
Utility bean that can resolve a scope in the REST API to a DSpace Object
-
-
Constructor Summary
Constructors Constructor Description ScopeResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexableObjectresolveScope(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.
-
-
-
Method Detail
-
resolveScope
public IndexableObject resolveScope(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.- 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.
-
-