| | |
| | | * |
| | | * @param serverProperties |
| | | * the new properties of the server. |
| | | * @param newServerId |
| | | * The new server Identifier, or null. |
| | | * @throws ADSContextException |
| | | * if the server could not be registered. |
| | | */ |
| | |
| | | /** |
| | | * Creates an entry with the provided add request. |
| | | * |
| | | * @param addRequest |
| | | * @param request |
| | | * the add request. |
| | | * @throws ADSContextException |
| | | * if the entry could not be created. |
| | |
| | | /** |
| | | * Method used to compare attributes defined in the schema. |
| | | * Returns whether the two schema attributes are equal. |
| | | * @param schema1 the first schema attribute. |
| | | * @param schema2 the second schema attribute. |
| | | * @param attr1 the first attribute type. |
| | | * @param attr2 the second attribute type. |
| | | * @return {@code true} if the two schema attributes are equal, {@code false} otherwise. |
| | | */ |
| | | private static boolean areAttributesEqual(AttributeType attr1, AttributeType attr2) |
| | |
| | | /** |
| | | * Method used to compare objectclasses defined in the schema. |
| | | * Returns whether the two schema objectclasses are equal. |
| | | * @param schema1 the first schema objectclass. |
| | | * @param schema2 the second schema objectclass. |
| | | * @param oc1 the first objectclass. |
| | | * @param oc2 the second objectclass. |
| | | * @return {@code true} if the two schema objectclasses are equal, {@code false} otherwise. |
| | | */ |
| | | private static boolean areObjectClassesEqual(ObjectClass oc1, ObjectClass oc2) |
| | |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.guitools.controlpanel.task; |
| | | |
| | |
| | | * |
| | | * @param schemaFile |
| | | * the schema file. |
| | | * @param isSchemaFileDefined |
| | | * whether the schema is defined or not. |
| | | * @param attributes |
| | | * the attributes to add. |
| | | * @param objectClasses |
| | | * the object classes to add. |
| | | * @param schemaElements |
| | | * the schema elements to add. |
| | | * @throws OpenDsException |
| | | * if an error occurs updating the schema file. |
| | | */ |
| | |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.guitools.controlpanel.ui; |
| | | |
| | |
| | | /** |
| | | * Returns <CODE>true</CODE> if the provided DN corresponds to a read-only |
| | | * entry and <CODE>false</CODE> otherwise. |
| | | * @param sDn the DN of the entry. |
| | | * @param dn the DN of the entry. |
| | | * @return <CODE>true</CODE> if the provided DN corresponds to a read-only |
| | | * entry and <CODE>false</CODE> otherwise. |
| | | */ |
| | |
| | | * |
| | | * Copyright 2009-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.guitools.controlpanel.ui; |
| | | |
| | |
| | | |
| | | /** |
| | | * Creates the components and lays them in the panel. |
| | | * @param gbc the grid bag constraints to be used. |
| | | */ |
| | | private void createLayout() |
| | | { |
| | |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.quicksetup; |
| | | |
| | |
| | | * @param enableSSL whether to enable SSL or not. |
| | | * @param enableStartTLS whether to enable StartTLS or not. |
| | | * @param sslPort the LDAPS port number. |
| | | * @param aliasToUse the name of the alias to be used. |
| | | * @param aliasesToUse the names of the aliases to be used. |
| | | */ |
| | | private static void updateCertificateOptions(SecurityOptions ops, |
| | | boolean enableSSL, boolean enableStartTLS, int sslPort, Collection<String> aliasesToUse) |
| | |
| | | * connect to the server after starting to verify that it is listening. |
| | | * @param suppressOutput indicating that ouput to standard output streams |
| | | * from the server should be suppressed. |
| | | * @param trustManager can be null |
| | | * @throws org.opends.quicksetup.ApplicationException if something goes wrong. |
| | | */ |
| | | private void startServer(boolean verifyCanConnect, boolean suppressOutput) |
| | |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.admin; |
| | | |
| | |
| | | /** |
| | | * Gets an attribute value from an entry. |
| | | * |
| | | * @param DN |
| | | * @param baseDN |
| | | * The DN of the entry. |
| | | * @param attrName |
| | | * The attribute name. |
| | |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.authorization.dseecompat; |
| | | |
| | |
| | | * Determine whether a value pattern matches a given attribute-value pair. |
| | | * @param pattern The value pattern where each element of the list is a |
| | | * substring of the pattern appearing between wildcards. |
| | | * @param type The attribute type of the attribute-value pair. |
| | | * @param value The value of the attribute-value pair. |
| | | * @param ava The attribute-value pair. |
| | | * @return true if the value pattern matches the attribute-value pair. |
| | | */ |
| | | private boolean matchValuePattern(List<ByteString> pattern, AVA ava) |
| | |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.backends; |
| | | |
| | |
| | | * the given schema, replacing an existing type if necessary, and ensuring all |
| | | * other metadata is properly updated. |
| | | * |
| | | * @param attributeType The attribute type to add or replace in the |
| | | * server schema. |
| | | * @param definition The definition of the attribute type to add or |
| | | * replace in the server schema. |
| | | * @param schemaBuilder The schema builder to which the attribute type should |
| | | * be added. |
| | | * @param modifiedSchemaFiles The names of the schema files containing |
| | |
| | | * |
| | | * @param definition The definition of objectclass to remove from the server |
| | | * schema. |
| | | * @param schema The schema from which the objectclass should |
| | | * be removed. |
| | | * @param newSchemaBuilder The schema builder from which the objectclass |
| | | * should be removed. |
| | | * @param modifications The full set of modifications to be processed |
| | | * against the server schema. |
| | | * @param currentPosition The position of the modification currently |
| | |
| | | * the given schema, replacing an existing name form if necessary, and |
| | | * ensuring all other metadata is properly updated. |
| | | * |
| | | * @param nameForm The name form to add or replace in the server |
| | | * schema. |
| | | * @param definition The definition of the name form to add or replace |
| | | * in the server schema. |
| | | * @param schemaBuilder The schema builder to which the name form should be |
| | | * added. |
| | | * @param modifiedSchemaFiles The names of the schema files containing |
| | |
| | | * the given schema, replacing an existing rule if necessary, and ensuring |
| | | * all other metadata is properly updated. |
| | | * |
| | | * @param ditContentRule The DIT content rule to add or replace in the |
| | | * server schema. |
| | | * @param definition The definition of the DIT content rule to add or |
| | | * replace in the server schema. |
| | | * @param schemaBuilder The schema to which the DIT content rule |
| | | * should be added. |
| | | * @param modifiedSchemaFiles The names of the schema files containing |
| | |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.backends.pluggable; |
| | | |
| | |
| | | /** |
| | | * Verify the backend. |
| | | * |
| | | * @param rootContainer The root container that holds the entries to verify. |
| | | * @return The error count. |
| | | * @throws StorageRuntimeException If an error occurs in the storage. |
| | | * @throws DirectoryException If an error occurs while verifying the backend. |
| | |
| | | /** |
| | | * Construct a printable string from a raw key value. |
| | | * |
| | | * @param indexName |
| | | * The name of the index tree containing the key value. |
| | | * @param index |
| | | * The index tree containing the key value. |
| | | * @param key |
| | | * The bytes of the key. |
| | | * @return A string that may be logged or printed. |
| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2013-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | * Execute the provided operation and decrement the number of currently |
| | | * running operations after it has finished executing. |
| | | * |
| | | * @param the |
| | | * operation to execute |
| | | * @param operation |
| | | * the operation to execute |
| | | */ |
| | | private void runWrapped(final Operation operation) |
| | | { |
| | |
| | | /** |
| | | * Get the broken-down components of the given password value. |
| | | * |
| | | * @param usesAuthPasswordSyntax true if the value is an authPassword. |
| | | * @param v The encoded password value to break down. |
| | | * |
| | | * @return An array of components. |
| | |
| | | * to make the determination. |
| | | * |
| | | * @param attributeType The attribute type used to hold the entryDN value. |
| | | * @param searchFilter The search filter for which to make the |
| | | * @param filter The search filter for which to make the |
| | | * determination. |
| | | * @param depth The current recursion depth for this processing. |
| | | * |
| | |
| | | * entries under it contain references to the deleted entry DN that need |
| | | * to be removed. |
| | | * |
| | | * @param entryDN The DN of the deleted entry. |
| | | * @param deleteDNset The DNs of the deleted entries. |
| | | * |
| | | * @param log Set to <code>true</code> if the DN should be written to a log |
| | | * file so that the background thread can process the change at |
| | |
| | | * Write the specified entry DNs to the log file. |
| | | * These entry DNs are related to a delete operation. |
| | | * |
| | | * @param deletedEntryDN The DN of the deleted entry. |
| | | * @param deleteDNset The DNs of the deleted entries. |
| | | */ |
| | | private void writeLog(Set<DN> deleteDNset) { |
| | | synchronized(logFile) |
| | |
| | | * |
| | | * Copyright 2011-2012 profiq s.r.o. |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | /** |
| | | * Set the parity bit for an integer. |
| | | * |
| | | * @param integer |
| | | * to add the parity bit for. |
| | | * @param parity |
| | | * the integer to add the parity bit for. |
| | | * @return integer with the parity bit set. |
| | | */ |
| | | private static int setOddParity(final int parity) |
| | |
| | | * Adds the definition for the specified attribute type to the provided set of attribute values, |
| | | * recursively adding superior types as appropriate. |
| | | * |
| | | * @param schema |
| | | * The schema containing the attribute type. |
| | | * @param schemaFile |
| | | * The schema file with which the attribute type is associated. |
| | | * @param attributeType |
| | |
| | | * Adds the definition for the specified DIT structure rule to the provided set of attribute |
| | | * values, recursively adding superior rules as appropriate. |
| | | * |
| | | * @param schema |
| | | * The schema containing the DIT structure rule. |
| | | * @param schemaFile |
| | | * The schema file with which the DIT structure rule is associated. |
| | | * @param ditStructureRule |
| | |
| | | * |
| | | * @param searchOp |
| | | * the search operation to execute |
| | | * @param baseDN |
| | | * base DN to search |
| | | * @throws CanceledOperationException |
| | | * if this operation should be canceled. |
| | | */ |