mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Web Script unit test base class added, helpers for JSON support in web scripts added (JSON reader, JSON error template), update to test webscript server to support easy submit of content, first cut of site service API (JS and HTTP) - create site and listSites available
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8950 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -76,4 +76,17 @@ public final class ScriptUtils extends BaseScopableProcessorExtension
|
||||
NodeRef nodeRef = new NodeRef(nodeRefString);
|
||||
return (ScriptNode)new ValueConverter().convertValueForScript(this.services, getScope(), null, nodeRef);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a boolean value from a string
|
||||
*
|
||||
* @see Boolean#parseBoolean(String)
|
||||
*
|
||||
* @param booleanString boolean string
|
||||
* @return boolean the boolean value
|
||||
*/
|
||||
public boolean toBoolean(String booleanString)
|
||||
{
|
||||
return Boolean.parseBoolean(booleanString);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user