Examples of DAVProcessor


Examples of com.adito.vfs.webdav.DAVProcessor

        VFSLockManager.getInstance().lock(resource, transaction.getSessionInfo(), true, true, handle);
       
        try {
            try {
                //super.process(transaction, resource);
              DAVProcessor processor = DAVServlet.getDAVProcessor(transaction.getRequest());
              URI target = transaction.getDestination();
              if (target == null)
                    throw new DAVException(412, "No destination");
              dest = processor.getRepository().getResource(resource.getLaunchSession(), target.getPath(), transaction.getCredentials());
             
              VFSLockManager.getInstance().lock(resource, transaction.getSessionInfo(), true, false, handle);
             
              resource.move(dest, true);
              resource.getMount().resourceMoved(resource, dest, transaction, null);               
View Full Code Here

Examples of com.adito.vfs.webdav.DAVProcessor

              throw new DAVException(412, "No destination");
          if(log.isDebugEnabled())
              log.debug("Target " + target.getPath());
         
      try {
              DAVProcessor processor = DAVServlet.getDAVProcessor(transaction.getRequest());
              dest = processor.getRepository().getResource(resource.getLaunchSession(), target.getPath(), transaction.getCredentials()/*, transaction*/);
              VFSLockManager.getInstance().lock(dest, transaction.getSessionInfo(), true, false, handle);

          } catch (Exception ex) {
              log.error("Failed to get resource. ", ex);
              transaction.setStatus(500);
View Full Code Here

Examples of com.adito.vfs.webdav.DAVProcessor

     */
    public ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                    HttpServletResponse response) throws Exception {
        ActionForward fwd = super.unspecified(mapping, form, request, response);
        ShowNetworkPlacesForm showNetworkPlacesForm = (ShowNetworkPlacesForm) form;
        DAVProcessor processor = DAVServlet.getDAVProcessor(request);
        showNetworkPlacesForm.initialize(processor, this.getSessionInfo(request));
        showNetworkPlacesForm.checkSelectedView(request, response);
        return fwd;
    }
View Full Code Here

Examples of com.adito.vfs.webdav.DAVProcessor

        boolean allowRecursive = ((Boolean) seq.getAttribute(NetworkPlaceDetailsForm.ATTR_ALLOW_RECURSIVE, Boolean.FALSE))
                        .booleanValue();
        boolean noDelete = ((Boolean) seq.getAttribute(NetworkPlaceDetailsForm.ATTR_NO_DELETE, Boolean.FALSE)).booleanValue();
        boolean showHidden = ((Boolean) seq.getAttribute(NetworkPlaceDetailsForm.ATTR_SHOW_HIDDEN, Boolean.FALSE)).booleanValue();
        boolean autoStart = false; // TODO hook this into the UI
        DAVProcessor processor = DAVServlet.getDAVProcessor(request);
        // TODO get the resource permission that allowed this resource to be
        // created
        try {
            try {
View Full Code Here

Examples of com.adito.vfs.webdav.DAVProcessor

     */
    public WrappedFavoriteItem createWrappedFavoriteItem(int resourceId, HttpServletRequest request, String type) throws Exception {
        NetworkPlace np = NetworkPlaceDatabaseFactory.getInstance().getNetworkPlace(resourceId);
        NetworkPlaceItem npi;
        if (np != null) {
            DAVProcessor processor = DAVServlet.getDAVProcessor(request);
            SessionInfo sessionInfo = LogonControllerFactory.getInstance().getSessionInfo(request);
            VFSStore store = processor.getRepository().getStore(np.getScheme());
            if (store == null) {
                log.warn("Store that handles '" + np.getScheme() + "' cannot be found.");
            } else {
                npi = new NetworkPlaceItem(np, store.getMountPath(np.getResourceName()), PolicyDatabaseFactory.getInstance()
                                .getPoliciesAttachedToResource(np, sessionInfo.getUser().getRealm()), np
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.