Package org.dspace.app.xmlui.objectmanager

Examples of org.dspace.app.xmlui.objectmanager.AbstractAdapter


    try {
      // Open a new context.
      Context context = ContextUtil.obtainContext(objectModel);
     
      // Determine which adapter to use
      AbstractAdapter adapter = resolveAdapter(context);
            if (adapter == null)
              throw new ResourceNotFoundException("Unable to locate object.");
           
            // Configure the adapter for this request.
            configureAdapter(adapter);
           
      // Generate the METS document
      contentHandler.startDocument();
      adapter.renderMETS(contentHandler,lexicalHandler);
      contentHandler.endDocument();
     
    } catch (WingException we) {
      throw new ProcessingException(we);
    } catch (CrosswalkException ce) {
View Full Code Here


        // Determine the correct adatper to use for this item
        String handle = parameters.getParameter("handle",null);
        String internal = parameters.getParameter("internal",null);
   
        AbstractAdapter adapter = null;
     if (handle != null)
         {
      // Specified using a regular handle.
           DSpaceObject dso = HandleManager.resolveToObject(context, handle);
          
View Full Code Here

    try {
      // Open a new context.
      Context context = ContextUtil.obtainContext(objectModel);
     
      // Determine which adapter to use
      AbstractAdapter adapter = resolveAdapter(context);
            if (adapter == null)
            {
                throw new ResourceNotFoundException("Unable to locate object.");
            }
           
            // Configure the adapter for this request.
            configureAdapter(adapter);
           
      // Generate the METS document
      contentHandler.startDocument();
      adapter.renderMETS(contentHandler,lexicalHandler);
      contentHandler.endDocument();
     
    } catch (WingException we) {
      throw new ProcessingException(we);
    } catch (CrosswalkException ce) {
View Full Code Here

        // Determine the correct adapter to use for this item
        String handle = parameters.getParameter("handle",null);
        String internal = parameters.getParameter("internal",null);
   
        AbstractAdapter adapter = null;
     if (handle != null)
         {
            // Specified using a regular handle.
            DSpaceObject dso = HandleManager.resolveToObject(context, handle);
View Full Code Here

TOP

Related Classes of org.dspace.app.xmlui.objectmanager.AbstractAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.