Oracle WebCenter Suite Integrating Secure Enterprise Search

Similar documents
Oracle WebCenter Portal 11g Developer Workshop

Oracle WebCenter Portal 11g Developer Workshop

Oracle Application Development Framework Overview

Oracle WebCenter Portal 11g Developer Workshop

ORACLEAS PORTAL 10g (10.1.4) INTEGRATE YOUR ENTERPRISE CONTENT MANAGEMENT SYSTEMS INTO ORACLE PORTAL

Frequently Asked Questions Oracle Content Management Integration. An Oracle White Paper June 2007

Oracle WebCenter Portal 11g Developer Workshop

Receiving PeopleSoft Message (PeopleTools 8.17) through the Oracle AS PeopleSoft Adapter. An Oracle White Paper September 2008

An Oracle White Paper November Primavera Unifier Integration Overview: A Web Services Integration Approach

Oracle WebCenter Portal 11g Developer Workshop

An Oracle White Paper October The New Oracle Enterprise Manager Database Control 11g Release 2 Now Managing Oracle Clusterware

Case Study: Redeveloping an Oracle Forms application using Oracle JDeveloper and Oracle ADF

Advanced Global Intercompany Systems : Transaction Account Definition (TAD) In Release 12

Oracle WebCenter Suite Provides Web 2.0 Services for Enterprise Developers. An Oracle White Paper October 2006

Oracle Fusion Middleware 11g Oracle Access Manager Frequently Asked Questions June 2009

Improve Data Integration with Changed Data Capture. An Oracle Data Integrator Technical Brief Updated December 2006

Oracle Database 10g Release 2 Database Vault - Restricting the DBA From Accessing Business Data

Adding Mobile Capability to an Enterprise Application With Oracle Database Lite. An Oracle White Paper June 2007

Installation Instructions: Oracle XML DB XFILES Demonstration. An Oracle White Paper: November 2011

Creating Your First WebCenter Application with Java Content Repository

Technical Upgrade Guidance SEA->SIA migration

Oracle FLEXCUBE Direct Banking Release Corporate Cash Management User Manual. Part No. E

Creating Custom Project Administrator Role to Review Project Performance and Analyze KPI Categories

Oracle Web Service Manager 11g Component Level Role Authorization (in SOA Suite) March, 2012

An Oracle White Paper July Oracle WebCenter Portal: Copying a Runtime-Created Skin to a Portlet Producer

Veritas NetBackup and Oracle Cloud Infrastructure Object Storage ORACLE HOW TO GUIDE FEBRUARY 2018

Oracle Fusion Configurator

Configuring Oracle Business Intelligence Enterprise Edition to Support Teradata Database Query Banding

WHAT S NEW IN ORACLE USER PRODUCTIVITY KIT PROFESSIONAL

WebCenter Portal Task Flow Customization in 12c O R A C L E W H I T E P A P E R J U N E

Achieving High Availability with Oracle Cloud Infrastructure Ravello Service O R A C L E W H I T E P A P E R J U N E

An Oracle White Paper Released April 2008

JD EDWARDS ENTERPRISEONE USER EXPERIENCE

Managing Metadata with Oracle Data Integrator. An Oracle Data Integrator Technical Brief Updated December 2006

April Understanding Federated Single Sign-On (SSO) Process

Using the Oracle Business Intelligence Publisher Memory Guard Features. August 2013

WHAT S NEW IN ORACLE USER PRODUCTIVITY KIT

Partitioning in Oracle Database 10g Release 2. An Oracle White Paper May 2005

Oracle Service Registry - Oracle Enterprise Gateway Integration Guide

An Oracle White Paper December, 3 rd Oracle Metadata Management v New Features Overview

Data Capture Recommended Operating Environments

Correction Documents for Poland

Oracle DIVArchive Storage Plan Manager

An Oracle White Paper September Security and the Oracle Database Cloud Service

An Oracle White Paper February Combining Siebel IP 2016 and native OPA 12.x Interviews

Maximum Availability Architecture. Oracle Best Practices For High Availability

