Package org.dspace.app.xmlui.wing

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


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


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

        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);
View Full Code Here

    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 ("neutral".equals(outcome))
        {
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

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

        // Create a control to changing ascending / descending order
        Cell orderCell = controlsRow.addCell();
        orderCell.addContent(T_order);
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

            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

                    }
                }
            }
            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

                return (Item) dso;
            }else{
                return Item.find(context, parameters.getParameterAsInteger("itemID", -1));
            }
        } catch (SQLException e) {
            throw new WingException(e);
        }


    }
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.