001/* 002 * The contents of this file are subject to the terms of the Common Development and 003 * Distribution License (the License). You may not use this file except in compliance with the 004 * License. 005 * 006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the 007 * specific language governing permission and limitations under the License. 008 * 009 * When distributing Covered Software, include this CDDL Header Notice in each file and include 010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL 011 * Header, with the fields enclosed by brackets [] replaced by your own identifying 012 * information: "Portions Copyright [year] [name of copyright owner]". 013 * 014 * Copyright 2006-2008 Sun Microsystems, Inc. 015 * Portions Copyright 2015-2016 ForgeRock AS. 016 */ 017package org.opends.guitools.uninstaller; 018 019import org.opends.quicksetup.ProgressStep; 020 021/** Enumeration of steps for an uninstall process. */ 022public enum UninstallProgressStep implements ProgressStep { 023 024 /** Uninstall not started. */ 025 NOT_STARTED, 026 /** Uninstall has started. */ 027 STARTED, 028 /** Unconfiguring replication in remote servers. */ 029 UNCONFIGURING_REPLICATION, 030 /** Stopping server. */ 031 STOPPING_SERVER, 032 /** Disabling Windows Service. */ 033 DISABLING_WINDOWS_SERVICE, 034 /** Removing External Database files. */ 035 DELETING_EXTERNAL_DATABASE_FILES, 036 /** Removing External Log files. */ 037 DELETING_EXTERNAL_LOG_FILES, 038 /** Removing external references. */ 039 REMOVING_EXTERNAL_REFERENCES, 040 /** Removing installation files. */ 041 DELETING_INSTALLATION_FILES, 042 /** Installation finished successfully. */ 043 FINISHED_SUCCESSFULLY, 044 /** Installation finished with a non critical error updating remote servers. */ 045 FINISHED_WITH_ERROR_ON_REMOTE, 046 /** Installation finished but not all the files could be deleted. */ 047 FINISHED_WITH_ERROR_DELETING, 048 /** Installation finished with an error. */ 049 FINISHED_WITH_ERROR; 050 051 @Override 052 public boolean isLast() { 053 return this == FINISHED_SUCCESSFULLY || 054 this == FINISHED_WITH_ERROR || 055 this == FINISHED_WITH_ERROR_ON_REMOTE || 056 this == FINISHED_WITH_ERROR_DELETING; 057 } 058 059 @Override 060 public boolean isError() { 061 return this.equals(FINISHED_WITH_ERROR); 062 } 063}