PeopleSoft Applications Portal and WorkCenter Pages

Oracle Cloud Applications. Oracle Transactional Business Intelligence BI Catalog Folder Management. Release 11+

Oracle Fusion General Ledger Hierarchies: Recommendations and Best Practices. An Oracle White Paper April, 2012

WHAT S NEW IN ORACLE USER PRODUCTIVITY KIT PROFESSIONAL

An Oracle White Paper. Released April 2013

Oracle Warehouse Builder 10g Release 2 What is an Expert?

Oracle CIoud Infrastructure Load Balancing Connectivity with Ravello O R A C L E W H I T E P A P E R M A R C H

Next-Generation SOA Infrastructure. An Oracle White Paper May 2007

Bulk Processing with Oracle Application Integration Architecture. An Oracle White Paper January 2009

Generate Invoice and Revenue for Labor Transactions Based on Rates Defined for Project and Task

Migrating VMs from VMware vsphere to Oracle Private Cloud Appliance O R A C L E W H I T E P A P E R O C T O B E R

Data Capture Recommended Operating Environments

Oracle Database Vault

Tutorial on How to Publish an OCI Image Listing

JD Edwards EnterpriseOne User Experience

Oracle WebCenter Portal 11g Developer Workshop

Oracle FLEXCUBE Direct Banking Release Dashboard Widgets Transfer Payments User Manual. Part No. E

Oracle Virtual Directory 11g Oracle Enterprise Gateway Integration Guide

Loading User Update Requests Using HCM Data Loader

Automatic Receipts Reversal Processing

Oracle Mobile Application Framework

Oracle Enterprise Data Quality New Features Overview

Oracle Secure Backup. Getting Started. with Cloud Storage Devices O R A C L E W H I T E P A P E R F E B R U A R Y

JD Edwards EnterpriseOne Licensing

Best Practice Guide for Implementing VMware vcenter Site Recovery Manager 4.x with Oracle ZFS Storage Appliance

October Oracle Application Express Statement of Direction

Siebel CRM Applications on Oracle Ravello Cloud Service ORACLE WHITE PAPER AUGUST 2017

SonicMQ - Oracle Enterprise Gateway Integration Guide

ORACLE FUSION MIDDLEWARE MAPVIEWER

Oracle Enterprise Performance Reporting Cloud. What s New in the November Update (16.11)

Maximum Availability Architecture. Oracle Best Practices For High Availability

Working with Time Zones in Oracle Business Intelligence Publisher ORACLE WHITE PAPER JULY 2014

Handling Memory Ordering in Multithreaded Applications with Oracle Solaris Studio 12 Update 2: Part 2, Memory Barriers and Memory Fences

An Oracle Technical White Paper May Deploying Oracle Beehive with BlackBerry Enterprise Server for MDS Applications

VISUAL APPLICATION CREATION AND PUBLISHING FOR ANYONE

Oracle Database 10g Workspace Manager Support for Oracle Spatial Topology Data Model. An Oracle White Paper May 2005

Integrating Oracle Application Express with Oracle Application Server 10g. An Oracle White Paper April 2005

StorageTek ACSLS Manager Software Overview and Frequently Asked Questions

Oracle Enterprise Performance Management Cloud

Oracle Enterprise Performance Reporting Cloud

Performance and Scalability Benchmark: Siebel CRM Release 7 on HP-UX Servers and Oracle9i Database. An Oracle White Paper Released October 2003

Pricing Cloud: Upgrading to R13 - Manual Price Adjustments from the R11/R12 Price Override Solution O R A C L E W H I T E P A P E R A P R I L

An Oracle White Paper March Introduction to Groovy Support in JDeveloper and Oracle ADF 11g

Oracle Database Lite. Automatic Synchronization White Paper. An Oracle White Paper August 2008

Superior Product Variants Software for Multi-Attribute Product Companies. An Oracle White Paper April 2004

Oracle Data Provider for.net Microsoft.NET Core and Entity Framework Core O R A C L E S T A T E M E N T O F D I R E C T I O N F E B R U A R Y

