Package org.opends.guitools.uninstaller
Class UninstallUserData
- java.lang.Object
-
- org.opends.quicksetup.UserData
-
- org.opends.guitools.uninstaller.UninstallUserData
-
public class UninstallUserData extends UserData
UserData with specific properties for Uninstall.
-
-
Field Summary
-
Fields inherited from class org.opends.quicksetup.UserData
IMPORT_SCRIPT_NAME, SERVER_SCRIPT_NAME
-
-
Constructor Summary
Constructors Constructor Description UninstallUserData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAdminPwd()Returns the administrator password provided by the user.StringgetAdminUID()Returns the administrator UID provided by the user.Set<String>getExternalDbsToRemove()Returns the list of databases located outside the installation that must be removed.Set<String>getExternalLogsToRemove()Returns the list of log files located outside the installation that must be removed.HostPortgetLocalServerHostPort()Returns the LDAP HostPort that we used to connect to the local server.StringgetReferencedHostName()Returns the server host name as referenced in other servers.Set<ServerDescriptor>getRemoteServers()Returns a Set containing the ServerDescriptors discovered in the TopologyCache.booleangetRemoveBackups()Returns whether the user wants to remove backups or not.booleangetRemoveConfigurationAndSchema()Returns whether the user wants to remove configuration and schema files or not.booleangetRemoveDatabases()Returns whether the user wants to remove databases or not.booleangetRemoveLDIFs()Returns whether the user wants to remove LDIF files or not.booleangetRemoveLibrariesAndTools()Returns whether the user wants to remove libraries and tools or not.booleangetRemoveLogs()Returns whether the user wants to remove logs or not.HostPortgetReplicationServer()Returns the replication server as referenced in other servers.ApplicationTrustManagergetTrustManager()Returns the trust manager that can be used to establish secure connections.booleangetUpdateRemoteReplication()Returns whether the user wants to update remote replication configuration or not.booleanisLocalServerSecure()Returns whether the LDAP connection to the local server uses LDAPS.voidsetAdminPwd(String adminPwd)Sets the administrator password provided by the user.voidsetAdminUID(String adminUID)Sets the administrator UID provided by the user.voidsetExternalDbsToRemove(Set<String> dbPaths)Sets the database directories located outside the installation which must be removed.voidsetExternalLogsToRemove(Set<String> logFiles)Sets the log files located outside the installation which must be removed.voidsetLocalServer(HostPort hostPort, boolean isSecure)Sets the LDAP HostPort that we used to connect to the local server.voidsetReferencedHostName(String referencedHostName)Sets the server host name as referenced in other servers.voidsetRemoteServers(Set<ServerDescriptor> remoteServers)Sets the ServerDescriptors discovered in the TopologyCache.voidsetRemoveBackups(boolean removeBackups)Sets whether to remove backups or not.voidsetRemoveConfigurationAndSchema(boolean removeConfigurationAndSchema)Sets whether to remove configuration and schema files or not.voidsetRemoveDatabases(boolean removeDatabases)Sets whether to remove databases or not.voidsetRemoveLDIFs(boolean removeLDIFs)Sets whether to remove LDIF files or not.voidsetRemoveLibrariesAndTools(boolean removeLibrariesAndTools)Sets whether to remove libraries and tools or not.voidsetRemoveLogs(boolean removeLogs)Sets whether to remove log files or not.voidsetReplicationServer(HostPort replicationServer)Sets the replication server as referenced in other servers.voidsetTrustManager(ApplicationTrustManager trustManager)Sets the trust manager that can be used to establish secure connections.voidsetUpdateRemoteReplication(boolean updateRemoteReplication)Sets whether to update remote replication configuration or not.-
Methods inherited from class org.opends.quicksetup.UserData
createAdministrator, getAdminConnectorPort, getBackendType, getConnectTimeout, getDefaultAdminConnectorPort, getDefaultHostName, getDefaultJavaArguments, getDefaultJMXPort, getDefaultPort, getDefaultSslPort, getDirectoryManagerDn, getDirectoryManagerPwd, getEnableWindowsService, getGlobalAdministratorPassword, getGlobalAdministratorUID, getHostName, getHostPort, getJavaArguments, getNewSuffixOptions, getRemoteWithNoReplicationPort, getReplicationOptions, getScriptNamesForJavaArguments, getSecurityOptions, getServerJMXPort, getServerLocation, getServerPort, getStartServer, getStopServer, getSuffixesToReplicateOptions, isForceOnError, isInteractive, isQuiet, isVerbose, mustCreateAdministrator, setAdminConnectorPort, setBackendType, setConnectTimeout, setDirectoryManagerDn, setDirectoryManagerPwd, setEnableWindowsService, setForceOnError, setGlobalAdministratorPassword, setGlobalAdministratorUID, setHostName, setJavaArguments, setNewSuffixOptions, setQuiet, setRemoteWithNoReplicationPort, setReplicationOptions, setSecurityOptions, setServerJMXPort, setServerLocation, setServerPort, setStartServer, setStopServer, setSuffixesToReplicateOptions, setVerbose
-
-
-
-
Method Detail
-
setExternalDbsToRemove
public void setExternalDbsToRemove(Set<String> dbPaths)
Sets the database directories located outside the installation which must be removed.- Parameters:
dbPaths- the directories of the database files.
-
getExternalDbsToRemove
public Set<String> getExternalDbsToRemove()
Returns the list of databases located outside the installation that must be removed.- Returns:
- the list of databases located outside the installation that must be removed.
-
setExternalLogsToRemove
public void setExternalLogsToRemove(Set<String> logFiles)
Sets the log files located outside the installation which must be removed.- Parameters:
logFiles- the log files.
-
getExternalLogsToRemove
public Set<String> getExternalLogsToRemove()
Returns the list of log files located outside the installation that must be removed.- Returns:
- the list of log files located outside the installation that must be removed.
-
getRemoveLibrariesAndTools
public boolean getRemoveLibrariesAndTools()
Returns whether the user wants to remove libraries and tools or not.- Returns:
trueif the user wants to remove the libraries and tools andfalseotherwise.
-
setRemoveLibrariesAndTools
public void setRemoveLibrariesAndTools(boolean removeLibrariesAndTools)
Sets whether to remove libraries and tools or not.- Parameters:
removeLibrariesAndTools- remove libraries and tools or not.
-
setRemoveDatabases
public void setRemoveDatabases(boolean removeDatabases)
Sets whether to remove databases or not.- Parameters:
removeDatabases- remove databases or not.
-
getRemoveDatabases
public boolean getRemoveDatabases()
Returns whether the user wants to remove databases or not.- Returns:
trueif the user wants to remove the databases andfalseotherwise.
-
setRemoveBackups
public void setRemoveBackups(boolean removeBackups)
Sets whether to remove backups or not.- Parameters:
removeBackups- remove backups or not.
-
getRemoveBackups
public boolean getRemoveBackups()
Returns whether the user wants to remove backups or not.- Returns:
trueif the user wants to remove the backups andfalseotherwise.
-
setRemoveLogs
public void setRemoveLogs(boolean removeLogs)
Sets whether to remove log files or not.- Parameters:
removeLogs- remove log files or not.
-
getRemoveLogs
public boolean getRemoveLogs()
Returns whether the user wants to remove logs or not.- Returns:
trueif the user wants to remove the log files andfalseotherwise.
-
setRemoveLDIFs
public void setRemoveLDIFs(boolean removeLDIFs)
Sets whether to remove LDIF files or not.- Parameters:
removeLDIFs- remove LDIF files or not.
-
getRemoveLDIFs
public boolean getRemoveLDIFs()
Returns whether the user wants to remove LDIF files or not.- Returns:
trueif the user wants to remove the LDIF files andfalseotherwise.
-
setRemoveConfigurationAndSchema
public void setRemoveConfigurationAndSchema(boolean removeConfigurationAndSchema)
Sets whether to remove configuration and schema files or not.- Parameters:
removeConfigurationAndSchema- remove configuration and schema files or not.
-
getRemoveConfigurationAndSchema
public boolean getRemoveConfigurationAndSchema()
Returns whether the user wants to remove configuration and schema files or not.- Returns:
trueif the user wants to remove the configuration and schema files andfalseotherwise.
-
setUpdateRemoteReplication
public void setUpdateRemoteReplication(boolean updateRemoteReplication)
Sets whether to update remote replication configuration or not.- Parameters:
updateRemoteReplication- update remote replication configuration or not.
-
getUpdateRemoteReplication
public boolean getUpdateRemoteReplication()
Returns whether the user wants to update remote replication configuration or not.- Returns:
trueif the user wants to update remote replication configuration andfalseotherwise.
-
getTrustManager
public ApplicationTrustManager getTrustManager()
Returns the trust manager that can be used to establish secure connections.- Returns:
- the trust manager that can be used to establish secure connections.
-
setTrustManager
public void setTrustManager(ApplicationTrustManager trustManager)
Sets the trust manager that can be used to establish secure connections.- Parameters:
trustManager- the trust manager that can be used to establish secure connections.
-
getAdminPwd
public String getAdminPwd()
Returns the administrator password provided by the user.- Returns:
- the administrator password provided by the user.
-
setAdminPwd
public void setAdminPwd(String adminPwd)
Sets the administrator password provided by the user.- Parameters:
adminPwd- the administrator password provided by the user.
-
getAdminUID
public String getAdminUID()
Returns the administrator UID provided by the user.- Returns:
- the administrator UID provided by the user.
-
setAdminUID
public void setAdminUID(String adminUID)
Sets the administrator UID provided by the user.- Parameters:
adminUID- the administrator UID provided by the user.
-
getReplicationServer
public HostPort getReplicationServer()
Returns the replication server as referenced in other servers.- Returns:
- the replication server as referenced in other servers.
-
setReplicationServer
public void setReplicationServer(HostPort replicationServer)
Sets the replication server as referenced in other servers.- Parameters:
replicationServer- the replication server as referenced in other servers.
-
getReferencedHostName
public String getReferencedHostName()
Returns the server host name as referenced in other servers.- Returns:
- the server host name as referenced in other servers.
-
setReferencedHostName
public void setReferencedHostName(String referencedHostName)
Sets the server host name as referenced in other servers.- Parameters:
referencedHostName- server host name as referenced in other servers.
-
getLocalServerHostPort
public HostPort getLocalServerHostPort()
Returns the LDAP HostPort that we used to connect to the local server.- Returns:
- the LDAP HostPort that we used to connect to the local server.
-
isLocalServerSecure
public boolean isLocalServerSecure()
Returns whether the LDAP connection to the local server uses LDAPS.- Returns:
- whether the LDAP connection to the local server uses LDAPS
-
setLocalServer
public void setLocalServer(HostPort hostPort, boolean isSecure)
Sets the LDAP HostPort that we used to connect to the local server.- Parameters:
hostPort- the LDAP HostPort that we used to connect to the local server.isSecure- whether the local server uses a secure connection
-
getRemoteServers
public Set<ServerDescriptor> getRemoteServers()
Returns a Set containing the ServerDescriptors discovered in the TopologyCache.- Returns:
- a Set containing the ServerDescriptors discovered in the TopologyCache.
-
setRemoteServers
public void setRemoteServers(Set<ServerDescriptor> remoteServers)
Sets the ServerDescriptors discovered in the TopologyCache.- Parameters:
remoteServers- the Set containing the ServerDescriptors discovered in the TopologyCache.
-
-