001: package com.sun.portal.fabric.upgrade;
002:
003: import java.io.File;
004:
005: public class UpgradeConstants {
006:
007: //JES Installer Portal Server component selection.
008: //TODO: Add Orion uninstalleer to all later. OrionUninstaller PSRAL10NConfigurator PSL10NConfigurator PSL10NConfigurator
009: public static String JES4_SILENT_INSTALL_COMPONENT_PORTAL_SERVER = "RegistryServer,PortalServer,PortalAdmin,ServiceRegistryDev,JavaDB,JavaDBCommon,JavaDBClient,JavaDBServer";
010: public static String JES4_SILENT_INSTALL_COMPONENT_SRA = "PortalAdmin,PortalSRA,SRACore";
011: public static String JES4_SILENT_INSTALL_COMPONENT_GATEWAY = "SRACommon,PortalAdminForSRA,PortalSRA,SRAGateway";
012: public static String JES4_SILENT_INSTALL_COMPONENT_NETLET = "SRACommon,PortalAdminForSRA,PortalSRA,SRANetletProxy";
013: public static String JES4_SILENT_INSTALL_COMPONENT_REWRITER = "SRACommon,PortalAdminForSRA,PortalSRA,SRARewriterProxy";
014:
015: // Start - L10N Code change
016:
017: public static String JES4_SILENT_INSTALL_COMPONENT_PORTAL_SERVER_L10N = "PortalServerL10n";
018: public static String JES4_SILENT_INSTALL_COMPONENT_SRA_L10N = "PortalSRAL10n";
019: public static String JES4_SILENT_INSTALL_COMPONENT_GATEWAY_L10N = "PortalSRAL10n";
020: public static String JES4_SILENT_INSTALL_COMPONENT_NETLET_PROXY_L10N = "PortalSRAL10n";
021: public static boolean PORTAL_L10N_INSTALLED = false;
022:
023: //Finish - L10N Code change
024:
025: //Deploy types of 7.0
026: public static final String WC_TYPE_S1AS8 = "SJSAS81";
027: public static final String WC_TYPE_S1WS6 = "SJSWS6";
028: public static final String WC_TYPE_S1WS7 = "SJSWS7";
029: public static final String WC_TYPE_IBMWAS5 = "IBMWAS5";
030: public static final String WC_TYPE_BEAWL8 = "BEAWL8";
031: public static final String WC_TYPE_WEBLOGIC = "WEBLOGIC";
032: public static final String WC_TYPE_WEBSPHERE = "WEBSPHERE";
033:
034: //Ant targets
035: public static final String POSTUPGRADE = "postupgrade";
036: public static final String PREUPGRADE = "preupgrade";
037: public static final String UPGRADE = "upgrade";
038: public static final String CACAO_RESTART = "cacaoRestart";
039: public static final String ANT_TARGET_AM_REQUESTS = "amadmin";
040: public static final String ANT_TARGET_AM_RESOURCE_BUNDLE_REQUESTS = "amadminResourceBundle";
041: public static final String ANT_TARGET_LDAPMODIFY_REQUESTS = "ldapmodify";
042: public static final String ROLLBACK = "rollback";
043: public static final String AM_SERVICES_REMOVE_FILE = "servicesremove.txt";
044:
045: //Log message definitions.
046: public static final int LOG_WARNING = 2;
047: public static final int LOG_MESSAGE = 1;
048: public static final int LOG_FATAL = 3;
049: public static final int LOG_DEBUG = 3;
050:
051: public static final String UPGRADE_PATH_6_3 = "PS_6_3,PS_6_3_1,PS_7_0";
052: public static final String UPGRADE_PATH_6_3_1 = "PS_6_3_1,PS_7_0";
053: public static final String UPGRADE_PATH_7_0 = "PS_7_0";
054:
055: //Exit code definitions.
056: public static final int SPECIFIC_UPGRADE_ERROR_EXIT_CODE = -1;
057: public static final int UPGRADE_INIT_ERROR_EXIT_CODE = 1;
058: public static final int PRE_UPGRADE_ERROR_EXIT_CODE = 2;
059: public static final int IN_UPGRADE_ERROR_EXIT_CODE = 3;
060: public static final int POST_UPGRADE_ERROR_EXIT_CODE = 4;
061: //All specific upgrade error code that happen in upgrade are between 300-399.
062: public static final int SPECIFIC_UPGRADE_ERROR_DP_UPDATES_EXIT_CODE = 301;
063: public static final int SPECIFIC_UPGRADE_ERROR_AM_UPDATES_EXIT_CODE = 302;
064: public static final int SPECIFIC_UPGRADE_ERROR_CONFIGURATION_FAILED_EXIT_CODE = 303;
065: //All specific upgrade error code that happen in post upgrade are between 200-299.
066:
067: //The resource directory is relative to the upgrade/bin directory
068: public static final String RESOURCE_DIR_PS63 = ".."
069: + File.separator + "upgrade-resource" + File.separator
070: + "ps63";
071: public static final String RESOURCE_DIR_PS631 = ".."
072: + File.separator + "upgrade-resource" + File.separator
073: + "ps631";
074: public static final String RESOURCE_DIR_JES4 = ".."
075: + File.separator + "upgrader-resource" + File.separator
076: + "jes4";
077: public static final String RESOURCE_DIR_PS70 = ".."
078: + File.separator + "upgrade-resource" + File.separator
079: + "ps70";
080:
081: /*
082: * Following constants define what directories to scan for AM and DS repositry changes during direct upgrade.
083: */
084: public static final String[] RESOURCE_DIRS_PS63 = {
085: RESOURCE_DIR_PS63, RESOURCE_DIR_PS631, RESOURCE_DIR_PS70 };
086: public static final String[] RESOURCE_DIRS_PS631 = {
087: RESOURCE_DIR_PS631, RESOURCE_DIR_PS70 };
088: public static final String[] RESOURCE_DIRS_PS70 = { RESOURCE_DIR_PS70 };
089:
090: public static final String RESOURCE_JAR = "upgraderesource.jar";
091: public static final String SOLARIS_TMP_DIR = "/var/tmp";
092: public static final String LINUX_TMP_DIR = "/var/tmp";
093: public static final String MANAGE_INST_DIR = "/var/tmp/manage";
094: public static final String PS_BACKUP_SCRIPT_FILE = "psambackup.sh";
095: public static final String PS_RPMS_REMOVE_SCRIPT_FILE = "removePortalRpms.sh";
096: //JES4 silent install file. This was created using the IFR 7.0 installer.
097: public static final String JES_INSTALL_FILE_SUNOS = "jes4silentinstall_SunOS.txt";
098: public static final String JES_INSTALL_FILE_LINUX = "jes4silentinstall_Linux.txt";
099: //The Upgrade config file
100: public static final String PS_CONFIG_XML_FILE = "psconfigupgrade.xml";
101: //The Upgrade properties file
102: public static final String PS_UPGRADE_PROPERTIES_FILE = "upgrade.properties";
103:
104: //Password strings in the password file.
105: public static final String IDSAME_ADMIN_PASSWORD_STR = "IDSAME_ADMIN_PASSWORD";
106: public static final String DS_DIRMGR_PASSWORD_STR = "DS_DIRMGR_PASSWORD";
107: public static final String WEB_CONTAINER_ADMIN_PASSWORD_STR = "WEB_CONTAINER_ADMIN_PASSWORD";
108: public static final String WEB_CONTAINER_MASTER_PASSWORD_STR = "WEB_CONTAINER_MASTER_PASSWORD";
109: public static final String CERT_DB_PASSWORD_STR = "CERT_DB_PASSWORD";
110: public static final String SRA_LOG_USER_PASSWORD_STR = "SRA_LOG_USER_PASSWORD";
111: public static final String IDSAME_LDAP_USER_PASSWORD_STR = "IDSAME_LDAP_USER_PASSWORD";
112:
113: public static final String AMSDK_PKG_INFO_FILE = "/var/sadm/pkg/SUNWamsdk/pkginfo";
114: public static final String PS_PKG_INFO_FILE = "/var/sadm/pkg/SUNWpscfg/pkginfo";
115: public static final String WS_PKG_INFO_FILE = "/var/sadm/pkg/SUNWwbsvr/pkginfo";
116: public static final String AS_PKG_INFO_FILE = "/var/sadm/pkg/SUNWascmn/pkginfo";
117: public static final String PS7_PKG_INFO_FILE = "/var/sadm/pkg/SUNWportal-admin/pkginfo";
118:
119: public static final String SOLARIS_SPARC_PATCH_KEY = "solaris.sparc.patches";
120: public static final String LINUX_x86_PATCH_KEY = "linux.x86.patches";
121: public static final String SOLARIS_x86_PATCH_KEY = "solaris.x86.patches";
122: public static final String PATCH_FILE = "patches.txt";
123:
124: public static final String AM_SPECIAL_USER_DN = "com.sun.identity.authentication.special.users";
125: public static final String AM_ADMIN_DN = "com.sun.identity.authentication.super.user";
126: public static final String ROOT_DN = "com.iplanet.am.rootsuffix";
127: public static final String DOMAIN_COMPONENT = "com.iplanet.am.domaincomponent";
128: public static final String DEFAULT_ORG = "com.iplanet.am.defaultOrg";
129: public static final String DS_HOST = "com.iplanet.am.directory.host";
130: public static final String DS_PORT = "com.iplanet.am.directory.port";
131: public static final String DS_SSL_ENABLED = "com.iplanet.am.directory.ssl.enabled";
132: public static final String AM_HOST = "com.iplanet.am.server.host";
133: public static final String AM_PORT = "com.iplanet.am.server.port";
134: public static final String IDSAME_AMSERVER = "com.iplanet.am.services.deploymentDescriptor";
135: public static final String IDSAME_AMCONSOLE = "com.iplanet.am.console.deploymentDescriptor";
136: public static final String PS_CONFIG_PROPPERTIES_FILE = "PSConfig.properties";
137:
138: }
|