| | |
| | | * |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.forgerock.opendj.config.dsconfig; |
| | | |
| | |
| | | final Map<RelationDefinition<?, ?>, CreateSubCommandHandler<?, ?>> createHandlers = new HashMap<>(); |
| | | final Map<RelationDefinition<?, ?>, DeleteSubCommandHandler> deleteHandlers = new HashMap<>(); |
| | | final Map<RelationDefinition<?, ?>, ListSubCommandHandler> listHandlers = new HashMap<>(); |
| | | final Map<RelationDefinition<?, ?>, GetPropSubCommandHandler> getPropHandlers = new HashMap<>(); |
| | | final Map<RelationDefinition<?, ?>, SetPropSubCommandHandler> setPropHandlers = new HashMap<>(); |
| | | |
| | | for (final CreateSubCommandHandler<?, ?> ch : handlerFactory.getCreateSubCommandHandlers()) { |
| | |
| | | |
| | | for (final GetPropSubCommandHandler gh : handlerFactory.getGetPropSubCommandHandlers()) { |
| | | relations.add(gh.getRelationDefinition()); |
| | | getPropHandlers.put(gh.getRelationDefinition(), gh); |
| | | } |
| | | |
| | | for (final SetPropSubCommandHandler sh : handlerFactory.getSetPropSubCommandHandlers()) { |
| | |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.forgerock.opendj.config.dsconfig; |
| | | |
| | |
| | | @Override |
| | | public MenuResult<Boolean> invoke(ConsoleApplication app) throws ClientException { |
| | | app.println(); |
| | | SortedSet<T> previousValues = new TreeSet<>(currentValues); |
| | | readPropertyValues(app, mo.getManagedObjectDefinition(), d, currentValues); |
| | | SortedSet<T> addedValues = new TreeSet<>(currentValues); |
| | | addedValues.removeAll(previousValues); |
| | | isLastChoiceReset = false; |
| | | return MenuResult.success(false); |
| | | } |
| | |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.forgerock.opendj.maven.doc; |
| | | |
| | |
| | | import org.apache.maven.plugins.annotations.Mojo; |
| | | import org.apache.maven.plugins.annotations.Parameter; |
| | | import org.apache.maven.project.MavenProject; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | |
| | | /** Generates an XML file of log messages found in properties files. */ |
| | | @Mojo(name = "generate-xml-messages-doc", defaultPhase = PRE_SITE) |
| | |
| | | /** A list which contains all file names, the extension is not needed. */ |
| | | @Parameter(required = true) |
| | | private List<String> messageFileNames; |
| | | /** One-line descriptions for log reference categories. */ |
| | | private static final Map<String, LocalizableMessage> CATEGORY_DESCRIPTIONS = new HashMap<>(); |
| | | static { |
| | | CATEGORY_DESCRIPTIONS.put("ACCESS_CONTROL", CATEGORY_ACCESS_CONTROL.get()); |
| | | CATEGORY_DESCRIPTIONS.put("ADMIN", CATEGORY_ADMIN.get()); |
| | | CATEGORY_DESCRIPTIONS.put("ADMIN_TOOL", CATEGORY_ADMIN_TOOL.get()); |
| | | CATEGORY_DESCRIPTIONS.put("AUDIT", CATEGORY_AUDIT.get()); |
| | | CATEGORY_DESCRIPTIONS.put("BACKEND", CATEGORY_BACKEND.get()); |
| | | CATEGORY_DESCRIPTIONS.put("CONFIG", CATEGORY_CONFIG.get()); |
| | | CATEGORY_DESCRIPTIONS.put("CORE", CATEGORY_CORE.get()); |
| | | CATEGORY_DESCRIPTIONS.put("DSCONFIG", CATEGORY_DSCONFIG.get()); |
| | | CATEGORY_DESCRIPTIONS.put("EXTENSIONS", CATEGORY_EXTENSIONS.get()); |
| | | CATEGORY_DESCRIPTIONS.put("JVM", CATEGORY_JVM.get()); |
| | | CATEGORY_DESCRIPTIONS.put("LOG", CATEGORY_LOG.get()); |
| | | CATEGORY_DESCRIPTIONS.put("PLUGIN", CATEGORY_PLUGIN.get()); |
| | | CATEGORY_DESCRIPTIONS.put("PROTOCOL", CATEGORY_PROTOCOL.get()); |
| | | CATEGORY_DESCRIPTIONS.put("QUICKSETUP", CATEGORY_QUICKSETUP.get()); |
| | | CATEGORY_DESCRIPTIONS.put("RUNTIME_INFORMATION", CATEGORY_RUNTIME_INFORMATION.get()); |
| | | CATEGORY_DESCRIPTIONS.put("SCHEMA", CATEGORY_SCHEMA.get()); |
| | | CATEGORY_DESCRIPTIONS.put("SDK", CATEGORY_SDK.get()); |
| | | CATEGORY_DESCRIPTIONS.put("SYNC", CATEGORY_SYNC.get()); |
| | | CATEGORY_DESCRIPTIONS.put("TASK", CATEGORY_TASK.get()); |
| | | CATEGORY_DESCRIPTIONS.put("THIRD_PARTY", CATEGORY_THIRD_PARTY.get()); |
| | | CATEGORY_DESCRIPTIONS.put("TOOLS", CATEGORY_TOOLS.get()); |
| | | CATEGORY_DESCRIPTIONS.put("USER_DEFINED", CATEGORY_USER_DEFINED.get()); |
| | | CATEGORY_DESCRIPTIONS.put("UTIL", CATEGORY_UTIL.get()); |
| | | CATEGORY_DESCRIPTIONS.put("VERSION", CATEGORY_VERSION.get()); |
| | | } |
| | | |
| | | /** Message giving formatting rules for string keys. */ |
| | | public static final String KEY_FORM_MSG = ".\n\nOpenDJ message property keys must be of the form\n\n" |
| | |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.guitools.controlpanel.browser; |
| | | |
| | |
| | | private final String name; |
| | | private final List<AbstractNodeTask> waitingQueue = new ArrayList<>(); |
| | | private final Map<BasicNode, AbstractNodeTask> workingList = new HashMap<>(); |
| | | private final Map<BasicNode, BasicNode> cancelList = new HashMap<>(); |
| | | private final ThreadGroup threadGroup; |
| | | |
| | | |
| | |
| | | // Mark the on-going task as cancelled |
| | | AbstractNodeTask task = workingList.get(node); |
| | | if (task != null) { |
| | | cancelList.put(node, node); |
| | | task.cancel(); |
| | | } |
| | | notify(); |
| | |
| | | waitingQueue.clear(); |
| | | for (Map.Entry<BasicNode, AbstractNodeTask> entry : workingList.entrySet()) |
| | | { |
| | | BasicNode node = entry.getKey(); |
| | | AbstractNodeTask task = entry.getValue(); |
| | | cancelList.put(node, node); |
| | | task.cancel(); |
| | | entry.getValue().cancel(); |
| | | } |
| | | } |
| | | |
| | |
| | | throw new IllegalArgumentException("null argument"); |
| | | } |
| | | workingList.remove(task.getNode()); |
| | | cancelList.remove(task.getNode()); |
| | | notify(); |
| | | // System.out.println("Flushed " + task + " from " + _name); |
| | | } |
| | |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.guitools.controlpanel.ui; |
| | | |
| | |
| | | BackendDescriptor backend = getBackendByID(backendName.getText()); |
| | | |
| | | TreeSet<String> standardAttrNames = new TreeSet<>(); |
| | | TreeSet<String> configurationAttrNames = new TreeSet<>(); |
| | | TreeSet<String> customAttrNames = new TreeSet<>(); |
| | | for (AttributeType attr : schema.getAttributeTypes()) |
| | | { |
| | |
| | | { |
| | | standardAttrNames.add(name); |
| | | } |
| | | else if (Utilities.isConfiguration(attr)) |
| | | else if (!Utilities.isConfiguration(attr)) |
| | | { |
| | | configurationAttrNames.add(name); |
| | | } |
| | | else |
| | | { |
| | | // Configuration attributes are not offered for indexing. |
| | | customAttrNames.add(name); |
| | | } |
| | | } |
| | |
| | | try (final PhaseTwoProgressReporter progressReporter = new PhaseTwoProgressReporter()) |
| | | { |
| | | final List<Callable<Void>> tasks = new ArrayList<>(); |
| | | final Set<String> importedBaseDNs = new HashSet<>(); |
| | | for (Map.Entry<TreeName, Chunk> treeChunk : transaction.getChunks().entrySet()) |
| | | { |
| | | importedBaseDNs.add(treeChunk.getKey().getBaseDN()); |
| | | tasks.add(importStrategy.newPhaseTwoTask(treeChunk.getKey(), treeChunk.getValue(), progressReporter)); |
| | | } |
| | | invokeParallel(phase2ThreadNameTemplate, tasks); |
| | |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | { |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | /** |
| | | * The set of names for the account status notification types that may be |
| | | * logged by this notification handler. |
| | | */ |
| | | private static final HashSet<String> NOTIFICATION_TYPE_NAMES = new HashSet<>(); |
| | | static |
| | | { |
| | | for (AccountStatusNotificationType t : AccountStatusNotificationType.values()) |
| | | { |
| | | NOTIFICATION_TYPE_NAMES.add(t.getName()); |
| | | } |
| | | } |
| | | |
| | | /** The DN of the configuration entry for this notification handler. */ |
| | | private DN configEntryDN; |
| | | |