Package org.exoplatform.applications.ooplugin.client

Examples of org.exoplatform.applications.ooplugin.client.ResponseDoc


               if (selectedPos >= 0)
               {
                  ((XWindow) UnoRuntime.queryInterface(XWindow.class, xControlContainer.getControl(BTN_OPEN)))
                           .setEnable(true);

                  ResponseDoc response = responses.get(selectedPos);
                  VersionNameProp versionNameProperty = (VersionNameProp) response.getProperty(WebDavProp.VERSIONNAME);
                  if (versionNameProperty != null && versionNameProperty.getStatus() == HTTPStatus.OK)
                  {
                     enableVersionView(true);
                     continue;
                  }
View Full Code Here


            if (selectedPos < 0)
            {
               return;
            }

            ResponseDoc response = responses.get(selectedPos);
            String href = TextUtils.UnEscape(response.getHref(), '%');

            if (!href.startsWith(config.getServerPrefix()))
            {
               showMessageBox("Can't load version list.");
               return;
View Full Code Here

               (XListBox) UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl(LST_VERSIONS));
      xListBox.removeItems((short) 0, xListBox.getItemCount());

      for (int i = responses.size() - 1; i >= 0; i--)
      {
         ResponseDoc curResponse = responses.get(i);
         xListBox.addItem(formatLine(curResponse), (short) 0);
      }

      return true;
   }
View Full Code Here

         if (selectedItem < 0)
         {
            return;
         }

         ResponseDoc response = responses.get(selectedItem);
         // String href = TextUtils.UnEscape(response.getHref(), '%');

         String href = response.getHref();
         doOpenRemoteFile(href);
         isOpened = true;
         xDialog.endExecute();

      }
View Full Code Here

            responses.clear();

            ArrayList<ResponseDoc> tmpResponses = multistatus.getResponses();
            for (int i = 0; i < tmpResponses.size(); i++)
            {
               ResponseDoc response = tmpResponses.get(i);
               String responseHref = TextUtils.UnEscape(response.getHref(), '%');

               if (responseHref.equals(currentHref))
               {
                  continue;
               }
View Full Code Here

      if (selectedPos < 0)
      {
         return;
      }

      ResponseDoc response = responses.get(selectedPos);

      if (isCollection(response))
      {
         doPropFindResponse(response);
      }
      else
      {
         try
         {

            DisplayNameProp displayNameProperty = (DisplayNameProp) response.getProperty(WebDavProp.DISPLAYNAME);

            setEditFileName(displayNameProperty.getDisplayName());
         }
         catch (Exception exc)
         {
View Full Code Here

         boolean finded = false;

         for (int i = 0; i < responses.size(); i++)
         {
            ResponseDoc response = responses.get(i);

            DisplayNameProp displayNameProperty = (DisplayNameProp) response.getProperty(WebDavProp.DISPLAYNAME);
            if (displayNameProperty.getDisplayName().equals(fileName))
            {
               finded = true;
               break;
            }
View Full Code Here

      if (selectedPos < 0)
      {
         return false;
      }

      ResponseDoc response = responses.get(selectedPos);

      if (isCollection(response))
      {
         return false;
      }

      // String href = TextUtils.UnEscape(response.getHref(), '%');
      String href = response.getHref();
      doOpenRemoteFile(href);
      return true;
   }
View Full Code Here

      XListBox xListBox = (XListBox) UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl(LST_ITEMS));
      xListBox.removeItems((short) 0, xListBox.getItemCount());

      for (int i = responses.size() - 1; i >= 0; i--)
      {
         ResponseDoc response = responses.get(i);
         xListBox.addItem(formatResponseLine(response), (short) 0);
      }
   }
View Full Code Here

      if (selectedPos < 0)
      {
         return;
      }

      ResponseDoc response = responses.get(selectedPos);

      if (isCollection(response))
      {
         doPropFindResponse(response);
         return;
      }

      try
      {
         // doOpenRemoteFile(TextUtils.UnEscape(response.getHref(), '%'));
         doOpenRemoteFile(response.getHref());
         Thread.sleep(100);
         xDialog.endExecute();
      }
      catch (Exception exc)
      {
View Full Code Here

TOP

Related Classes of org.exoplatform.applications.ooplugin.client.ResponseDoc

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.