-
Notifications
You must be signed in to change notification settings - Fork 48
/
HiveMindAabDocumentData.xml
78 lines (69 loc) · 4.88 KB
/
HiveMindAabDocumentData.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="UTF-8"?>
<!--
This software is in the public domain under CC0 1.0 Universal plus a
Grant of Patent License.
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed without any
warranty.
You should have received a copy of the CC0 Public Domain Dedication
along with this software (see the LICENSE.md file). If not, see
<http://creativecommons.org/publicdomain/zero/1.0/>.
-->
<entity-facade-xml type="seed">
<!-- Wiki Page -->
<dataDocuments dataDocumentId="HmWikiPage" indexName="hivemind" documentName="Wiki Page"
primaryEntityName="moqui.resource.wiki.WikiPage" documentTitle="${wikiSpaceId}/${pagePath?:''}"
manualDataServiceName="org.moqui.impl.WikiServices.get#WikiPageManualDocumentData">
<!-- NOTE: service purpose is to get wiki page contents from the file (resource) -->
<fields fieldSeqId="01" fieldPath="wikiPageId"/>
<fields fieldSeqId="02" fieldPath="wikiSpaceId"/>
<fields fieldSeqId="03" fieldPath="pagePath"/>
<fields fieldSeqId="04" fieldPath="space:description" fieldNameAlias="space"/>
<!-- the history fields are useful for update history and search by users who have updated a page, but also trigger indexing on page update -->
<fields fieldSeqId="10" fieldPath="histories:historySeqId"/>
<fields fieldSeqId="11" fieldPath="histories:changeDateTime"/>
<fields fieldSeqId="12" fieldPath="histories:userId"/>
<!-- causing issues with false update notice for other fields on UserAccount like during login: <fields fieldSeqId="01" fieldPath="histories:user:username"/> -->
<links linkSeqId="01" label="Wiki Page" linkUrl="/apps/hm/wiki/${wikiSpaceId}/${pagePath?:''}"/>
</dataDocuments>
<!-- Project -->
<org.moqui.impl.EntityServices.cloneDataDocument dataDocumentId="MantleProject" newDataDocumentId="HmProject"
newIndexName="hivemind" copyConditions="true"/>
<moqui.entity.document.DataDocumentLink dataDocumentId="HmProject" linkSeqId="01" label="Edit Project"
linkUrl="/apps/hm/Project/ProjectSummary?workEffortId=${workEffortId}"/>
<!-- Task -->
<org.moqui.impl.EntityServices.cloneDataDocument dataDocumentId="MantleTask" newDataDocumentId="HmTask"
newIndexName="hivemind" copyConditions="true"/>
<moqui.entity.document.DataDocumentLink dataDocumentId="HmTask" linkSeqId="01" label="Task Summary"
linkUrl="/apps/hm/Task/TaskSummary?workEffortId=${workEffortId}"/>
<!-- Request -->
<org.moqui.impl.EntityServices.cloneDataDocument dataDocumentId="MantleRequest" newDataDocumentId="HmRequest" newIndexName="hivemind"/>
<moqui.entity.document.DataDocumentLink dataDocumentId="HmRequest" linkSeqId="01" label="Edit Request"
linkUrl="/apps/hm/Request/EditRequest?requestId=${requestId}"/>
<!-- Party -->
<org.moqui.impl.EntityServices.cloneDataDocument dataDocumentId="MantleParty" newDataDocumentId="HmParty" newIndexName="hivemind"/>
<moqui.entity.document.DataDocumentLink dataDocumentId="HmParty" linkSeqId="01" label="Edit Party" urlType="screen"
linkUrl="//apps/hmadmin/Party/EditParty?partyId=${partyId}"/>
<!-- ================ -->
<!-- Search Data Feed -->
<moqui.entity.feed.DataFeed dataFeedId="HiveMindSearch" dataFeedTypeEnumId="DTFDTP_RT_PUSH"
feedName="HiveMind Search" feedReceiveServiceName="HiveMind.SearchServices.indexAndNotify#HiveMindDocuments">
<documents dataDocumentId="HmWikiPage"/>
<documents dataDocumentId="HmProject"/>
<documents dataDocumentId="HmTask"/>
<documents dataDocumentId="HmRequest"/>
<documents dataDocumentId="HmParty"/>
</moqui.entity.feed.DataFeed>
<!-- explicitly index the Data Feed documents since the trigger won't be in place until restart -->
<org.moqui.search.SearchServices.indexDataFeedDocuments dataFeedId="HiveMindSearch"/>
<!-- EmailTemplates for Feed-driven Update Notifications -->
<moqui.basic.email.EmailTemplate emailTemplateId="HM_TASK_UPDATE" description="HiveMind Task Update Notification"
emailServerId="SYSTEM" bodyScreenLocation="component://HiveMind/screen/TaskUpdateNotification.xml"
webappName="webroot" fromAddress="" ccAddresses="" bccAddresses=""
subject="Task Updated: ${document._id} - ${document.name}" sendPartial="Y"/>
<moqui.basic.email.EmailTemplate emailTemplateId="HM_WIKI_PAGE_UPDATE" description="HiveMind WikiPage Update Notification"
emailServerId="SYSTEM" bodyScreenLocation="component://HiveMind/screen/WikiPageUpdateNotification.xml"
webappName="webroot" fromAddress="" ccAddresses="" bccAddresses=""
subject="Wiki Page Updated: ${document.wikiSpaceId}/${document.pagePath}" sendPartial="Y"/>
</entity-facade-xml>