Package org.exoplatform.applications.ooplugin.props

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


   private String formatLine(ResponseDoc response)
   {
      DisplayNameProp displayNameProperty = (DisplayNameProp) response.getProperty(WebDavProp.DISPLAYNAME);
      ContentLengthProp contentLengthProperty = (ContentLengthProp) response.getProperty(WebDavProp.GETCONTENTLENGTH);
      CreationDateProp creationDateProperty = (CreationDateProp) response.getProperty(WebDavProp.CREATIONDATE);
      CreatorDisplayNameProp creatorDisplayName =
               (CreatorDisplayNameProp) response.getProperty(WebDavProp.CREATORDISPLAYNAME);

      String lineStr = displayNameProperty.getDisplayName();
      while (lineStr.length() < NAME_LEN)
      {
         lineStr += " ";
      }

      if (contentLengthProperty != null)
      {
         lineStr += contentLengthProperty.getContentLength();
      }

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

      if (creationDateProperty != null)
      {
         lineStr += creationDateProperty.getCreationDate();
      }

      while (lineStr.length() < CREATED_LEN)
      {
         lineStr += " ";
View Full Code Here


   {

      public int compare(ResponseDoc resp1, ResponseDoc resp2)
      {

         CreationDateProp creationDate1 = (CreationDateProp) resp1.getProperty(WebDavProp.CREATIONDATE);
         CreationDateProp creationDate2 = (CreationDateProp) resp2.getProperty(WebDavProp.CREATIONDATE);

         if (!creationDate2.getCreationDate().equals(creationDate1.getCreationDate()))
         {
            return creationDate2.getCreationDate().compareToIgnoreCase(creationDate1.getCreationDate());
         }

         DisplayNameProp displayName1 = (DisplayNameProp) resp1.getProperty(WebDavProp.DISPLAYNAME);
         DisplayNameProp displayName2 = (DisplayNameProp) resp2.getProperty(WebDavProp.DISPLAYNAME);
View Full Code Here

TOP

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

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.