From: <me...@us...> - 2010-01-15 15:41:16
|
Revision: 1652 http://openutils.svn.sourceforge.net/openutils/?rev=1652&view=rev Author: memila Date: 2010-01-15 15:41:09 +0000 (Fri, 15 Jan 2010) Log Message: ----------- description added Modified Paths: -------------- trunk/openutils-mgnlutils/src/main/java/it/openutils/mgnlutils/el/MgnlUtilsElFunctions.java trunk/openutils-mgnlutils/src/main/resources/META-INF/tld/mgnlutils.tld Modified: trunk/openutils-mgnlutils/src/main/java/it/openutils/mgnlutils/el/MgnlUtilsElFunctions.java =================================================================== --- trunk/openutils-mgnlutils/src/main/java/it/openutils/mgnlutils/el/MgnlUtilsElFunctions.java 2010-01-15 15:12:14 UTC (rev 1651) +++ trunk/openutils-mgnlutils/src/main/java/it/openutils/mgnlutils/el/MgnlUtilsElFunctions.java 2010-01-15 15:41:09 UTC (rev 1652) @@ -192,7 +192,12 @@ } return cleanedurl; } - + /** + * Create an html complete link from a string composed by link \t link text. If the link is empty the function return only the text + * @param String tabseparatedstring + * @return a link or a text + */ + public static String tolinkOrText(String tabseparatedstring) { @@ -307,7 +312,11 @@ return null; } - + /** + * Return true if the current user has a given role + * @param String role + * @return boolean value + */ public static boolean userInRole(String role) { return MgnlContext.getUser().hasRole(role); 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 15:12:14 UTC (rev 1651) +++ trunk/openutils-mgnlutils/src/main/resources/META-INF/tld/mgnlutils.tld 2010-01-15 15:41:09 UTC (rev 1652) @@ -97,21 +97,25 @@ </function> <function> <name>tolinkOrText</name> + <description>Create an html complete link from a string composed by link \t link text. If the link is empty the function return only the text</description> <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class> <function-signature>java.lang.String tolinkOrText(java.lang.String)</function-signature> </function> <function> <name>encodeISO9075</name> - <function-class>--to be set --</function-class> + <description>encode handle for a JackRabbit search</description> + <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class> <function-signature>java.lang.String encodeISO9075(java.lang.String)</function-signature> </function> <function> <name>userInRole</name> + <description>Return true if the current user has a given role</description> <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> + <description>Retrieve validate label for input string</description> <function-class>it.openutils.mgnlutils.el.MgnlUtilsElFunctions</function-class> <function-signature>java.lang.String getValidatedLabel(java.lang.String)</function-signature> </function> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |