Package org.exoplatform.applications.ooplugin.client

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


      while (fileItem.length() < SIZE_LEN)
      {
         fileItem += " ";
      }

      CommonProp mimeTypeProperty = (CommonProp) response.getProperty(JCR_MIMETYPE);

      if (mimeTypeProperty != null)
      {
         fileItem += mimeTypeProperty.getValue();
      }

      if (fileItem.length() > MIMETYPE_SIZE - 1)
      {
         fileItem = fileItem.substring(0, MIMETYPE_SIZE - 4);
         fileItem += "...";
      }

      while (fileItem.length() < MIMETYPE_SIZE)
      {
         fileItem += " ";
      }

      LastModifiedProp lastModifiedProperty = (LastModifiedProp) response.getProperty(WebDavProp.GETLASTMODIFIED);
      if (lastModifiedProperty != null)
      {

         Date d = new Date();

         SimpleDateFormat sdf = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss z");
         try
         {
            d = sdf.parse(lastModifiedProperty.getLastModified());
         }
         catch (Exception e)
         {
            e.printStackTrace();
         }

         fileItem += d.toString();
      }

      while (fileItem.length() < LASTMODIFIED_SIZE)
      {
         fileItem += " ";
      }

      CommonProp commentProperty = (CommonProp) response.getProperty(WebDavProp.COMMENT);
      if (commentProperty != null)
      {
         fileItem += commentProperty.getValue();
      }

      return fileItem;
   }
View Full Code Here

TOP

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

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.