/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at
* trunk/opends/resource/legal-notices/OpenDS.LICENSE
* or https://OpenDS.dev.java.net/OpenDS.LICENSE.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
* add the following below this CDDL HEADER, with the fields enclosed
* by brackets "[]" replaced with your own identifying * information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Portions Copyright 2006 Sun Microsystems, Inc.
*/
package org.opends.quicksetup.installer;
/**
* This class is used to provide a data model for the different parameters
* that the user can provide in the installation wizard.
*
* @see DataOptions.
*
*/
public class UserInstallData
{
private String serverLocation;
private int serverPort;
private String directoryManagerDn;
private String directoryManagerPwd;
private boolean startServer;
private DataOptions dataOptions;
/**
* Sets the location of the server (installation path).
* @param serverLocation the new server location (installation path).
*/
public void setServerLocation(String serverLocation)
{
this.serverLocation = serverLocation;
}
/**
* Returns the location of the server (installation path).
* @return the location of the server (installation path).
*/
public String getServerLocation()
{
return serverLocation;
}
/**
* Sets the server LDAP port.
* @param serverPort the new server LDAP port.
*/
public void setServerPort(int serverPort)
{
this.serverPort = serverPort;
}
/**
* Returns the server LDAP port.
* @return the server LDAP port.
*/
public int getServerPort()
{
return serverPort;
}
/**
* Returns the Directory Manager DN.
* @return the Directory Manager DN.
*/
public String getDirectoryManagerDn()
{
return directoryManagerDn;
}
/**
* Sets the new Directory Manager DN.
* @param directoryManagerDn the new Directory Manager DN.
*/
public void setDirectoryManagerDn(String directoryManagerDn)
{
this.directoryManagerDn = directoryManagerDn;
}
/**
* Returns the Directory Manager password.
* @return the Directory Manager password.
*/
public String getDirectoryManagerPwd()
{
return directoryManagerPwd;
}
/**
* Sets the new Directory Manager password.
* @param directoryManagerPwd the new Directory Manager password.
*/
public void setDirectoryManagerPwd(String directoryManagerPwd)
{
this.directoryManagerPwd = directoryManagerPwd;
}
/**
* Returns true if the server must be started once the
* installation is finished, false if not.
* @return true if the server must be started once the
* installation is finished, false if not.
*/
public boolean getStartServer()
{
return startServer;
}
/**
* Sets whether we want to start the server once the installation is finished
* or not.
* @param startServer the boolean indicating whether to start the server or
* not.
*/
public void setStartServer(boolean startServer)
{
this.startServer = startServer;
}
/**
* Returns the DataOptions object representing the data in the Data Options
* panel.
* @return the DataOptions object representing the data in the Data Options
* panel.
*/
public DataOptions getDataOptions()
{
return dataOptions;
}
/**
* Sets the DataOptions object representing the data in the Data Options
* panel.
* @param dataOptions the DataOptions object representing the data in the Data
* Options panel.
*/
public void setDataOptions(DataOptions dataOptions)
{
this.dataOptions = dataOptions;
}
}