Oracle FLEXCUBE Direct Banking Release Dashboard Widgets Customer Services User Manual. Part No. E

SETTING UP ORACLE ULTRA SEARCH FOR ORACLE PORTAL 10G (10.1.4)

Create Individual Membership. This step-by-step guide takes you through the process to create an Individual Membership.

RAC Database on Oracle Ravello Cloud Service O R A C L E W H I T E P A P E R A U G U S T 2017

Lyudmil Pelov, A-Team, Oracle December Development Lifecycle for Task Flows in Oracle WebCenter Portal 11gR1 version

Oracle Insurance QuickView Service Ordering User Guide. Version 8.0

Create Faculty Membership Account. This step-by-step guide takes you through the process to create a Faculty Membership Account.

Oracle Hyperion Planning on the Oracle Database Appliance using Oracle Transparent Data Encryption

Transcription:

Oracle WebCenter Suite Integrating Secure Enterprise Search An Oracle White Paper January 2007

Oracle WebCenter Suite Integrating Secure Enterprise Search INTRODUCTION As organizations continually reinvent themselves and strive for higher levels of efficiency and productivity, the demands on the information worker are continually increasing. To meet these ever growing demands, the information worker needs a better, more productive work environment. This new environment must be role- and task-focused so that all elements of a task are provided directly in context for the user. Collaboration and communication tools must also be directly integrated into these task-oriented applications because people rarely work in a vacuum and frequently need to work together to complete a given task. Furthermore, the work environment must go beyond the browser to include all of the desktop tools and mobile devices with which the user is familiar. And perhaps most importantly, the information worker must have the ability to tailor and evolve the environment based on their own preferences and the needs of their organization. Oracle WebCenter Suite injects new capabilities into the standard JavaServer Faces development environment that allow developers to create context-rich applications that satisfy these needs. WebCenter also provides the natural user interaction environment for your SOA applications and allows you to leverage all types of services in creating a better, more effective user experience. One of these services is Oracle Secure Enterprise Search (SES), Oracle s enterprise-grade search solution that allows you to search all your content sources across the enterprise. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 2

INTEGRATING SECURE ENTERPRISE SEARCH Oracle WebCenter applications combine the capabilities of Oracle Application Development Framework (ADF) and WebCenter-specific extensions, such as support for portlets and runtime customization. As such, a WebCenter application can be considered a regular Java application and therefore any concept that can be used in a Java application can also be used here. Oracle Secure Enterprise (SES) exposes its functionality via a Web service that can be integrated into any Java application. This can be done using a Java proxy for the Web service to call its methods or, in the case of a WebCenter application, by leveraging the declarative approach using the Web service Data Control. You can access the WSDL definition for the SES Web Service using the following URL: http://myserver:myport/search/query/oraclesearch?wsdl The WSDL describes all the available methods of the Web service and its parameters. Note that the endpoint URL for the Web service is shown as http://myserver:7777/search/query/oraclesearch We will need to make a note of this, as we will need to modify the URL endpoint later in our example application. INTEGRATING SES USING THE WEB SERVICE DATA CONTROL The Web service Data Control enables you to access Web services in a declarative manner and subsequently bind operations and results of those Web services to JSF view components, such as tables, buttons, etc. In this example, we want to add a search box with a button that submits a search to SES and returns the result in an ADF table. Creating the SES Data Control In JDeveloper, begin by opening the New Gallery. Under Business Tier > Web Services locate the Web Service Data Control. You might need to expand your technology scope by selecting All Technologies from the drop-down list at the top. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 3

Figure 1 - New Gallery Click OK to invoke the Create Web Service Data Control wizard. In Step 1 of the wizard, we specify a name for the Data Control and the URL for the WSDL that describes the service, that is, the SES Web service. Figure 2 - Web Service Data Control Wizard Next, we click the Services button. The wizard will query the service and populate the Service field. In the case of SES, there is only one service described by this WSDL and therefore, no further action needs to be taken. Click Next > to proceed to the next page of the wizard. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 4

