RegistrationOptions.xcs revision ada1678a4262b208a7b87391f520a7767d25287c
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills<?xml version="1.0" encoding="utf-8"?>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills<!--
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills The contents of this file are subject to the terms of either the GNU
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills General Public License Version 2 only ("GPL") or the Common Development
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills and Distribution License("CDDL") (collectively, the "License"). You
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills may not use this file except in compliance with the License. You can
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills obtain a copy of the License at
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills or packager/legal/LICENSE.txt. See the License for the specific
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills language governing permissions and limitations under the License.
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills When distributing the software, include this License Header Notice in each
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills file and include the License file at packager/legal/LICENSE.txt.
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills GPL Classpath Exception:
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills Oracle designates this particular file as subject to the "Classpath"
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills exception as provided by Oracle in the GPL Version 2 section of the License
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills file that accompanied this code.
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills Modifications:
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills If applicable, add the following below the License Header, with the fields
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills enclosed by brackets [] replaced by your own identifying information:
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills "Portions Copyright [year] [name of copyright owner]"
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills Contributor(s):
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills If you wish your version of this file to be governed by only the CDDL or
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills only the GPL Version 2, indicate your decision by adding "[Contributor]
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills elects to include this software in this distribution under the [CDDL or GPL
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills Version 2] license." If you don't indicate a single choice of license, a
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills recipient has the option to distribute your version of this file under
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills either the CDDL, the GPL Version 2 or to extend the choice of license to
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills its licensees as provided above. However, if you add GPL Version 2 code
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills and therefore, elected the GPL Version 2 license, then the option applies
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills only if the new code is made subject to such option by the copyright
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills holder.
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills-->
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills<oor:component-schema oor:version="1.1" oor:name="RegistrationOptions" oor:package="com.sun.install.L10nSelection"
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills xsi:schemaLocation="http://openoffice.org/2001/registry"
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills xmlns:xs="http://www.w3.org/2001/XMLSchema"
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills xmlns:oor="http://openoffice.org/2001/registry"
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills xml:lang='en-US'>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <component>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <group oor:name="regoptions">
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <prop oor:name="CREATE_NEWACCT" oor:type="xs:string" oor:transient="true">
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <value>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills CREATE_NEWACCT
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </value>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <desc xml:lang="en-US">Registration Mode</desc>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </prop>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <prop oor:name="USE_EXISTINGACCT" oor:type="xs:string" oor:transient="true">
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <value>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills USE_EXISTINGACCT
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </value>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <desc xml:lang="en-US">Registration Mode 2</desc>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </prop>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <prop oor:name="SKIP_REGISTRATION" oor:type="xs:string" oor:transient="true">
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <value>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills SKIP_REGISTRATION
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </value>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <desc xml:lang="en-US">Registration Mode 3</desc>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </prop>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <prop oor:name="USERNAME" oor:type="xs:string" oor:transient="true">
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <value/>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <desc xml:lang="en-US">User Name</desc>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <actions>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <onSet><![CDATA[
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Millsimport java.lang.String;
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Millsimport java.util.List;
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Millsimport org.openinstaller.provider.conf.ConfigHelper;
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary MillsString regOption = (String)ConfigHelper.getValue(
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills "RegistrationOptions.regoptions.REGISTRATION_MODE");
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Millsif (regOption.equals("USE_EXISTINGACCT")) {
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills checkForNullValues(thisProperty);
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills}
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills ]]></onSet>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </actions>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </prop>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <prop oor:name="USERPASSWORD" oor:type="xs:string" oor:transient="true">
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <value/>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <desc xml:lang="en-US">User Password</desc>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <actions>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <onSet><![CDATA[
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Millsimport java.lang.String;
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Millsimport java.util.List;
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Millsimport org.openinstaller.provider.conf.ConfigHelper;
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary MillsString regOption = (String)ConfigHelper.getValue(
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills "RegistrationOptions.regoptions.REGISTRATION_MODE");
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Millsif (regOption.equals("USE_EXISTINGACCT")) {
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills checkForNullValues(thisProperty);
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills}
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills ]]></onSet>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </actions>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </prop>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <prop oor:name="REGISTRATION_MODE" oor:type="xs:string" oor:transient="true">
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <value/>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <desc xml:lang="en-US">User Password</desc>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </prop>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <prop oor:name="DUMMY_PROP" oor:type="xs:string" oor:transient="true">
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <value/>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <desc xml:lang="en-US">Dummy Field</desc>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <actions>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <onSet><![CDATA[
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Millsimport org.openinstaller.provider.conf.ConfigHelper;
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary MillsString inputStatus = (String)ConfigHelper.getValue("RegistrationOptions.regoptions.STATUS");
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Millsif ((inputStatus != null) && (inputStatus.equals("ERROR"))) {
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills ConfigHelper.setValue("RegistrationOptions.regoptions.STATUS", "");
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills}
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills ]]></onSet>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </actions>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </prop>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <prop oor:name="STATUS" oor:type="xs:string" oor:transient="true">
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <value/>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills <desc xml:lang="en-US">Status</desc>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </info>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </prop>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </group>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills </component>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills</oor:component-schema>
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills
5e8715b93d1d651ab2805b5e6e98b17df49fa92fGary Mills