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