Configure the 3DSearch Behavior
Context: To configure the search behavior when users run queries in the 3DSearch field, add the 3DEXPERIENCE - Search and Refine widget to the
search page.
-
In the Mashup Builder, select the
/search page.
-
Go to .
-
Select the 3DEXPERIENCE - Search and Refine widget and add it
to the page.
-
Click the widget header to open the 3DSearch tab of the widget
properties.
-
For On search, select:
- open page to open the Mashup UI page specified in the Search page parameter and specify the
page parameter defined in Search parameter to the query string
input in the 3DSearch field.
- Or run custom code (advanced) to define the javascript
code called when 3DSearch receives the query.
-
In On reset search, specify the behavior when using the red
cross or clearing the search in the 3DSearch field (same options as for On search).
Example:
-
Save and apply configuration.
Define the Mapping between Facets and Tags
You can refine the result list of a Mashup UI
app using the Tags.
In Mashup Builder, you can define the mapping between facets and Tags:
- Locally, on a specific Mashup UI page.
- Globally, at the app level.
The following table summarizes the different mapping strategies:
| Define mapping on |
Mapping definition with |
Possibility to share mapping |
Tag publishing |
| widget |
list of facets on the UI |
none (page-specific) |
on page loading |
| widget |
file |
app or page |
on page loading |
| tag controller |
file |
app or page |
on-the-fly (AJAX) |
Mapping Locally Using the Widget
You can map facets to the Tags widget, using the widget configuration
parameters.
-
In Mashup Builder, select a page, for example, /search page.
-
Select Widgets > 3DEXPERIENCE.
-
Select the 3DEXPERIENCE - Search and Refine widget and add
it to the mashup page.
-
Click the 3DEXPERIENCE - Search and Refine widget header and
select the 6WTagger tab.
-
For Define mapping on, select the
widget option.
- Optional:
Specify a mapping file if you want to upload a configuration and override only a
few facets using the UI.
For more information, see Mapping Locally Using a Mapping File.
-
Map each facet to a 6W predicate.

-
Click Apply.
Mapping Locally Using a Mapping File
You can map facets to the 6WTags widget using a mapping
file.
-
Create a mapping file with a
.properties extension, mapping facets
to predicates as in the following sample:
closuredate=ds6w:when/ds6w:actualEnd
current=ds6w:what/ds6w:status
issue_priority=ds6w:why/ds6w:priority
issue_to_assigned_issue=ds6w:who/ds6w:assignee
Language=ds6w:what/ds6w:language
related_project=ds6w:where/ds6w:project
Source=ds6w:where/ds6w:dataSource
type=ds6w:what/ds6w:type
-
Put your
.properties file in
<DATADIR>/config (or a subfolder).
-
In Mashup Builder, declare the
.properties file path
in the Mapping file parameter, using
config://
-
Click Apply.
-
From the command line, go to
<DATADIR>/bin and force the
product configuration update by running buildgct
-
In Mashup Builder, restart the Search Server:
-
Go to Application > Developer area.
-
Click Reload components.
-
Select the Restart search server processes option.
Result: Repeat these steps whenever the file is modified to take changes into account and
apply them on secondary servers.
Mapping Globally at the Application Level
You can define a tag controller to map facets and Tags globally, for all application pages.
-
Go to Application > Manage components >
Controllers.
-
In 3DEXPERIENCE - 6WTags mapping service, specify a mapping
file to apply to all mashup pages.

For a mapping file sample, see step 1 in Mapping Locally Using a Mapping File.
-
Drag the 3DEXPERIENCE - Search and Refine widget on your
mashup page.
-
For each page, click the 3DEXPERIENCE - Search and Refine
widget header and select the 6WTagger tab.
-
For Define mapping on, select the tag
controller option.
This option uses AJAX to update tags dynamically after page loading. To extend the
global 3DEXPERIENCE - 6WTags mapping service, enter the
additional JavaScript code in Extra mappings.

-
Click Apply.
Trigger the App Display in the 3DDashboard
You can trigger the display of your Mashup UI
app (show or hide) in the 3DDashboard.
-
In the Mashup Builder, select the '/search' page.
-
Go to Triggers > Pre Request Trigger.
-
Select 3DEXPERIENCE - Detect Context and add it at the top of
the /search page.
-
In Propagate 3DExperience context using, select either:
-
redirect to use the HTTP referrer to propagate the context. It
allows you to run an app inside the 3DDashboard in one browser tab, while running the standalone App in a separate browser tab
(the cookies do not store the context.)
-
session to store the detected context in the user session (HTTP
cookie). It prevents you to run the Mashup App in the 3DDashboard and the standalone App in the same browser (all tabs share the same cookies).
-
Go to Triggers > Mashup Widget Trigger.
-
Select either:
- 3DEXPERIENCE - Hide in context to hide the Mashup App
when inside
3DEXPERIENCE (for example, in a 3DDashboard).
- 3DEXPERIENCE - Show in context to show the Mashup UI App when inside
3DEXPERIENCE (for example, in a 3DDashboard).
-
Save and apply configuration.
User Authentication from 3DPassport
Context: To authenticate users from the 3DPassport using an SSO mechanism, first configure the security source in the Mashup Builder and then add the 3DPassport SSL certificate to the Exalead CloudView trusted keystore.
Configure the Security Source
-
In the Mashup Builder, go to Application > General >
Security.
-
Click Add a security provider.
-
Select CAS Security Provider and click
OK.
-
In the CAS Security Provider section, configure the
following parameters:
-
In Authenticate to, select
None.
-
In CAS ticket validation filter, select
Cas20.
-
In Allow proxy ticket validation, select
false.
-
In CAS Server login URL, enter
https://<HOSTNAME>:<PORT>/iam/login
-
In CAS Server URL Prefix, enter
https://<HOSTNAME>:<PORT>/iam
-
In CAS Server logout URL, enter
https://<HOSTNAME>:<PORT>/logout
-
In Server Name, enter
https://<HOSTNAME>.
-
In CAS attribute(s) for displayName, enter
name.
-
In the Mashup pages section, select the check-box
corresponding to the search page.
Configuration: 
-
Click Apply.
Add 3DPassport SSL Certificate to Exalead CloudView
-
Verify the certificate format using the following command:
openssl x509 -in <infile.cert> -text -inform <format>
Where the format is DER or PEM depending
on your needs.
-
Encrypted
PEM files usually store private keys. Convert them to a
file that is not encrypted.
You can use openssl on the command
line: openssl pkcs8 -topk8 -in <key> -out <hostname>-<instance>.key -nocrypt
-
Verify that the certificate is stored using UNIX LF end of line characters:
-
On Windows, you can use the following tool: http://www.thefreecountry.com/tofrodos/index.shtml
-
On UNIX, you can alternatively use dos2unix.
-
For every product instance, overwrite the key and certificate files generated at
installation time in
DATADIR/security.
If you use an alias, the private key name must use the alias and not the default
<hostname>-<instance>. The public certificate is in
DATADIR/security/<hostname>-<instance>.cert
The private key is in
DATADIR/security/<hostname>-<instance>.key
-
For every product instance, add the server certificate to the truststore:
keytool -import -file <.cert file (DER)> -alias
<jetty> -keystore DATADIR/security/trusted.servers.ks -storepass
<exalead>
-
Restart Exalead CloudView.
Note:
For more information, see Exalead CloudView Administration
Guide: Securing Exalead CloudView: Securing your installation with HTTPS and SSL.
|