Package org.dspace.app.xmlui.wing

Examples of org.dspace.app.xmlui.wing.WingException


            return false;
       
       
        String version = attributes.getValue(A_VERSION);
        if (!(DOCUMENT_VERSION.equals(version)))
          throw new WingException("Incompatable DRI versions, "+DOCUMENT_VERSION +" != "+version);
       
        return true;
    }
View Full Code Here


        super(context);

        ObjectManager objectManager = context.getObjectManager();

        if (objectManager == null)
            throw new WingException(
                    "Unable to reference object because no object manager has been defined.");
       
        if (!objectManager.manageObject(object))
            throw new WingException(
                    "The available object manager is unable to manage the give object.");

        this.url = objectManager.getObjectURL(object);
        this.repository = objectManager.getRepositoryIdentifier(object);
        this.type = objectManager.getObjectType(object);
View Full Code Here

                    }
                }
            }
            catch (SortException se)
            {
                throw new WingException("Unable to get sort options", se);
            }
        }

        // Create a control to changing ascending / descending order
        controlsForm.addContent(T_order);
View Full Code Here

    String message = parameters.getParameter("message",null);
    String characters = parameters.getParameter("characters",null);
         
    if ((message    == null || message.length() <= 0) &&
      (characters == null || characters.length() <= 0))
      throw new WingException("No message found.");
   
    String rend = "notice";
    if ("netural".equals(outcome))
      rend += " netural";
    else if ("success".equals(outcome))
View Full Code Here

                SAXOutputter outputter = new SAXOutputter();
                outputter.setContentHandler(filter);
                outputter.setLexicalHandler(filter);
                outputter.output(dissemination);
            } catch (JDOMException jdome) {
                throw new WingException(jdome);
            } catch (AuthorizeException ae) {
                // just ignore the authorize exception and continue on with
                //out parsing the xml document.
            }
View Full Code Here

            SAXOutputter outputter = new SAXOutputter();
            outputter.setContentHandler(filter);
            outputter.setLexicalHandler(filter);
            outputter.output(dissemination);
        } catch (JDOMException jdome) {
            throw new WingException(jdome);
        } catch (AuthorizeException ae) {
            // just ignore the authorize exception and continue on with
            //out parsing the xml document.
        }
View Full Code Here

                    outputter.setLexicalHandler(filter);
                                outputter.output(dissemination);
                        }
            catch (JDOMException jdome)
                        {
                                throw new WingException(jdome);
                        }
                        catch (AuthorizeException ae)
                        {
                                // just ignore the authorize exception and continue on with
                                //out parsing the xml document.
View Full Code Here

            outputter.setLexicalHandler(filter);
            outputter.output(dissemination);
        }
        catch (JDOMException jdome)
        {
            throw new WingException(jdome);
        }
        catch (AuthorizeException ae)
        {
            // just ignore the authorize exception and continue on with
            //out parsing the xml document.
View Full Code Here

            for (String v : VIEW_TYPES) {
                viewSelect.addOption((v.equals(getParameterView())), v, message("xmlui.ArtifactBrowser.AbstractSearch.view." + v));
            }
        }
        catch (Exception e) {
            throw new WingException("Unable to get view options", e);
        }

        // Create a control for the number of records to display
        Cell rppCell = controlsRow.addCell();
        rppCell.addContent(T_rpp);
View Full Code Here

            pageMeta.addMetadata("xhtml_head_item").addContent(sw.toString());
        }
        catch (CrosswalkException ce)
        {
            // TODO: Is this the right exception class?
            throw new WingException(ce);
        }
    }
View Full Code Here

TOP

Related Classes of org.dspace.app.xmlui.wing.WingException

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.