mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge DEV/BELARUS/HEAD-2010_02_22 to HEAD
18814 : Implementation of sub-tasks SAIL-326, SAIL-327 and SAIL-329 is complete. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18831 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -28,6 +28,7 @@ import java.util.List;
|
||||
|
||||
import org.alfresco.repo.processor.BaseProcessorExtension;
|
||||
import org.alfresco.service.ServiceRegistry;
|
||||
import org.alfresco.service.namespace.NamespaceException;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
import freemarker.ext.beans.BeanModel;
|
||||
@@ -80,8 +81,16 @@ public final class ShortQNameMethod extends BaseProcessorExtension implements Te
|
||||
arg0String = ((TemplateScalarModel)arg0).getAsString();
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
result = createQName(arg0String).toPrefixString(services.getNamespaceService());
|
||||
}
|
||||
catch (NamespaceException e)
|
||||
{
|
||||
// not valid qname -> return original value
|
||||
result = arg0String;
|
||||
}
|
||||
}
|
||||
|
||||
return result != null ? result : "";
|
||||
}
|
||||
|
Reference in New Issue
Block a user