diff --git a/entity/KnowledgeDiscussion_entity/KnowledgeDiscussion_entity.aod b/entity/KnowledgeDiscussion_entity/KnowledgeDiscussion_entity.aod index 0b70f5dfc1e35d98e753252c683061c4e542b143..79d764acc09b4d2c7f678768bbbc646a4e2a1a14 100644 --- a/entity/KnowledgeDiscussion_entity/KnowledgeDiscussion_entity.aod +++ b/entity/KnowledgeDiscussion_entity/KnowledgeDiscussion_entity.aod @@ -2,6 +2,7 @@ <entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17"> <name>KnowledgeDiscussion_entity</name> <majorModelMode>DISTRIBUTED</majorModelMode> + <documentation>%aditoprj%/entity/KnowledgeDiscussion_entity/documentation.adoc</documentation> <title>Discussion</title> <grantCreateProcess>%aditoprj%/entity/KnowledgeDiscussion_entity/grantCreateProcess.js</grantCreateProcess> <grantUpdateProcess>%aditoprj%/entity/KnowledgeDiscussion_entity/grantUpdateProcess.js</grantUpdateProcess> @@ -61,6 +62,11 @@ </entityField> <entityConsumer> <name>StatusKeyword</name> + <dependency> + <name>dependency</name> + <entityName>KeywordEntry_entity</entityName> + <fieldName>SpecificContainerKeywords</fieldName> + </dependency> <children> <entityParameter> <name>ContainerName_param</name> @@ -71,14 +77,10 @@ <valueProcess>%aditoprj%/entity/KnowledgeDiscussion_entity/entityfields/statuskeyword/children/onlyactives_param/valueProcess.js</valueProcess> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>KeywordEntry_entity</entityName> - <fieldName>SpecificContainerKeywords</fieldName> - </dependency> </entityConsumer> <entityProvider> <name>ByKnowledgeId</name> + <documentation>%aditoprj%/entity/KnowledgeDiscussion_entity/entityfields/byknowledgeid/documentation.adoc</documentation> <dependencies> <entityDependency> <name>fbacb136-2690-495a-82c5-b6ab1576d3f9</name> diff --git a/entity/KnowledgeDiscussion_entity/documentation.adoc b/entity/KnowledgeDiscussion_entity/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..d2fa0a728ff196aa8dba9163da1aefd62fd12eb1 --- /dev/null +++ b/entity/KnowledgeDiscussion_entity/documentation.adoc @@ -0,0 +1,3 @@ +This entity manages the discussion "forum" which is linked to a knowledge entry +It uses a JDito recordcontainer to build the tree. +The tree is always sorted by latest action. So the dicussion where an answer was added last, is put on top \ No newline at end of file diff --git a/entity/KnowledgeDiscussion_entity/entityfields/byknowledgeid/documentation.adoc b/entity/KnowledgeDiscussion_entity/entityfields/byknowledgeid/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..f57edf8c453eebabc900ee3944e040bccc7154f0 --- /dev/null +++ b/entity/KnowledgeDiscussion_entity/entityfields/byknowledgeid/documentation.adoc @@ -0,0 +1,3 @@ +This provider needs the id of a knowledge entry to deliver all discussions of it + +Always fill KnowledgeId_param \ No newline at end of file diff --git a/entity/KnowledgeLink_entity/KnowledgeLink_entity.aod b/entity/KnowledgeLink_entity/KnowledgeLink_entity.aod index 81ffc1da3d81fde9f4aea3c88dd1ef664d8af182..93ad79b6566ef190263ed841571ff5d38d9e2341 100644 --- a/entity/KnowledgeLink_entity/KnowledgeLink_entity.aod +++ b/entity/KnowledgeLink_entity/KnowledgeLink_entity.aod @@ -2,6 +2,7 @@ <entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17"> <name>KnowledgeLink_entity</name> <majorModelMode>DISTRIBUTED</majorModelMode> + <documentation>%aditoprj%/entity/KnowledgeLink_entity/documentation.adoc</documentation> <title>Link</title> <iconIdProcess>%aditoprj%/entity/KnowledgeLink_entity/iconIdProcess.js</iconIdProcess> <titlePlural>Links</titlePlural> @@ -57,17 +58,17 @@ </entityConsumer> <entityConsumer> <name>Objects</name> + <dependency> + <name>dependency</name> + <entityName>ObjectProxy_entity</entityName> + <fieldName>FilteredObjects</fieldName> + </dependency> <children> <entityParameter> <name>Entity_param</name> <valueProcess>%aditoprj%/entity/KnowledgeLink_entity/entityfields/objects/children/entity_param/valueProcess.js</valueProcess> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>ObjectProxy_entity</entityName> - <fieldName>FilteredObjects</fieldName> - </dependency> </entityConsumer> <entityParameter> <name>KnowledgeManagementId_param</name> @@ -77,16 +78,7 @@ <name>ByKnowledgeId</name> <targetContextField>OBJECT_TYPE</targetContextField> <targetIdField>ROW_ID</targetIdField> - <children> - <entityParameter> - <name>ObjectType_param</name> - <expose v="false" /> - </entityParameter> - <entityParameter> - <name>RowId_param</name> - <expose v="false" /> - </entityParameter> - </children> + <documentation>%aditoprj%/entity/KnowledgeLink_entity/entityfields/byknowledgeid/documentation.adoc</documentation> <dependencies> <entityDependency> <name>c3ed10c1-db55-4e55-9c18-2b8d400df033</name> @@ -95,14 +87,13 @@ <isConsumer v="false" /> </entityDependency> </dependencies> - </entityProvider> - <entityProvider> - <name>ByLink</name> - <targetContextField>OBJECT_TYPE</targetContextField> - <targetIdField>ROW_ID</targetIdField> <children> <entityParameter> - <name>KnowledgeManagementId_param</name> + <name>ObjectType_param</name> + <expose v="false" /> + </entityParameter> + <entityParameter> + <name>RowId_param</name> <expose v="false" /> </entityParameter> </children> diff --git a/entity/KnowledgeLink_entity/documentation.adoc b/entity/KnowledgeLink_entity/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..32310ca526d16e0c87a4db78a1ef86dfeb15b45d --- /dev/null +++ b/entity/KnowledgeLink_entity/documentation.adoc @@ -0,0 +1 @@ +This entity is used to manage links to other objects, that are read from ObjectProxy_entity via a consumer \ No newline at end of file diff --git a/entity/KnowledgeLink_entity/entityfields/byknowledgeid/documentation.adoc b/entity/KnowledgeLink_entity/entityfields/byknowledgeid/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..94bf48727d7cf920859494f4f7a35b058a4c90b1 --- /dev/null +++ b/entity/KnowledgeLink_entity/entityfields/byknowledgeid/documentation.adoc @@ -0,0 +1 @@ +Delivers all links to other objects that are linked to a knowledge entry \ No newline at end of file diff --git a/entity/KnowledgeManagementTagList_entity/KnowledgeManagementTagList_entity.aod b/entity/KnowledgeManagementTagList_entity/KnowledgeManagementTagList_entity.aod index c7b24df7f146ca735ea1aa07927aafbd8a298a67..3a8e46df4e9a2abe34e632740db8f66c0a082da0 100644 --- a/entity/KnowledgeManagementTagList_entity/KnowledgeManagementTagList_entity.aod +++ b/entity/KnowledgeManagementTagList_entity/KnowledgeManagementTagList_entity.aod @@ -2,6 +2,7 @@ <entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17"> <name>KnowledgeManagementTagList_entity</name> <majorModelMode>DISTRIBUTED</majorModelMode> + <documentation>%aditoprj%/entity/KnowledgeManagementTagList_entity/documentation.adoc</documentation> <contentTitleProcess>%aditoprj%/entity/KnowledgeManagementTagList_entity/contentTitleProcess.js</contentTitleProcess> <recordContainer>JDito_TagList</recordContainer> <entityFields> @@ -16,6 +17,7 @@ </entityField> <entityProvider> <name>CompleteList</name> + <documentation>%aditoprj%/entity/KnowledgeManagementTagList_entity/entityfields/completelist/documentation.adoc</documentation> <dependencies> <entityDependency> <name>85925baa-5edc-4908-804e-f7ec4c5a2a0c</name> diff --git a/entity/KnowledgeManagementTagList_entity/documentation.adoc b/entity/KnowledgeManagementTagList_entity/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..d2eef458abade304a5c07db9ebbdff5e83879704 --- /dev/null +++ b/entity/KnowledgeManagementTagList_entity/documentation.adoc @@ -0,0 +1 @@ +The entity provides a complete list of all existing tags and is consumed where tags can be chosen \ No newline at end of file diff --git a/entity/KnowledgeManagementTagList_entity/entityfields/completelist/documentation.adoc b/entity/KnowledgeManagementTagList_entity/entityfields/completelist/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..d26c90a04d79b44a90c99cc2fdbafb008ea7fcbe --- /dev/null +++ b/entity/KnowledgeManagementTagList_entity/entityfields/completelist/documentation.adoc @@ -0,0 +1 @@ +provides a complete list of all possible tags, so they can be chosen when you add tags \ No newline at end of file diff --git a/entity/KnowledgeManagementTags_entity/KnowledgeManagementTags_entity.aod b/entity/KnowledgeManagementTags_entity/KnowledgeManagementTags_entity.aod index 10b75658ad1ebbc11fb08b9e00198ea8b0e1fe83..14f18612c20c2205a6932245f0baa06728d0b0e1 100644 --- a/entity/KnowledgeManagementTags_entity/KnowledgeManagementTags_entity.aod +++ b/entity/KnowledgeManagementTags_entity/KnowledgeManagementTags_entity.aod @@ -2,6 +2,7 @@ <entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17"> <name>KnowledgeManagementTags_entity</name> <majorModelMode>DISTRIBUTED</majorModelMode> + <documentation>%aditoprj%/entity/KnowledgeManagementTags_entity/documentation.adoc</documentation> <recordContainer>JDito_KnowledgeManagementKeywords</recordContainer> <entityFields> <entityProvider> @@ -13,12 +14,7 @@ </entityParameter> <entityProvider> <name>ByKnowledgeManagementId</name> - <children> - <entityParameter> - <name>KnowledgeManagementId_param</name> - <mandatory v="true" /> - </entityParameter> - </children> + <documentation>%aditoprj%/entity/KnowledgeManagementTags_entity/entityfields/byknowledgemanagementid/documentation.adoc</documentation> <dependencies> <entityDependency> <name>8d86a61b-0fe3-44c4-a512-e044c990fded</name> @@ -27,6 +23,12 @@ <isConsumer v="false" /> </entityDependency> </dependencies> + <children> + <entityParameter> + <name>KnowledgeManagementId_param</name> + <mandatory v="true" /> + </entityParameter> + </children> </entityProvider> <entityField> <name>TAG</name> diff --git a/entity/KnowledgeManagementTags_entity/documentation.adoc b/entity/KnowledgeManagementTags_entity/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..ca20973196d16e0261b5acb7b6f4af869f56b496 --- /dev/null +++ b/entity/KnowledgeManagementTags_entity/documentation.adoc @@ -0,0 +1,5 @@ +This entity represents the tags of a knowledge entry and handles adding, editing and deleting of linked tags + +If a tag, which doesn't exist yet is entered, the tag is created and then added to the knowledge entry + +Always fill KnowledgeManagementId_param \ No newline at end of file diff --git a/entity/KnowledgeManagementTags_entity/entityfields/byknowledgemanagementid/documentation.adoc b/entity/KnowledgeManagementTags_entity/entityfields/byknowledgemanagementid/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..76bdf00546188f3a4331b2508e472c51b94cb94b --- /dev/null +++ b/entity/KnowledgeManagementTags_entity/entityfields/byknowledgemanagementid/documentation.adoc @@ -0,0 +1,3 @@ +This provider delivers the list of tags of a knowledge entry + +KnowledgeManagementId_param has to be filled, otherwise it won't work \ No newline at end of file diff --git a/entity/KnowledgeManagement_entity/KnowledgeManagement_entity.aod b/entity/KnowledgeManagement_entity/KnowledgeManagement_entity.aod index f52fc433f41faf4abc036c2483ff961baad4ff31..ca44262effc8a879e0cbabe12780ae3d656eb832 100644 --- a/entity/KnowledgeManagement_entity/KnowledgeManagement_entity.aod +++ b/entity/KnowledgeManagement_entity/KnowledgeManagement_entity.aod @@ -2,6 +2,7 @@ <entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17"> <name>KnowledgeManagement_entity</name> <majorModelMode>DISTRIBUTED</majorModelMode> + <documentation>%aditoprj%/entity/KnowledgeManagement_entity/documentation.adoc</documentation> <icon>VAADIN:ACADEMY_CAP</icon> <title>Knowledge</title> <grantUpdateProcess>%aditoprj%/entity/KnowledgeManagement_entity/grantUpdateProcess.js</grantUpdateProcess> @@ -16,13 +17,6 @@ <entityFields> <entityProvider> <name>#PROVIDER</name> - <dependencies> - <entityDependency> - <name>40cf66ca-421f-47f6-8ecc-8360657e0640</name> - <entityName>KnowledgeNewsFeed_entity</entityName> - <isConsumer v="false" /> - </entityDependency> - </dependencies> </entityProvider> <entityField> <name>KNOWLEDGEMANAGEMENTID</name> @@ -108,35 +102,36 @@ <refreshParent v="true" /> <state>EDITABLE</state> <onValidation>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/tagsbyknowledgeid/onValidation.js</onValidation> + <dependency> + <name>dependency</name> + <entityName>KnowledgeManagementTags_entity</entityName> + <fieldName>ByKnowledgeManagementId</fieldName> + </dependency> <children> <entityParameter> <name>KnowledgeManagementId_param</name> <valueProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/tagsbyknowledgeid/children/knowledgemanagementid_param/valueProcess.js</valueProcess> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>KnowledgeManagementTags_entity</entityName> - <fieldName>ByKnowledgeManagementId</fieldName> - </dependency> </entityConsumer> <entityConsumer> <name>DiscussionsByKnowledgeId</name> <refreshParent v="true" /> + <dependency> + <name>dependency</name> + <entityName>KnowledgeDiscussion_entity</entityName> + <fieldName>ByKnowledgeId</fieldName> + </dependency> <children> <entityParameter> <name>KnowledgeId_param</name> <valueProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/discussionsbyknowledgeid/children/knowledgeid_param/valueProcess.js</valueProcess> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>KnowledgeDiscussion_entity</entityName> - <fieldName>ByKnowledgeId</fieldName> - </dependency> </entityConsumer> <entityProvider> <name>Provider</name> + <documentation>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/provider/documentation.adoc</documentation> </entityProvider> <entityConsumer> <name>PersonContacts</name> @@ -148,37 +143,42 @@ </entityConsumer> <entityConsumer> <name>KeywordKnowledgeType</name> + <dependency> + <name>dependency</name> + <entityName>KeywordEntry_entity</entityName> + <fieldName>SpecificContainerKeywords</fieldName> + </dependency> <children> <entityParameter> <name>ContainerName_param</name> <valueProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/keywordknowledgetype/children/containername_param/valueProcess.js</valueProcess> </entityParameter> </children> + </entityConsumer> + <entityConsumer> + <name>KeywordPublish</name> <dependency> <name>dependency</name> <entityName>KeywordEntry_entity</entityName> <fieldName>SpecificContainerKeywords</fieldName> </dependency> - </entityConsumer> - <entityConsumer> - <name>KeywordPublish</name> <children> <entityParameter> <name>ContainerName_param</name> <valueProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/keywordpublish/children/containername_param/valueProcess.js</valueProcess> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>KeywordEntry_entity</entityName> - <fieldName>SpecificContainerKeywords</fieldName> - </dependency> </entityConsumer> <entityField> <name>indexTag</name> </entityField> <entityConsumer> <name>LinkedDocuments</name> + <dependency> + <name>dependency</name> + <entityName>Document_entity</entityName> + <fieldName>Documents</fieldName> + </dependency> <children> <entityParameter> <name>AssignmentTable_param</name> @@ -189,11 +189,6 @@ <valueProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/linkeddocuments/children/assignmentrowid_param/valueProcess.js</valueProcess> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>Document_entity</entityName> - <fieldName>Documents</fieldName> - </dependency> </entityConsumer> <entityActionField> <name>openEntryAsMail</name> @@ -206,17 +201,17 @@ <entityConsumer> <name>LinksByKnowledgeId</name> <refreshParent v="true" /> + <dependency> + <name>dependency</name> + <entityName>KnowledgeLink_entity</entityName> + <fieldName>ByKnowledgeId</fieldName> + </dependency> <children> <entityParameter> <name>KnowledgeManagementId_param</name> <valueProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/linksbyknowledgeid/children/knowledgemanagementid_param/valueProcess.js</valueProcess> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>KnowledgeLink_entity</entityName> - <fieldName>ByKnowledgeId</fieldName> - </dependency> </entityConsumer> <entityField> <name>LastChange</name> @@ -225,17 +220,17 @@ </entityField> <entityConsumer> <name>LogHistories</name> + <dependency> + <name>dependency</name> + <entityName>LogHistory_entity</entityName> + <fieldName>LogHistoryProvider</fieldName> + </dependency> <children> <entityParameter> <name>tablenames_param</name> <valueProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/loghistories/children/tablenames_param/valueProcess.js</valueProcess> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>LogHistory_entity</entityName> - <fieldName>LogHistoryProvider</fieldName> - </dependency> </entityConsumer> <entityActionField> <name>exportHTML_action</name> @@ -277,6 +272,11 @@ <name>KnowledgeRoles</name> <stateProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/knowledgeroles/stateProcess.js</stateProcess> <onValidation>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/knowledgeroles/onValidation.js</onValidation> + <dependency> + <name>dependency</name> + <entityName>KnowledgeRole_entity</entityName> + <fieldName>KnowledgeRole</fieldName> + </dependency> <children> <entityParameter> <name>KnowledgeManagement_param</name> @@ -288,14 +288,14 @@ <expose v="true" /> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>KnowledgeRole_entity</entityName> - <fieldName>KnowledgeRole</fieldName> - </dependency> </entityConsumer> <entityConsumer> <name>Tasks</name> + <dependency> + <name>dependency</name> + <entityName>Task_entity</entityName> + <fieldName>Tasks</fieldName> + </dependency> <children> <entityParameter> <name>ObjectId_param</name> @@ -310,11 +310,6 @@ <valueProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/tasks/children/presetlinks_param/valueProcess.js</valueProcess> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>Task_entity</entityName> - <fieldName>Tasks</fieldName> - </dependency> </entityConsumer> <entityField> <name>RESPONSIBLE_CONTACT_ID</name> @@ -328,6 +323,7 @@ <name>PUBLISH</name> <title>Publishing level</title> <consumer>KeywordPublish</consumer> + <state>INVISIBLE</state> <valueProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/publish/valueProcess.js</valueProcess> <displayValueProcess>%aditoprj%/entity/KnowledgeManagement_entity/entityfields/publish/displayValueProcess.js</displayValueProcess> </entityField> diff --git a/entity/KnowledgeManagement_entity/documentation.adoc b/entity/KnowledgeManagement_entity/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..db9002b6103f2b1f3c04f5b55d9b2e457ee0ef17 --- /dev/null +++ b/entity/KnowledgeManagement_entity/documentation.adoc @@ -0,0 +1,3 @@ +The main entity of the knowledgemanagement + +manages the content and consumes discussions, links, log history, documents \ No newline at end of file diff --git a/entity/KnowledgeManagement_entity/entityfields/provider/documentation.adoc b/entity/KnowledgeManagement_entity/entityfields/provider/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..d72ef5f67309fa7a7091cbe6e102116e123f64ea --- /dev/null +++ b/entity/KnowledgeManagement_entity/entityfields/provider/documentation.adoc @@ -0,0 +1 @@ +This provider is used by dashlets which set isDashlet_param \ No newline at end of file diff --git a/entity/KnowledgeManagement_entity/recordcontainers/indexsearchknowledgebase/query.js b/entity/KnowledgeManagement_entity/recordcontainers/indexsearchknowledgebase/query.js index b13c3cdc15dd6b79ec1ecc332a3113a40f8399ae..29d30e242c27ba5f0c73e988eb1e365e3e130b67 100644 --- a/entity/KnowledgeManagement_entity/recordcontainers/indexsearchknowledgebase/query.js +++ b/entity/KnowledgeManagement_entity/recordcontainers/indexsearchknowledgebase/query.js @@ -12,13 +12,13 @@ var sql = newSelect([ .join("KNOWLEDGETAGLINK", "KNOWLEDGEMANAGEMENTID = KNOWLEDGEMANAGEMENT_ID") .join("KNOWLEDGETAG", "KNOWLEDGETAGID = KNOWLEDGETAG_ID") .where("KNOWLEDGETAG.TAG", "News") - .and("KNOWLEDGEMANAGEMENT.KNOWLEDGEMANAGEMENTID = km1.KNOWLEDGEMANAGEMENTID")) + .and("KNOWLEDGEMANAGEMENT.KNOWLEDGEMANAGEMENTID = km1.KNOWLEDGEMANAGEMENTID"), SqlBuilder.EXISTS()) .thenString("News") - .when(newWhere("GITPATH is null").and("TYPE = 1")) + .when(newWhere("TYPE = '1'")) .thenString("Knowledgebase") - .when(newWhere("GITPATH is not null").and("TYPE = 2")) + .when(newWhere("TYPE = '2'")) .thenString("Editorial") - .when("TYPE = 3") + .when(newWhere("TYPE = '3'")) .thenString("Business process"), "''" ]).from("KNOWLEDGEMANAGEMENT", "km1") diff --git a/entity/KnowledgeRole_entity/KnowledgeRole_entity.aod b/entity/KnowledgeRole_entity/KnowledgeRole_entity.aod index eb1b5a2d876b1162a4115a44c8ee8b6230a43ffe..427a175e7b5d20abc6cabca10d456d38d1512933 100644 --- a/entity/KnowledgeRole_entity/KnowledgeRole_entity.aod +++ b/entity/KnowledgeRole_entity/KnowledgeRole_entity.aod @@ -2,6 +2,7 @@ <entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.17" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.17"> <name>KnowledgeRole_entity</name> <majorModelMode>DISTRIBUTED</majorModelMode> + <documentation>%aditoprj%/entity/KnowledgeRole_entity/documentation.adoc</documentation> <title>Knowledge Role</title> <recordContainer>db</recordContainer> <entityFields> @@ -16,21 +17,22 @@ </entityField> <entityConsumer> <name>NewsRole</name> + <dependency> + <name>dependency</name> + <entityName>Role_entity</entityName> + <fieldName>FilterRolesWithoutPermission</fieldName> + </dependency> <children> <entityParameter> <name>ExcludeRoles_param</name> <valueProcess>%aditoprj%/entity/KnowledgeRole_entity/entityfields/newsrole/children/excluderoles_param/valueProcess.js</valueProcess> </entityParameter> </children> - <dependency> - <name>dependency</name> - <entityName>Role_entity</entityName> - <fieldName>FilterRolesWithoutPermission</fieldName> - </dependency> </entityConsumer> <entityProvider> <name>KnowledgeRole</name> <lookupIdfield>ROLES</lookupIdfield> + <documentation>%aditoprj%/entity/KnowledgeRole_entity/entityfields/knowledgerole/documentation.adoc</documentation> <titlePlural>KnowledgeRoles</titlePlural> <recordContainer>db</recordContainer> <dependencies> diff --git a/entity/KnowledgeRole_entity/documentation.adoc b/entity/KnowledgeRole_entity/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..6b291538809455a2847b23e14f93cbec08598048 --- /dev/null +++ b/entity/KnowledgeRole_entity/documentation.adoc @@ -0,0 +1,5 @@ +This entity handles the roles, that are linked to a knowledge entry +The roles are used to create notifications and newsfeed entries for specific roles when the switches are set + +KnowledgeManagement_param needs the id of a knowledge entry +PublishLevelRoles_param takes an array of role names which get excluded from the role list \ No newline at end of file diff --git a/entity/KnowledgeRole_entity/entityfields/knowledgerole/documentation.adoc b/entity/KnowledgeRole_entity/entityfields/knowledgerole/documentation.adoc new file mode 100644 index 0000000000000000000000000000000000000000..781e59c75976c40ab98ceb4e76b174e38d31a69e --- /dev/null +++ b/entity/KnowledgeRole_entity/entityfields/knowledgerole/documentation.adoc @@ -0,0 +1,2 @@ +KnowledgeManagement_param needs the id of a knowledge entry +PublishLevelRoles_param takes an array of role names which get excluded from the role list \ No newline at end of file