In Step 2, the Data Control Operations page, we select the methods of the Web service we want to expose through the Data Control. For this example, all we want to expose is OracleSimpleSearch, so we select it and shuttle it to the right side. Figure 3 - Data Control Operations Dialog The remaining steps of the wizard are not relevant in this example, so we can click Finish to complete the wizard and create the Data Control. Correcting the Endpoint URL Recall that we need to modify the URL endpoint for our Data Control. Currently, the URL points to the default one in the WSDL. We can modify the URL endpoint by modifying the Data Control definition. In your project, expand the Application Source node and locate a package with the same name as your project. In the package, you should find a file called DataControls.cpx. When you select it, the Structure Pane will show the Data Controls described by this file, including the Data Control we just created. Right-click the Data Control in the Structure Pane and select Edit Web Service Connection from the context menu. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 5

Figure 4 - Edit Web Service Connection Dialog In the Endpoint URL field, specify the actual endpoint URL for the SES Web service. Click OK to save the changes. Figure 5 - Data Control Palette Let s take a look at the Data Control and its parameters and methods. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 6

The service accepts the following input parameters: o query: the string to search for o startindex: the first record of the result set that should be returned o docsrequested: the number of rows in the result set that should be returned o dupremoved and dupmarked: how to handle duplicates o returncount: indicates to the service whether the total number of results should be calculated The return node contains several attributes, two collections that represent the result set of the search, as well as a list of suggestions based on the search. For more information about the returned attributes and the concept behind the suggestions, please consult the documentation for Secure Enterprise Search. In our example, the important elements are the OracleSimpleSearch operation, the query parameter, and the resultelements collection. Creating the Search Form Now it is time to create the search form and the table for the result set. First, you need to create a JSPX page, if you have not done that already. Next, select the OracleSimpleSearch node in the Data Control Palette and drop it onto your page. Select Create > Methods > ADF Command Button from the pop-up menu. The Action Binding Editor displays. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 7

Figure 6 - Action Binding Editor for Command Button In the Action Binding Editor, we specify the necessary values for the service parameters, as seen in Figure 6. We can leave the parameter query empty as we are going to create an inputtext component for it. Now drag and drop the query parameter onto your page and select Create > Texts > ADF Input Text w/ Label from the pop-up menu. Finally, select the ResultElements collection and drop it onto the page. Select Create > Tables > ADF Read-only Table from the pop-up menu. Due to a known issue with the Web Service Data Control, we need to remove the reference to the last modified column. Simply select the row in the Edit Table Columns dialog and click the Delete button. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 8

Figure 7 - Edit Table Columns Dialog The two remaining tasks that need to be done are in the Page Definition. Right-click the page and select Goto Page Definition from the context menu. First, we need to specify a default value for the search term. This can be anything you want. <variable Type="java.lang.String" Name="doOracleSimpleSearch_query" IsQueriable="false" DefaultValue="oracle"/> Second, we need to remove the reference to LastModified from the table model in the Page Definition. Look for the tag <Item Value="lastModified"/> and delete it. Now we are ready to test the search. Go back to the JSPX page, rightclick the page, and select Run from the context menu. ENHANCING THE SEARCH EXPERIENCE There are a couple of simple things you can do to enhance the experience of your search page. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 9

If you look closer at the Snippet column, you will discover that SES adds <B>...</B> tags around the occurrences of the search term. Unfortunately, the normal ADF OutputText view component escapes those tags such that the HTML does not take effect but instead, the tags are displayed in the browser as text. To change that, you can convert the OutputText view component into an OutputFormatted component that will then render the search term in bold. Simply return to JDeveloper and right-click the view component that renders row.snippet. Choose Convert from the context menu to invoke the Convert dialog window. Figure 8 - Convert Dialog Make sure ADF Core is selected in the drop-down list and look for OutputFormatted. If you do not see ADF Core in the drop-down list, exit the dialog by clicking Cancel and make sure that you selected the view component and not the surrounding table cell. The easiest way to ensure this is to use the Structure Pane, not the visual editor, to make your selection. Once you click OK, the component will be converted. The next time you run the page, the search term will appear in bold. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 10

