Package com.bradmcevoy.http.exceptions

Examples of com.bradmcevoy.http.exceptions.NotAuthorizedException


            LockToken mltonLT = convertToken(existLT);
            lr = LockResult.success(mltonLT);

        } catch (PermissionDeniedException ex) {
            LOG.debug(ex.getMessage());
            throw new NotAuthorizedException(this);

        } catch (DocumentNotLockedException | EXistException ex) {
            LOG.debug(ex.getMessage());
            lr = LockResult.failed(LockResult.FailureReason.PRECONDITION_FAILED);
View Full Code Here


       
        try {
            existDocument.unlock();
        } catch (PermissionDeniedException ex) {
            LOG.debug(ex.getMessage());
            throw new NotAuthorizedException(this);

        } catch (DocumentNotLockedException | EXistException ex) {
            LOG.debug(ex.getMessage());
            throw new PreConditionFailedException(this);
View Full Code Here

            XmldbURI collectionURI = existCollection.createCollection(name);
            collection = new MiltonCollection(host, collectionURI, brokerPool, subject);

        } catch (PermissionDeniedException ex) {
            LOG.debug(ex.getMessage());
            throw new NotAuthorizedException(this);

        } catch (CollectionExistsException | EXistException ex) {
            LOG.debug(ex.getMessage());
            throw new ConflictException(this);
View Full Code Here

      DigitalAssetController.getController().delete(this.digitalAsset.getId(), "ContentVersion", cv.getId());
    }
    catch (Exception e)
    {
      e.printStackTrace();
      throw new NotAuthorizedException(this);
    }
  }
View Full Code Here

    {
      repository = RepositoryController.getController().getRepositoryVOWithName(name);
          boolean hasAccess = AccessRightController.getController().getIsPrincipalAuthorized(principal, "Repository.Read", repository.getId().toString());
          resource = new RepositoryResource(repository);
          if(!hasAccess)
            throw new NotAuthorizedException(resource);
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of com.bradmcevoy.http.exceptions.NotAuthorizedException

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.