From d87e2e61770a8d800aa53f163ff08c2f99abb6fa Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Fri, 4 Oct 2019 07:07:27 +0200 Subject: [PATCH] added documentation for 360degree on how to add a new module --- entity/360Degree_entity/documentation.adoc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/entity/360Degree_entity/documentation.adoc b/entity/360Degree_entity/documentation.adoc index 5f89647c9f..8e7c8f3628 100644 --- a/entity/360Degree_entity/documentation.adoc +++ b/entity/360Degree_entity/documentation.adoc @@ -3,4 +3,17 @@ The 360Degree_entity shows the Connection between datenmodells. The entity has two providers for persons and organisations. -The 360Degree_entity shows direct connections, don´t be confused with the ObjectRelation_entity. \ No newline at end of file +The 360Degree_entity shows direct connections, don´t be confused with the ObjectRelation_entity. + +== Adding new modules to the 360° view +You may want to display more modules within the 360degree view (for example after creating and implemeting your own module). + +.An Example: +You added a module called "T-Shirts" to your project. Every person-contact can have _n_ "T-Shirts" and whenever a person owns a T-Shirt you want to +display it in the 360degree view. + +Heres is a list of what you need to do whenever you want to do this: + +- Add an entry in the function `ContextUtils.getSelectMap` which is located in the `Context_lib` (check out the documentation there for further details). _Speaking of the example above you need to define there how to retrieve the t-shirt-data for a contact_ + +- Add an entry (with the name of the context you want to add) in the process of the `ObjectType_param` in the *corresponding provider* which is located in the `360Degree_entity`. _We would extend the array which is returned in the `PersonObjects`-provider by the name of our t-shirt-context: "TShirt" in our example_ \ No newline at end of file -- GitLab