Package org.exoplatform.applications.ooplugin.props

Examples of org.exoplatform.applications.ooplugin.props.ResourceTypeProp


   {

      public int compare(ResponseDoc resp1, ResponseDoc resp2)
      {

         ResourceTypeProp rt1 = (ResourceTypeProp) resp1.getProperty(WebDavProp.RESOURCETYPE);
         ResourceTypeProp rt2 = (ResourceTypeProp) resp2.getProperty(WebDavProp.RESOURCETYPE);

         if (rt1.isCollection() && !rt2.isCollection())
         {
            return 0;
         }

         if (!rt1.isCollection() && rt2.isCollection())
         {
            return 1;
         }

         DisplayNameProp dn1 = (DisplayNameProp) resp1.getProperty(WebDavProp.DISPLAYNAME);
View Full Code Here


      ((XWindow) UnoRuntime.queryInterface(XWindow.class, xControlContainer.getControl(BTN_CANCEL))).setEnable(true);
   }

   protected boolean isCollection(ResponseDoc response)
   {
      ResourceTypeProp resourceTypeProperty = (ResourceTypeProp) response.getProperty(WebDavProp.RESOURCETYPE);
      if (resourceTypeProperty == null)
      {
         return false;
      }
      return resourceTypeProperty.isCollection();
   }
View Full Code Here

      {
         fileItem += " ";
      }

      DisplayNameProp displayNameProperty = (DisplayNameProp) response.getProperty(WebDavProp.DISPLAYNAME);
      ResourceTypeProp resourceTypeProperty = (ResourceTypeProp) response.getProperty(WebDavProp.RESOURCETYPE);

      String displayName = displayNameProperty.getDisplayName();

      if (resourceTypeProperty != null && resourceTypeProperty.isCollection())
      {
         if (displayName.length() > NAME_LEN - VNAME_LEN - 5)
         {
            displayName = displayName.substring(0, NAME_LEN - VNAME_LEN - 5);
         }
View Full Code Here

TOP

Related Classes of org.exoplatform.applications.ooplugin.props.ResourceTypeProp

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.