mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user