Welcome!

Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal

Related Topics: Weblogic

Weblogic: Article

Managing BEA WebLogic Portal Content Management With Release 8.1

An import/export tool

One of the nice features of the WebLogic Portal 8.1 release is a fairly extensive content management system. It does not, nor was it ever intended to, compete with the large content management vendors on the market today, but for many applications it works quite well. There are some problems however with using the content management system. This article will address several of them and provide details of a dev2dev tool that will help get around them.

Problem #1: Migration
When content is created outside of a production system, there is no easy way of moving this content into production. In many cases production systems have very strict rules on changing content and ad hoc changes are not allowed, therefore migration is needed.

Problem #2: Backup/Restore
If the default repository is used, all data in the content management system is stored in a database. There are many ways to backup and restore this data using standard database tools, but a good knowledge of the database schema is needed to allow for a proper restore. Often the entire database is backed up, which only allows for a restore to a particular point in time.

Problem #3: Data Type Changes
Data types defined in the content management system cannot be changed if there is any content associated with that type. Therefore, all data must be deleted before a change can be made. This can be frustrating when a lot of data has been created and a simple property change is needed.

Problem #4: Bulk Changes
Sometimes bulk changes are needed in a content management system. The WebLogic Portal Admin User Interface is nice for maintenance of the content and for small changes, but for large ones it can be difficult to use.

Most of these issues are addressed today by fancy SQL scripts written by very advanced database gurus, or that require a large amount of manual work that leads to high maintenance costs.

After facing this issue while building a complex content management-based portal, I decided to build something to help. I developed a Content Management Import/Export tool. I shared this with several of my colleagues and soon discovered this was something that was needed in the public domain. You can find the tool, including source, on dev2dev: http://cmimportexport.projects.dev2dev.bea.com.

I will cover the operation of this tool and how it can be used to address the aforementioned issues.

Installation
You can find an installation guide to help with this process here: https://cmimportexport.projects.dev2dev.bea.com/ files/documents/261/192/InstallationGuide.doc. For the purposes of this article, it is assumed that the CM Import/Export portal was installed; however, the most common installation will be the portlet within an existing administration portal.

To install the CM Import/Export portal, simply deploy the appropriate EAR file from here: https://cmimportexport.projects.dev2dev.bea.com/ servlets/ProjectDocumentList?folderID=96&expandFolder=96&folderID=96 . Once this is done, the tool can be accessed by going to the following URL: http://host:port/cmPortal/cmImportExport.portal. Simply replace the host and port that is appropriate for your installation.

Use
After logging into the portal, you are presented with four options (see Figure 1). Two options deal with content types and the other two deal with content data. The tool assumes you have some understanding of WLP content management and the fact that data types must be defined before content data can be added. However, the tool does not force you to do things in a particular order. Therefore, it is possible to try to import data with no type definitions. This, of course, would result in errors.

Content Types Export
Let's start with content types. If you have an existing repository with type definitions, you can export them to an XML file using the Content Types Export button. Once this is selected, you are able to select which repository to use for the export. When the View Export Tree button is pressed, you will be presented with a list of content types and checkboxes. All items that are selected will be exported to the XML file.

The XML file will be created in the server's temp directory. The final screen will show you the full path to the file.

Content Type Schema
There is no official schema definition for WLP content management types. So, I created one (cmTypes.xsd). The tool uses this schema to create XML beans for the import and export operations. The schema is a simple flat structure that supports all data types and properties except for the "explicit" flag (see Listing 1). The WLP content management APIs do not expose this property. Consequently, if you have types with the explicit flag set, this information will not be exported and the corresponding content data will not be exported. Since this is a user-defined database table, typically a separate process is used to maintain this information anyway.

Note: A future release of WLP may adopt portions of the JSR-170 standard for content management import/export. If this is the case, I will adopt this standard to make it easier to move content data from one version of WLP to another.

Content Types Import
The import operations allow you to upload a local XML file into an existing content management system. The import will look for differences between the XML file and the existing content management types. If there are any conflicts, they will be displayed BEFORE the import (see Figure 2). This allows you to intelligently select which content types should be imported into the new system. Note that in some cases, changes to data types that have associated content data may cause a failure. The existing data may need to be exported, deleted, and then reimported. If the data type structure changes, then the exported XML file may need to be changed to reflect the new structure. There are many good XML manipulation tools available that can do this.

More Stories By John Graves

John Graves has been with BEA for more than seven years and is currently working as an internal trainer for Education Services specializing in WebLogic Portal. He spent the first five years of his time with BEA in the Advanced Service Group doing full life-cycle project work.

Comments (1) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
WebLogic Developer's Journal 10/12/05 06:15:20 AM EDT

