Package org.swordapp.server

Examples of org.swordapp.server.SwordAuthException


    {
      throw new DSpaceSwordException(e);
    }
    catch (AuthorizeException e)
    {
      throw new SwordAuthException(e);
    }
    }
View Full Code Here


      {
        oboEmail = sc.getOnBehalfOf().getEmail();
      }
      log.info(LogManager.getHeader(context, "replace_failed_authorisation", "user=" +
          sc.getAuthenticated().getEmail() + ",on_behalf_of=" + oboEmail));
      throw new SwordAuthException("Cannot replace the given item with this context");
    }
  }
View Full Code Here

      Statement statement = disseminator.disseminate(context, item);
            return statement;
        }
        catch (AuthorizeException e)
        {
            throw new SwordAuthException();
        }
        catch (SQLException e)
        {
            throw new SwordServerException(e);
        }
View Full Code Here

        {
          oboEmail = sc.getOnBehalfOf().getEmail();
        }
        log.info(LogManager.getHeader(context, "deposit_failed_authorisation", "user=" +
            sc.getAuthenticated().getEmail() + ",on_behalf_of=" + oboEmail));
        throw new SwordAuthException("Cannot submit to the given collection with this context");
      }

      // make a note of the authentication in the verbose string
      this.verboseDescription.append("Authenticated user: " + sc.getAuthenticated().getEmail());
      if (sc.getOnBehalfOf() != null)
View Full Code Here

      return result;
    }
    catch (AuthorizeException e)
    {
      throw new SwordAuthException(e);
    }
    catch (SQLException e)
    {
      throw new DSpaceSwordException(e);
    }
View Full Code Here

    {
      throw new DSpaceSwordException(e);
    }
    catch (AuthorizeException e)
    {
      throw new SwordAuthException(e);
    }
  }
View Full Code Here

      return result;
    }
    catch (AuthorizeException e)
    {
      throw new SwordAuthException(e);
    }
    catch (SQLException e)
    {
      throw new DSpaceSwordException(e);
    }
View Full Code Here

            throws SwordAuthException, SwordError, DSpaceSwordException
    {
        // if there is no supplied username, then we should request a retry
        if (authCredentials.getUsername() == null)
        {
            throw new SwordAuthException(true);
        }

        // first authenticate the request
        // note: this will build our various DSpace contexts for us
        SwordAuthenticator auth = new SwordAuthenticator();
View Full Code Here

TOP

Related Classes of org.swordapp.server.SwordAuthException

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.