Package org.dspace.app.xmlui.utils

Examples of org.dspace.app.xmlui.utils.UIException


   
    int roleID = getCollectionDefaultRead(context, collectionID);
   
    if (roleID < 1)
    {
      throw new UIException("Unable to delete the default read role because the role is either already assigned to the anonymous group or multiple groups are assigned the default privileges.");
    }
   
    Collection collection = Collection.find(context,collectionID);
    Group role = Group.find(context, roleID);
    Group anonymous = Group.find(context,0);
View Full Code Here


                params.scope.setStartsWith(startsWith);
            }
        }
        catch (BrowseException bex)
        {
            throw new UIException("Unable to create browse parameters", bex);
        }

        this.userParams = params;
        return params;
    }
View Full Code Here

    {
      String[] parts = id.split("/");
     
      if (parts.length != 2)
                        {
        throw new UIException("Unable to parse id into bundle and bitstream id: "+id);
                        }
     
      int bundleID = Integer.valueOf(parts[0]);
      int bitstreamID = Integer.valueOf(parts[1]);
     
View Full Code Here

    } else if (split.length == 3) {
      parts[0] = split[0];
      parts[1] = split[1];
      parts[2] = split[2];
    } else {
      throw new UIException("Unable to parse metedata field name: "+name);
    }
    return parts;
  }
View Full Code Here

            namespace = URLDecoder.decode(namespace, Constants.DEFAULT_ENCODING);
            name = URLDecoder.decode(name,Constants.DEFAULT_ENCODING);
        }
        catch (UnsupportedEncodingException uee)
        {
            throw new UIException(uee);
        }
   
    if (namespace == null || namespace.length() <= 0)
        {
            result.addError("namespace");
View Full Code Here

            qualifier = URLDecoder.decode(qualifier,Constants.DEFAULT_ENCODING);
            note = URLDecoder.decode(note,Constants.DEFAULT_ENCODING);
        }
        catch (UnsupportedEncodingException uee)
        {
            throw new UIException(uee);
        }
   
    // Check if the field name is good.
    result.setErrors(checkMetadataFieldName(element, qualifier));
   
View Full Code Here

            qualifier = URLDecoder.decode(qualifier,Constants.DEFAULT_ENCODING);
            note = URLDecoder.decode(note,Constants.DEFAULT_ENCODING);
        }
        catch (UnsupportedEncodingException uee)
        {
            throw new UIException(uee);
        }
   
    // Check if the field name is good.
    result.setErrors(checkMetadataFieldName(element, qualifier));
   
View Full Code Here

                this.browseInfo.setEtAl(params.etAl);
            }
        }
        catch (BrowseException bex)
        {
            throw new UIException("Unable to process browse", bex);
        }

        return this.browseInfo;
    }
View Full Code Here

                collection = "-1";
            }
        }
        catch (org.apache.avalon.framework.parameters.ParameterException e)
        {
            throw new UIException("Missing a required parameter",e);
        }

        Division idiv = body.addInteractiveDivision("lookup", "", "get", "popup");
        if (isFieldMessage(field, "title"))
        {
View Full Code Here

                        message("xmlui.ArtifactBrowser.Navigation.browse_" + bix.getName()));
            }
        }
        catch (BrowseException bex)
        {
            throw new UIException("Unable to get browse indicies", bex);
        }
    }
View Full Code Here

TOP

Related Classes of org.dspace.app.xmlui.utils.UIException

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.