Package org.exoplatform.applications.ooplugin.props

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


   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 += " ";
      }

      if (creatorDisplayName != null)
      {
         lineStr += creatorDisplayName.getCreatorDisplayName();
      }

      return lineStr;
   }
View Full Code Here

TOP

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

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.