|
From: <me...@us...> - 2010-01-15 14:51:30
|
Revision: 1650
http://openutils.svn.sourceforge.net/openutils/?rev=1650&view=rev
Author: memila
Date: 2010-01-15 14:51:23 +0000 (Fri, 15 Jan 2010)
Log Message:
-----------
moved date utilityes from mgnlutils.tld to dateutils.tld
Modified Paths:
--------------
trunk/openutils-elfunctions/src/main/resources/META-INF/dateutils.tld
trunk/openutils-mgnlutils/src/main/resources/META-INF/tld/mgnlutils.tld
Modified: trunk/openutils-elfunctions/src/main/resources/META-INF/dateutils.tld
===================================================================
--- trunk/openutils-elfunctions/src/main/resources/META-INF/dateutils.tld 2010-01-15 14:50:20 UTC (rev 1649)
+++ trunk/openutils-elfunctions/src/main/resources/META-INF/dateutils.tld 2010-01-15 14:51:23 UTC (rev 1650)
@@ -6,6 +6,54 @@
<tlib-version>1.0</tlib-version>
<short-name>du</short-name>
<uri>dateutils</uri>
+ <function>
+ <name>formatDateTime</name>
+ <description>
+ Format a date and time based on a given pattern, or a builtin style (short, medium, long or full). Also supports
+ different styles for date and time with the syntax "date_style;time_style" (e.g. "short;long")
+ </description>
+ <function-class>net.sourceforge.openutils.elfunctions.DateElUtils</function-class>
+ <function-signature>java.lang.String formatDateTime(java.util.Calendar, java.lang.String)</function-signature>
+ </function>
+ <function>
+ <name>formatDateTimeWithLocale</name>
+ <description>
+ Format a date and time with a specified language (lowercase two-letter ISO-639 code) based on a given pattern, or a builtin style (short, medium, long or full). Also supports
+ different styles for date and time with the syntax "date_style;time_style" (e.g. "short;long")
+ </description>
+ <function-class>net.sourceforge.openutils.elfunctions.DateElUtils</function-class>
+ <function-signature>java.lang.String formatDateTimeWithLocale(java.util.Calendar, java.lang.String,
+ java.lang.String)</function-signature>
+ </function>
+ <function>
+ <name>formatDate</name>
+ <description>Format a date based on a given pattern, or a builtin style (short, medium, long or full)</description>
+ <function-class>net.sourceforge.openutils.elfunctions.DateElUtils</function-class>
+ <function-signature>java.lang.String formatDate(java.util.Calendar, java.lang.String)</function-signature>
+ </function>
+ <function>
+ <name>formatTime</name>
+ <description>Format a time based on a given pattern, or a builtin style (short, medium, long or full)</description>
+ <function-class>net.sourceforge.openutils.elfunctions.DateElUtils</function-class>
+ <function-signature>java.lang.String formatTime(java.util.Calendar, java.lang.String)</function-signature>
+ </function>
+ <function>
+ <name>formatInterval</name>
+ <description>format a milliseconds interval as a string like 523h 22m 18s</description>
+ <function-class>net.sourceforge.openutils.elfunctions.DateElUtils</function-class>
+ <function-signature>java.lang.String formatInterval(java.lang.Long, java.lang.Boolean)</function-signature>
+ </function>
+ <function>
+ <name>getMillisFromNow</name>
+ <description>retrieve the milliseconds in difference between now and the input date</description>
+ <function-class>net.sourceforge.openutils.elfunctions.DateElUtils</function-class>
+ <function-signature>java.lang.Long getMillisFromNow(java.util.Calendar)</function-signature>
+ </function>
+ <function>
+ <name>parseDate</name>
+ <description>parse a date with a given pattern and return the parsed date as a calendar object (null safe)</description>
+ <function-class>net.sourceforge.openutils.elfunctions.DateElUtils</function-class>
+ <function-signature>java.util.Calendar parseDate(java.lang.String, java.lang.String)</function-signature>
+ </function>
-
</taglib>
\ No newline at end of file
Modified: trunk/openutils-mgnlutils/src/main/resources/META-INF/tld/mgnlutils.tld
===================================================================
--- trunk/openutils-mgnlutils/src/main/resources/META-INF/tld/mgnlutils.tld 2010-01-15 14:50:20 UTC (rev 1649)
+++ trunk/openutils-mgnlutils/src/main/resources/META-INF/tld/mgnlutils.tld 2010-01-15 14:51:23 UTC (rev 1650)
@@ -8,82 +8,93 @@
<uri>mgnlutils</uri>
<function>
<name>firstPageWithCollection</name>
- <function-class>--to be set --</function-class>
+ <description>Test if exists a parent page with content in the collectionName given as parameter, if exist set the parent page a sactpage</description>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.Boolean firstPageWithCollection(java.lang.String)</function-signature>
</function>
<function>
<name>isPage</name>
- <function-class>--to be set --</function-class>
+ <description>Evaluete if primary node type of the associated Node of an object is a mgnl:contentNode</description>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.Boolean isPage(info.magnolia.cms.core.Content)</function-signature>
</function>
<function>
<name>getPage</name>
- <function-class>--to be set --</function-class>
+ <description>Return the object passed or the first parent page that has content type = mgnl:content</description>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>info.magnolia.cms.core.Content getPage(info.magnolia.cms.core.Content)</function-signature>
</function>
<function>
<name>requestAttributeMap</name>
- <function-class>--to be set --</function-class>
+ <description>Return a map key=value of all magnolia request attributes</description>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.util.Map getRequestAttributeMap()</function-signature>
</function>
<function>
<name>countNodesInCollection</name>
- <function-class>--to be set --</function-class>
+ <description>Count the nodes in a collection with a given content and the name of the collection</description>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.Integer countNodesInCollection(info.magnolia.cms.core.Content, java.lang.String)</function-signature>
</function>
<function>
<name>countSubpages</name>
- <function-class>--to be set --</function-class>
+ <description>Count subpages with a given content</description>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.Integer countSubpages(info.magnolia.cms.core.Content)</function-signature>
</function>
<function>
<name>subpages</name>
- <function-class>--to be set --</function-class>
+ <description>Return the collection of subpages of a given page</description>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.util.Collection subpages(info.magnolia.cms.core.Content)</function-signature>
</function>
<function>
<name>user</name>
+ <description>Return the current user logged</description>
<function-class>info.magnolia.context.MgnlContext</function-class>
<function-signature>info.magnolia.cms.security.User getUser()</function-signature>
</function>
<function>
<name>ctx</name>
+ <description>Get the current context of this thread.</description>
<function-class>info.magnolia.context.MgnlContext</function-class>
<function-signature>info.magnolia.context.Context getInstance()</function-signature>
</function>
<function>
<name>contentByPath</name>
- <function-class>--to be set --</function-class>
+ <description>Return the content of a given path and repository</description>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>info.magnolia.cms.core.Content contentByPath(java.lang.String, java.lang.String)</function-signature>
</function>
<function>
<name>message</name>
- <function-class>--to be set --</function-class>
+ <description>Return the message of a given message key</description>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.String message(java.lang.String)</function-signature>
</function>
<function>
<name>develop</name>
- <function-class>--to be set --</function-class>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.Boolean develop()</function-signature>
</function>
<function>
<name>uuidlink</name>
- <function-class>--to be set --</function-class>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.String uuidLink(java.lang.String)</function-signature>
</function>
<function>
<name>link</name>
- <function-class>--to be set --</function-class>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.String link(java.lang.String)</function-signature>
</function>
<function>
<name>tolink</name>
- <function-class>--to be set --</function-class>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.String tolink(java.lang.String)</function-signature>
</function>
<function>
<name>tolinkOrText</name>
- <function-class>--to be set --</function-class>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.String tolinkOrText(java.lang.String)</function-signature>
</function>
<function>
@@ -92,62 +103,13 @@
<function-signature>java.lang.String encodeISO9075(java.lang.String)</function-signature>
</function>
<function>
- <name>formatDateTime</name>
- <description>
- Format a date and time based on a given pattern, or a builtin style (short, medium, long or full). Also supports
- different styles for date and time with the syntax "date_style;time_style" (e.g. "short;long")
- </description>
- <function-class>--to be set --</function-class>
- <function-signature>java.lang.String formatDateTime(java.util.Calendar, java.lang.String)</function-signature>
- </function>
- <function>
- <name>formatDateTimeWithLocale</name>
- <description>
- Format a date and time with a specified language (lowercase two-letter ISO-639 code) based on a given pattern, or a builtin style (short, medium, long or full). Also supports
- different styles for date and time with the syntax "date_style;time_style" (e.g. "short;long")
- </description>
- <function-class>--to be set --</function-class>
- <function-signature>java.lang.String formatDateTimeWithLocale(java.util.Calendar, java.lang.String,
- java.lang.String)</function-signature>
- </function>
- <function>
- <name>formatDate</name>
- <description>Format a date based on a given pattern, or a builtin style (short, medium, long or full)</description>
- <function-class>--to be set --</function-class>
- <function-signature>java.lang.String formatDate(java.util.Calendar, java.lang.String)</function-signature>
- </function>
- <function>
- <name>formatTime</name>
- <description>Format a time based on a given pattern, or a builtin style (short, medium, long or full)</description>
- <function-class>--to be set --</function-class>
- <function-signature>java.lang.String formatTime(java.util.Calendar, java.lang.String)</function-signature>
- </function>
- <function>
- <name>formatInterval</name>
- <description>format a milliseconds interval as a string like 523h 22m 18s</description>
- <function-class>--to be set --</function-class>
- <function-signature>java.lang.String formatInterval(java.lang.Long, java.lang.Boolean)</function-signature>
- </function>
- <function>
- <name>getMillisFromNow</name>
- <description>retrieve the milliseconds in difference between now and the input date</description>
- <function-class>--to be set --</function-class>
- <function-signature>java.lang.Long getMillisFromNow(java.util.Calendar)</function-signature>
- </function>
- <function>
- <name>parseDate</name>
- <description>parse a date with a given pattern and return the parsed date as a calendar object (null safe)</description>
- <function-class>--to be set --</function-class>
- <function-signature>java.util.Calendar parseDate(java.lang.String, java.lang.String)</function-signature>
- </function>
- <function>
<name>userInRole</name>
- <function-class>--to be set --</function-class>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.Boolean userInRole(java.lang.String)</function-signature>
</function>
<function>
<name>getValidatedLabel</name>
- <function-class>--to be set --</function-class>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.String getValidatedLabel(java.lang.String)</function-signature>
</function>
<function>
@@ -158,7 +120,7 @@
</description>
<example><![CDATA[mu:isStringInSeparatedList('xAxBxC', 'B', 'x') = true]]></example>
<example><![CDATA[mu:isStringInSeparatedList('xAxBxC', 'B', '[A|B]x') = false]]></example>
- <function-class>--to be set --</function-class>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.Boolean isStringInSeparatedList(java.lang.String, java.lang.String, java.lang.String)</function-signature>
</function>
<function>
@@ -170,7 +132,7 @@
<example><![CDATA[mu:isLine('test\r\nprova\r\ntest', 'prova') = true]]></example>
<example><![CDATA[mu:isLine('aaa\nbb\nc', 'c') = true]]></example>
<example><![CDATA[mu:isLine('aaa\nbb\nc', 'b') = false]]></example>
- <function-class>--to be set --</function-class>
+ <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class>
<function-signature>java.lang.Boolean isLine(java.lang.String, java.lang.String)</function-signature>
</function>
<function>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|