| | |
| | | package org.opends.server.util; |
| | | |
| | | import static org.opends.messages.SchemaMessages.*; |
| | | |
| | | import static org.opends.server.util.ServerConstants.SCHEMA_PROPERTY_FILENAME; |
| | | import static org.opends.server.schema.SchemaConstants.SYNTAX_AUTH_PASSWORD_OID; |
| | | import static org.opends.server.schema.SchemaConstants.SYNTAX_USER_PASSWORD_OID; |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.LocalizableMessageDescriptor.Arg1; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.schema.AttributeType; |
| | | import org.forgerock.opendj.ldap.schema.ObjectClass; |
| | |
| | | } |
| | | |
| | | /** |
| | | * Retrieves an attribute value containing a representation of the provided |
| | | * boolean value. |
| | | * |
| | | * @param b The boolean value for which to retrieve the attribute value. |
| | | * |
| | | * @return The attribute value created from the provided boolean value. |
| | | */ |
| | | public static ByteString createBooleanValue(boolean b) |
| | | { |
| | | return b ? ServerConstants.TRUE_VALUE : ServerConstants.FALSE_VALUE; |
| | | } |
| | | |
| | | /** |
| | | * Retrieves the definition string used to create the provided schema element and including the |
| | | * X-SCHEMA-FILE extension. |
| | | * |