| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.admin.client.cli; |
| | | |
| | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.util.Utils; |
| | | import org.opends.server.backends.task.FailedDependencyAction; |
| | | import org.opends.server.backends.task.RecurringTask; |
| | | import org.opends.server.types.DirectoryException; |
| | |
| | | OPTION_SHORT_FAILED_DEPENDENCY_ACTION, |
| | | OPTION_LONG_FAILED_DEPENDENCY_ACTION, false, true, true, |
| | | INFO_ACTION_PLACEHOLDER.get(), null, null, |
| | | INFO_DESCRIPTION_TASK_FAILED_DEPENDENCY_ACTION.get(StaticUtils |
| | | .collectionToString(fdaValSet, ","), FailedDependencyAction |
| | | .defaultValue().name())); |
| | | INFO_DESCRIPTION_TASK_FAILED_DEPENDENCY_ACTION.get( |
| | | Utils.joinAsString(",", fdaValSet), |
| | | FailedDependencyAction.defaultValue().name())); |
| | | |
| | | for (Argument arg : getArguments()) |
| | | { |
| | |
| | | Set<FailedDependencyAction> fdaValSet = |
| | | EnumSet.allOf(FailedDependencyAction.class); |
| | | throw new ArgumentException(ERR_TASKTOOL_INVALID_FDA.get(fda, |
| | | StaticUtils.collectionToString(fdaValSet, ","))); |
| | | Utils.joinAsString(",", fdaValSet))); |
| | | } |
| | | } |
| | | } |