Download presentation
Presentation is loading. Please wait.
Published byStephen Preston Modified over 8 years ago
1
UpgradinguPortal to 3.1.1
2
What’s new that matters Better use of third party frameworks Faster! Improved caching Drag and Drop New Skin & Theme Accessibility Identity Swapper
3
What’s new that matters (cont) Fragment Administrator WebProxy Portlet Selective URL rewriting with RegEx Binary content proxying Database backed stats recorder Import / Export Tools
4
The details...
5
Maven Now used to build uPortal Software build tool Manages dependancies Dynamically download libraries and Maven plug-ins from one or more repositories
6
New Theme & Skin Meaningful Directory Names Separate Structure & Theme Flexible Skin Directories Allows for shared files Skins are assumed to be theme specific
7
Theme File Summary universality.xsl - Core file, has instructions and configuration page.xsl - Contains base portal page layout templates navigation.xsl - Contains portal navigation templates columns.xsl - Per-column layout and formatting templates content.xsl - Portlet/Channel container templates preferences.xsl - User Preferences UI templates components.xsl - Common utility templates messages.xml - I18n capable messages file, contains all text
8
Import/Export Features Offers Ant-based create/update/delete operations on most portal entities uPortal 3.1.1 Supports the following entities Entity TypesStructuresThem esUsersGroupsGroup s with Members Channel Types ChannelsMembershipsP ermissionsPermission SetsLayoutsDLM Fragment Definitions
9
Import/Export does not handle: ALM - There is a utility for converting from fragments.xml Multiple user profiles PROFILE_ID is assumed to be 1 in several places Duplicate group names Object types that do not have non- sequential unique identifiers (i.e. username, fname) must have unique names
10
DEMO uPortal 3.1.1
11
A big step Where did everything go? Database schema changes New XML context files for configuration, Spring configuration Changes to the build system – Maven 2
12
How do we get there?
13
Upgrade Big Picture 1. Deal with local customizations? - Subversion! 2. New uPortal 3.1.1 project in subversion - Apply bundle changes 3. Work on your county branch to apply customizations 4. Data export 2.5.3 5. Configure uPortal 3.1.1 6. Data import
14
Using Import / Export crn-export: Creates XML representations of the specified object(s) crn-import: Modifies the database to match the specified XML document(s) crn-delete: Removes the specified object(s) from the database crn-make-data-xml: Synthesizes information in your database and some default data to create a slim data.xml file Example: ant crn-export - Ddir=mylayouts -Dtype=all-layouts
15
Configuring uPortal 3 Configuration Required for Import Database LDAP User Attributes Groups Layout Fragments
16
Database Configuration rdbm.properties uportal-impl/src/main/resources/properties/ Hibernate Dialects for Database Type Selection pom.xml JDBC Driver Configuration Driver must be available to Maven mvn install:install-file Run a Maven repository manager for the project
17
JDBC Driver Setup ##### Oracle 10g - example hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver hibernate.connection.url=jdbc:oracle:thin:@mydb.school.edu:1654:MYPROD hibernate.connection.username=myuser hibernate.connection.password=mypassword hibernate.dialect=org.hibernate.dialect.Oracle10gDialect pom.xml rdbm.properties... portal com.oracle ojdbc5 11.1.0.6.0...
18
Groups Configuration compositeGroupServices.xml uportal- impl/src/main/resources/properties/gr oups Same groups config from 2.x Copy configuration files from existing uPortal install
19
DLM Configuration dlm.xml uportal- impl/src/main/resources/properties Same DLM config from 2.5 and later Copy configuration files from existing uPortal install
20
Data Import Setup base portal entities Copy exported data.xml into uP3 Configure import.properties Point crn-import to uP2 data export Using entities.location technique described earlier
21
Base Entities Requirements for an uPortal install Users: system, defaultTemplateUser, fragmentTemplate, guest Layouts system, defaultTemplateUser, fragmentTemplate, guest Define headers/footers in defaultTemplateUser.layout Entity Types – All included Channels referenced by base layouts New Entities – Refer to release notes
22
Base Entities Channel Types Some pruning can be done here Theme and Layout files (optional) Using those included with uP3 allows for easier transition to new theme and skin Can be forced on layouts via import.properties
23
Import Properties Provides important defaults Layout structure name Layout theme name Default user name Provides option to force each default Useful when switching to the new theme No need to updated thousands of user and layout files by hand
24
Initializing the Database initdb The only ant task you should need, calls others db Creates tables from tables.xml Populates tables from data.xml db-hibernate Creates tables for Hibernate entities Db-import - Runs crn-import with default 'dir' argument
25
Seriously, what do I have to do? 1. Make sure your branch is up to date 2. Compare your branch against bundle 1. Channel inventory 3. Skin work 4. Data clean-up 5. Server Setup 1. Java 6 2. Apache Maven 2.10 3. Apache Ant 1.7.1 4. Apache Tomcat 6.0.18
26
1. Update your branch Setup Eclipse Checkout your county branch Apply you local customizations
27
2. Compare to bundle
28
3. Skin work Migrating Theme Customizations Start with universality and modify Base theme has significant improvements from 2.x Skinning Make a copy of default universality skin Update.theme file with your new skin name Force layouts to use the new theme
29
4. Data clean up Remove multiple user profiles Remove duplicate group names Delete old groups Revisit categories Purge users Channel removal
30
5. Server setup Hardware Existing hardware should suffice 2 2/3 Ghz Processors 2 GB Memory (Just for uPortal) 20 Gb disk space
31
5. Server setup Software http://java.sun.com/javase/downloads/ index.jsp http://java.sun.com/javase/downloads/ index.jsp http://maven.apache.org/download.ht ml http://maven.apache.org/download.ht ml http://ant.apache.org/bindownload.cgi http://tomcat.apache.org/download- 60.cgi
32
Questions?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.