Class ScopeResolver


  • @Component
    public class ScopeResolver
    extends Object
    Utility bean that can resolve a scope in the REST API to a DSpace Object
    • Constructor Detail

      • ScopeResolver

        public ScopeResolver()
    • 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 context
        scope - 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.