Figure 9 - Highlighted Search Terms Another way to improve the experience is to make the page title a hyperlink. You can do this by simply converting the OutputText component rendering row.title into a golink. Right-click the component, select Convert from the context menu, and look for GoLink in the list of ADF Core components. You will have to confirm the conversion this time, since not all attributes of OutputText can be carried over to GoLink, but in our example, it does not matter. Using the Structure Pane, locate the GoLink that you just created, rightclick it, and select Properties from the context menu. In the Properties window, provide the binding for Text and Destination of the GoLink. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 11

Figure 10 - GoLink Property Dialog If you are not sure what the exact attribute name is, click the Bind button to bring up the Binding Editor. Expand the JSP Objects node and look for row. Expand row and you will see all valid attributes. Double-clicking one attribute will create the necessary expression on the right hand side of the editor. Click OK. Figure 11 - Title Column as Hyperlink Run the page again. When you click the link, you will now navigate to the document that contained the search term. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 12

LEVERAGING A CUSTOM DATA CONTROL There is another method for integrating SES in your WebCenter application. When you want to create more complex scenarios or if you require authentication, you can leverage the Data Control mechanism that ADF provides and create a Data Control based on a custom Java class. Create your custom Java code In your project, you create the Java class representing the business logic you want to expose. You could, for example, perform login or other operations before or after the actual search execution. The class would contain one or more methods returning OracleSearchResult, which represents the result of the search operation. In our simple example below, the only method that exists accepts one input parameter, the search term (ssearchterm). public class testses { public static OracleSearchResult dosearch(string ssearchterm) { OracleSearchService searchsvc; searchsvc = new OracleSearchService(); OracleSearchResult searchresult; searchresult = new OracleSearchResult(); } } searchsvc.setsoapurl("http://.../search/query/oraclesearch"); try { searchsvc.login("",""); } catch (Exception e) { System.out.println(e); } try { searchresult = searchsvc.dooraclesimplesearch(ssearchterm, 1,20, false, false,false); } catch (Exception e) { System.out.println(e); } return searchresult; Now that we have created the class with its methods, it is time to create our Data Control for this class. To do so, simply right-click the class in the Applications Navigator and select Create Data Control from the context menu. JDeveloper will create the necessary information for you and when you display the Data Control Palette, you will find the new Data Control listed there. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 13

Figure 12 - Data Control Structure created When you look at the Data Control and expand it to see its structure, you will find that it resembles the structure we observed with the Web service Data Control in the previous section. Under the Parameters node, however, you ll see only one item ssearchterm which is the one we defined as the input parameter for our dosearch method in our Java class. The remaining steps are exactly the same as with the Web service Data Control. Drag and drop the method to your page and select Create > Method > ADF Command Button from the pop-up menu. Then drag and drop ssearchterm onto your page and select Create > Texts > Input Text w/ label from the context menu. Finally, drag and drop resultelements onto your page, and select Create > Tables > ADF Read-only table. The biggest difference here is that instead of calling the search Web service directly, we are calling our Java class. Everything defined in the class will be performed which, in this example, is logging into Secure Enterprise Search and thereby performing a secure search on behalf of a particular user. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 14

CONCLUSION Oracle Secure Enterprise Search, one of the services of Oracle WebCenter Suite, can be easily integrated into any WebCenter application by either implementing a Web service proxy-based approach or by using the declarative methods of Data Controls. With a few easy steps, you can integrate powerful search capabilities into your application, significantly improving your users experience. ADF provides two possible approaches: using the generic Web service Data Control, or creating a custom Data Control from a Java class. Oracle WebCenter Suite Integrating Secure Enterprise Search Page 15

Oracle WebCenter Suite Integrating Secure Enterprise Search Janurary 2007 Author: Philipp Weckerle Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065 U.S.A. Worldwide Inquiries: Phone: +1.650.506.7000 Fax: +1.650.506.7200 oracle.com Copyright 2007, Oracle. All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission. Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.