Package org.apache.slide.webdav.event

Examples of org.apache.slide.webdav.event.WebdavEvent


            }
        }
       
        try {
            // fire put event
            if ( WebdavEvent.PUT.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(WebdavEvent.PUT, new WebdavEvent(this));

            try {

                boolean isLockedNullResource = false;
               
View Full Code Here


        }

        Element multistatusElement = new Element(E_MULTISTATUS, DNSP);

        try {
            if ( WebdavEvent.UPDATE.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(WebdavEvent.UPDATE, new WebdavEvent(this));

            update(updateSourcePath, updateLabelName, resourcePath, getDepth(), multistatusElement);
        } catch (NestedSlideException nestedSlideException) {

            if (!requestHeaders.isDefined(H_DEPTH)) {
View Full Code Here

            sendError( statusCode, e );
            throw new WebdavException( statusCode );
        }
       
        try {
            if ( WebdavEvent.ACL.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(WebdavEvent.ACL, new WebdavEvent(this));

            checkPreconditions();
            security.setPermissions(slideToken, resourcePath, permissions.elements());
        }
        catch (PreconditionViolationException e) {
View Full Code Here

            resp.setStatus(WebdavStatus.SC_NO_CONTENT);
        } else {
      try {
        if (WebdavEvent.UNLOCK.isEnabled())
          EventDispatcher.getInstance().fireVetoableEvent(
              WebdavEvent.UNLOCK, new WebdavEvent(this));

        checkPreconditions();
        lock.unlock(slideToken, requestUri, lockId);

        NodeRevisionDescriptors revisionDescriptors = content.retrieve(
View Full Code Here

            sendError( statusCode, e );
            throw new WebdavException( statusCode );
        }
       
        try {
            if ( WebdavEvent.REPORT.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(WebdavEvent.REPORT, new WebdavEvent(this));

            reportWorker.checkPreconditions(resourcePath, getDepth());
            Element rootElm;
            if (reportWorker instanceof PrincipalSearchPropertySetReport) {
                rootElm = new Element(E_PRINCIPAL_SEARCH_PROPERTY_SET, DNSP);
View Full Code Here

        try {
            VersioningHelper vh = VersioningHelper.getVersioningHelper(
                slideToken, token, req, resp, getConfig() );

            if ( WebdavEvent.CHECKIN.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(WebdavEvent.CHECKIN, new WebdavEvent(this));

            locationValue = vh.checkin( resourcePath , forkOk, keepCheckedOut, false);
        }
        catch (PreconditionViolationException e) {
            sendPreconditionViolation(e);
View Full Code Here

        }

        try {
            checkPreconditions();

            if ( WebdavEvent.BIND.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(WebdavEvent.BIND, new WebdavEvent(this));

            structure.addBinding( slideToken, collectionNode, segment, sourceNode );
        }
        catch (ObjectLockedException e) {
            ViolatedPrecondition violatedPrecondition;
View Full Code Here

       
        // If everything is ok : 201 - Created / OK
        resp.setStatus(WebdavStatus.SC_CREATED);
       
        try {
            if ( WebdavEvent.MKCOL.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(WebdavEvent.MKCOL, new WebdavEvent(this));

            if (!isLockNull) {
                SubjectNode collection = new SubjectNode();
                structure.create(slideToken, collection, colName);
                content.create(slideToken, colName, revisionDescriptor, null);
View Full Code Here

            throw new WebdavException( statusCode );
        }
       
        isCollection = isCollection(toDelete);
        try {
            if ( WebdavEvent.DELETE.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(WebdavEvent.DELETE, new WebdavEvent(this));

            macro.delete(slideToken, toDelete, null, this);
            resp.setStatus(WebdavStatus.SC_NO_CONTENT);
        } catch (DeleteMacroException dme) {
            // If it's not a collection, we don't want to give a 207,
View Full Code Here

    protected void parseRequest() throws WebdavException {
    }
   
    protected void executeRequest() throws WebdavException {
        try {
            if ( WebdavEvent.POLL.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(WebdavEvent.POLL, new WebdavEvent(this));
            int []subscriptionID = requestHeaders.getSubscriptionId();
            // includes subscription id's that are not valid any more but requested in the poll-request
            resp.setContentType( TEXT_XML_UTF_8 );
            resp.setStatus(WebdavStatus.SC_MULTI_STATUS);
            Element multistatus = new Element(E_MULTISTATUS, DNSP);
View Full Code Here

TOP

Related Classes of org.apache.slide.webdav.event.WebdavEvent

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.