mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
78403: Merged EOL (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 75700: ACE-2149: EOL AVM / WCM - Remove most of the AVM and WCM beans, scripts, classes, patches, etc - The Explorer client is very broken for compilation - TODO: Remove all WCM-related functionality, which I thought would be best left to a UI dev I've murdered many of the classes and beans but there's more to do - The repository compiles TODO: Get it running again - TODO: Check if we can wipe the 'deployment' project as well git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82540 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -232,7 +232,7 @@ public class JscriptWorkflowTask extends BaseScopableProcessorExtension implemen
|
||||
Collection<QName> allowedTypes = getAllowedPackageResourceTypes();
|
||||
for (NodeRef node : contents)
|
||||
{
|
||||
if (isAvmResource(node, allowedTypes))
|
||||
if (isValidResource(node, allowedTypes))
|
||||
{
|
||||
ScriptNode scriptNode = new ScriptNode(node, serviceRegistry, getScope());
|
||||
resources.add(scriptNode);
|
||||
@@ -250,10 +250,8 @@ public class JscriptWorkflowTask extends BaseScopableProcessorExtension implemen
|
||||
return allowedTypes;
|
||||
}
|
||||
|
||||
private boolean isAvmResource(NodeRef node, Collection<QName> allowedTypes)
|
||||
private boolean isValidResource(NodeRef node, Collection<QName> allowedTypes)
|
||||
{
|
||||
if(isAvmNode(node))
|
||||
return true;
|
||||
if (nodeService.exists(node))
|
||||
{
|
||||
//Check if the node is one of the allowedTypes.
|
||||
@@ -262,11 +260,6 @@ public class JscriptWorkflowTask extends BaseScopableProcessorExtension implemen
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean isAvmNode(NodeRef node)
|
||||
{
|
||||
return StoreRef.PROTOCOL_AVM.equals(node.getStoreRef().getProtocol());
|
||||
}
|
||||
|
||||
private static class DefaultNamespaceProvider implements NamespacePrefixResolverProvider
|
||||
{
|
||||
private static final long serialVersionUID = -7015209142379905617L;
|
||||
|
Reference in New Issue
Block a user