mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
[SEARCH-2139]
updated custom model
This commit is contained in:
@@ -9,33 +9,23 @@
|
||||
</namespaces>
|
||||
<data-types/>
|
||||
<constraints/>
|
||||
<types>
|
||||
<type name="allfieldtypes:document">
|
||||
<title>allfieldtypes Content</title>
|
||||
<parent>cm:content</parent>
|
||||
<aspects>
|
||||
<aspect name="allfieldtypes:content">
|
||||
<title>content</title>
|
||||
<properties>
|
||||
<property name="allfieldtypes:TextPropertyA">
|
||||
<title>Text</title>
|
||||
<type>d:text</type>
|
||||
<property name="allfieldtypes:contentTokenizedBoth">
|
||||
<title>alltypecontent</title>
|
||||
<type>d:content</type>
|
||||
<mandatory>false</mandatory>
|
||||
<index enabled="true">
|
||||
<tokenised>BOTH</tokenised>
|
||||
</index>
|
||||
</property>
|
||||
</properties>
|
||||
|
||||
<associations>
|
||||
<association name="allfieldtypes:allfieldtypesContent">
|
||||
<source>
|
||||
<mandatory>false</mandatory>
|
||||
<many>false</many>
|
||||
</source>
|
||||
<target>
|
||||
<class>cm:content</class>
|
||||
<mandatory>false</mandatory>
|
||||
<many>false</many>
|
||||
</target>
|
||||
</association>
|
||||
</associations>
|
||||
</type>
|
||||
</types>
|
||||
<aspects>
|
||||
<associations/>
|
||||
<overrides/>
|
||||
<mandatory-aspects/>
|
||||
</aspect>
|
||||
<aspect name="allfieldtypes:text">
|
||||
<title>text</title>
|
||||
<properties>
|
||||
|
||||
+8
-1
@@ -34,7 +34,14 @@ public class FieldDefinitionTest extends AbstractSearchServicesE2ETest {
|
||||
// dataContent.usingUser(testUser).usingSite(testSite).createCustomContent(File1, "D:allfieldtypes:document", new CustomObjectTypeProperties()
|
||||
// .addProperty("allfieldtypes:mltextLOVPartial", "text folder-2"));
|
||||
|
||||
dataContent.usingUser(testUser).usingSite(testSite).createCustomContent(File1, "allfieldtypes:document", new CustomObjectTypeProperties());
|
||||
dataContent.usingUser(testUser).usingSite(testSite).createCustomContent(File1, "cmis:document", new CustomObjectTypeProperties());
|
||||
|
||||
cmisApi.authenticateUser(testUser).usingResource(File1).addSecondaryTypes("P:allfieldtypes:text", "P:allfieldtypes:content")
|
||||
.updateProperty("allfieldtypes:mltextLOVPartial", "field definition test")
|
||||
.updateProperty("allfieldtypes:textPatternUnique", "field definition test");
|
||||
// .updateProperty("allfieldtypes:contentTokenizedBoth", "field definition content test");
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Test(priority = 1)
|
||||
|
||||
Reference in New Issue
Block a user