org.osivia.portal.demo.customizer
Class Formatter

java.lang.Object
  extended by org.osivia.portal.demo.customizer.Formatter

public final class Formatter
extends java.lang.Object

Utility class used to format customized Nuxeo document content view.

Author:
Cédric Krommenhoek

Method Summary
static java.lang.String formatDate(org.nuxeo.ecm.automation.client.model.Document document, java.util.Locale locale, boolean time)
          Format date into long format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

formatDate

public static java.lang.String formatDate(org.nuxeo.ecm.automation.client.model.Document document,
                                          java.util.Locale locale,
                                          boolean time)
Format date into long format.

Parameters:
document - Nuxeo document
locale - current locale, may be null
time - display time indicator
Returns:
formatted date


Copyright © 2014. All Rights Reserved.