| | |
| | | |
| | | |
| | | /** |
| | | * The result that should be returned if an imported entry fails the 7-bit |
| | | * clean check. |
| | | */ |
| | | private static final LDIFPluginResult LDIF_FAILURE_RESULT = |
| | | new LDIFPluginResult(false, false); |
| | | |
| | | |
| | | |
| | | /** |
| | | * The result that should be returned if a pre-parse operation fails the 7-bit |
| | | * clean check. |
| | | */ |
| | |
| | | { |
| | | if (! is7BitClean(v.getValue())) |
| | | { |
| | | return LDIF_FAILURE_RESULT; |
| | | Message rejectMessage = |
| | | ERR_PLUGIN_7BIT_IMPORT_ATTR_NOT_CLEAN.get( |
| | | a.getNameWithOptions()); |
| | | return new LDIFPluginResult(false, false, rejectMessage); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | // If we've gotten here, then everything is acceptable. |
| | | System.err.println(" The entry is acceptable"); |
| | | return LDIFPluginResult.SUCCESS; |
| | | } |
| | | |