Managing BEA WebLogic Portal Content Management With Release 8.1. One of the nice features of the WebLogic Portal 8.1 release is a fairly extensive content management system. It does not, nor was it ever intended to, compete with the large content management vendors on the market today, but for many applications it works quite well. There are some problems however with using the content management system. This article will address several of them and provide details of a dev2dev tool that will help get around them.

@ThingsExpo Stories
As businesses evolve, they need technology that is simple to help them succeed today and flexible enough to help them build for tomorrow. Chrome is fit for the workplace of the future — providing a secure, consistent user experience across a range of devices that can be used anywhere. In her session at 21st Cloud Expo, Vidya Nagarajan, a Senior Product Manager at Google, will take a look at various options as to how ChromeOS can be leveraged to interact with people on the devices, and formats th...
SYS-CON Events announced today that Yuasa System will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Yuasa System is introducing a multi-purpose endurance testing system for flexible displays, OLED devices, flexible substrates, flat cables, and films in smartphones, wearables, automobiles, and healthcare.
SYS-CON Events announced today that Taica will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Taica manufacturers Alpha-GEL brand silicone components and materials, which maintain outstanding performance over a wide temperature range -40C to +200C. For more information, visit http://www.taica.co.jp/english/.
SYS-CON Events announced today that SourceForge has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. SourceForge is the largest, most trusted destination for Open Source Software development, collaboration, discovery and download on the web serving over 32 million viewers, 150 million downloads and over 460,000 active development projects each and every month.
SYS-CON Events announced today that Nihon Micron will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Nihon Micron Co., Ltd. strives for technological innovation to establish high-density, high-precision processing technology for providing printed circuit board and metal mount RFID tags used for communication devices. For more inf...
Enterprises have taken advantage of IoT to achieve important revenue and cost advantages. What is less apparent is how incumbent enterprises operating at scale have, following success with IoT, built analytic, operations management and software development capabilities – ranging from autonomous vehicles to manageable robotics installations. They have embraced these capabilities as if they were Silicon Valley startups. As a result, many firms employ new business models that place enormous impor...
SYS-CON Events announced today that MIRAI Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MIRAI Inc. are IT consultants from the public sector whose mission is to solve social issues by technology and innovation and to create a meaningful future for people.
Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
SYS-CON Events announced today that Dasher Technologies will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Dasher Technologies, Inc. ® is a premier IT solution provider that delivers expert technical resources along with trusted account executives to architect and deliver complete IT solutions and services to help our clients execute their goals, plans and objectives. Since 1999, we'v...
SYS-CON Events announced today that TidalScale, a leading provider of systems and services, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale has been involved in shaping the computing landscape. They've designed, developed and deployed some of the most important and successful systems and services in the history of the computing industry - internet, Ethernet, operating s...
SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of...
SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.
Infoblox delivers Actionable Network Intelligence to enterprise, government, and service provider customers around the world. They are the industry leader in DNS, DHCP, and IP address management, the category known as DDI. We empower thousands of organizations to control and secure their networks from the core-enabling them to increase efficiency and visibility, improve customer service, and meet compliance requirements.
SYS-CON Events announced today that TidalScale will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale is the leading provider of Software-Defined Servers that bring flexibility to modern data centers by right-sizing servers on the fly to fit any data set or workload. TidalScale’s award-winning inverse hypervisor technology combines multiple commodity servers (including their ass...
As hybrid cloud becomes the de-facto standard mode of operation for most enterprises, new challenges arise on how to efficiently and economically share data across environments. In his session at 21st Cloud Expo, Dr. Allon Cohen, VP of Product at Elastifile, will explore new techniques and best practices that help enterprise IT benefit from the advantages of hybrid cloud environments by enabling data availability for both legacy enterprise and cloud-native mission critical applications. By rev...
Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant tha...
As popularity of the smart home is growing and continues to go mainstream, technological factors play a greater role. The IoT protocol houses the interoperability battery consumption, security, and configuration of a smart home device, and it can be difficult for companies to choose the right kind for their product. For both DIY and professionally installed smart homes, developers need to consider each of these elements for their product to be successful in the market and current smart homes.
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, will lead you through the exciting evolution of the cloud. He'll look at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering ...
SYS-CON Events announced today that N3N will exhibit at SYS-CON's @ThingsExpo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. N3N’s solutions increase the effectiveness of operations and control centers, increase the value of IoT investments, and facilitate real-time operational decision making. N3N enables operations teams with a four dimensional digital “big board” that consolidates real-time live video feeds alongside IoT sensor data a...
In a recent survey, Sumo Logic surveyed 1,500 customers who employ cloud services such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). According to the survey, a quarter of the respondents have already deployed Docker containers and nearly as many (23 percent) are employing the AWS Lambda serverless computing framework. It’s clear: serverless is here to stay. The adoption does come with some needed changes, within both application development and operations. Tha...