Merged DEV/FORMS to HEAD (all activity from branch creation r12855 through r13056)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13058 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2009-02-04 15:03:18 +00:00
parent 64ee008d7e
commit 5eb5855902
11 changed files with 527 additions and 85 deletions

View File

@@ -24,15 +24,18 @@
*/
package org.alfresco.repo.jscript;
import java.util.Date;
import org.alfresco.service.ServiceRegistry;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.util.ISO8601DateFormat;
import org.alfresco.service.cmr.module.ModuleService;
import org.alfresco.service.cmr.module.ModuleDetails;
import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName;
/**
* Place for general and miscellenous utility functions not already found in generic JavaScript.
* Place for general and miscellaneous utility functions not already found in generic JavaScript.
*
* @author Kevin Roast
*/
@@ -94,6 +97,19 @@ public final class ScriptUtils extends BaseScopableProcessorExtension
return Boolean.parseBoolean(booleanString);
}
/**
* Converts the specified Date object to an
* <a href="http://www.iso.org/iso/date_and_time_format">ISO 8601</a>-formatted
* String.
*
* @param d date
* @return an ISO 8601-formatted date String.
*/
public String toISO8601(Date d)
{
return ISO8601DateFormat.format(d);
}
/**
* Function to check if a module is installed
*