mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
60032: Merged BRANCHES/DEV/43UIDEV to HEAD-BUG-FIX: This branch contained the Aikau and Surf framework updates implemented during the development hiatus post-4.2 completion. This features the change of Surf from 1.2.0 to Surf 1.2.1 which is for v4.3 releases only. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62260 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -22,6 +22,49 @@
|
||||
<parent>cm:content</parent>
|
||||
</type>
|
||||
|
||||
<!-- A Surf application type-->
|
||||
<type name="surf:applicationType">
|
||||
<title>Surf Application Type</title>
|
||||
<parent>cm:folder</parent>
|
||||
<properties>
|
||||
<property name="surf:rootRage">
|
||||
<type>d:text</type>
|
||||
<mandatory enforced="true">true</mandatory>
|
||||
<multiple>false</multiple>
|
||||
<index enabled="true">
|
||||
<tokenised>false</tokenised>
|
||||
</index>
|
||||
</property>
|
||||
<property name="surf:groupVisibility">
|
||||
<type>d:text</type>
|
||||
<mandatory>false</mandatory>
|
||||
<multiple>false</multiple>
|
||||
<index enabled="true">
|
||||
<tokenised>false</tokenised>
|
||||
</index>
|
||||
</property>
|
||||
</properties>
|
||||
</type>
|
||||
|
||||
<!-- A Surf application instance -->
|
||||
<type name="surf:applicationInstance">
|
||||
<title>Surf Application Instance</title>
|
||||
<parent>cm:folder</parent>
|
||||
<associations>
|
||||
<association name="surf:applicationType">
|
||||
<source>
|
||||
<mandatory>false</mandatory>
|
||||
<many>true</many>
|
||||
</source>
|
||||
<target>
|
||||
<class>surf:applicationType</class>
|
||||
<mandatory>true</mandatory>
|
||||
<many>false</many>
|
||||
</target>
|
||||
</association>
|
||||
</associations>
|
||||
</type>
|
||||
|
||||
</types>
|
||||
|
||||
<aspects>
|
||||
|
11
pom.xml
11
pom.xml
@@ -146,10 +146,11 @@
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<!-- Dependency on Alfresco patched version of Rhino available in artfifact.alfresco.com -->
|
||||
<dependency>
|
||||
<groupId>rhino</groupId>
|
||||
<artifactId>js</artifactId>
|
||||
<version>1.6R7-patched</version>
|
||||
<groupId>org.mozilla</groupId>
|
||||
<artifactId>rhino</artifactId>
|
||||
<version>1.7R4-alfresco-patched</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
@@ -373,9 +374,9 @@
|
||||
</dependency>
|
||||
<!-- Use patched FreeMarker to fix ALF-10188 -->
|
||||
<dependency>
|
||||
<groupId>org.freemarker</groupId>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>freemarker</artifactId>
|
||||
<version>2.3.18-alfresco-patched-2</version>
|
||||
<version>2.3.20-alfresco-patched</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
|
@@ -533,6 +533,8 @@ public class Search extends BaseScopableProcessorExtension
|
||||
{
|
||||
Object[] results = null;
|
||||
|
||||
// convert values from JS to Java - may contain native JS object such as ConsString etc.
|
||||
search = new ValueConverter().convertValueForJava(search);
|
||||
if (search instanceof Serializable)
|
||||
{
|
||||
Serializable obj = new ValueConverter().convertValueForRepo((Serializable)search);
|
||||
|
@@ -275,6 +275,12 @@ public class ValueConverter
|
||||
}
|
||||
value = list;
|
||||
}
|
||||
else if (value instanceof CharSequence)
|
||||
{
|
||||
// Rhino has some interesting internal classes such as ConsString which cannot be cast to String
|
||||
// but fortunately are instanceof CharSequence so we can toString() them.
|
||||
value = value.toString();
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user