com.sage.orion.sdata.servlet.swtservice
Class LandingPageUpgrade

java.lang.Object
  extended by com.sage.orion.sdata.servlet.swtservice.LandingPageUpgrade

public class LandingPageUpgrade
extends java.lang.Object

This class will copy the default landing pages from the 6.0 uiDefinitions folder to the 6.1 uiDefinitions folders.

In 6.0 the default landing pages will be found in the 2 areas.

The default portal landing page is found under tomcat at:

(tomcat folder)/portal/swtServices/uiDefinitions/portal60a/(language folder)/portal/ DefaultLandingPage.xml

and

User specific landing pages are found under tomcat at:

(tomcat folder)/portal/swtServices/uiDefinitions/portal60a/(language folder)/portal// DefaultLandingPage.xml

This classes will find all these default landing page and copy them to the 6.1 folders.

In 6.0 the user specific landing pages were not specific to any one company. In 6.1 the landing pages are specific to a given company, therefore the landing pages are copied to every possible company.

In addition, in 6.1 all user specific landing pages should be stored in the shared data folder. This will allow hosted users to store their landing pages without interfering with each other.

Therefore in 6.0 if you had

(tomcat folder)/portal/swtServices/uiDefinitions/portal60a/eng/portal/ DefaultLandingPage.xml

(tomcat folder)/portal/swtServices/uiDefinitions/portal60a/eng/portal/USER1/ DefaultLandingPage.xml

(tomcat folder)/portal/swtServices/uiDefinitions/portal60a/eng/portal/USER2/ DefaultLandingPage.xml

Will be copied in 6.1 to

(tomcat folder)/portal/swtServices/uiDefinitions/portal61a/eng/portal/ DefaultLandingPage.xml

(shared data folder) /portal/swtServices/uiDefinitions/portal61a/eng/portal /USER1/SAMINC/ DefaultLandingPage.xml

(shared data folder)/portal/swtServices/uiDefinitions/portal6!a/eng/portal /USER2/SAMINC/ DefaultLandingPage.xml

(shared data folder)/portal/swtServices/uiDefinitions/portal61a/eng/portal /USER1/SAMLTD/ DefaultLandingPage.xml

(shared data folder)portal/swtServices/uiDefinitions/portal61a/eng/portal /USER2/SAMLTD/ DefaultLandingPage.xml

If there is no portal60a folder, then no upgrade will be done.

One the upgrade has been completed the portal60a folder will be tagged with an updated.txt file - and no further upgrade attempts will be made on this folder.


Constructor Summary
LandingPageUpgrade(SwtApplicationContext context)
          Constructor.
 
Method Summary
 void upgrade()
          Upgrade all the LandingPages from 6.0 to 6.1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LandingPageUpgrade

public LandingPageUpgrade(SwtApplicationContext context)
Constructor.

Parameters:
context - the SwtApplicationContext
Method Detail

upgrade

public void upgrade()
Upgrade all the LandingPages from 6.0 to 6.1.

Copy all the DefaultLandingPages.xml from

uiDefinations\portal60a\\portal\\\DefaultLandingPages .xml to

uiDefinations\portal61a\\portal\\\DefaultLandingPages .xml

and

uiDefinations\portal60a\\DefaultLandingPages.xml to

uiDefinations\portal61a\\DefaultLandingPages.xml



Copyright © 2011 Sage Software, Inc. All rights reserved.