/** * * @param resultCode the ResultCodeEnum for this exception * @param message The exception message * @param cause The root cause for this exception */ public LdapUnwillingToPerformException( ResultCodeEnum resultCode, String message, Throwable cause ) { super( message, cause ); checkResultCode( resultCode ); this.resultCode = resultCode; }
/** * {@inheritDoc} */ @Override public void unregister( int ruleId ) throws LdapException { throw new LdapUnwillingToPerformException( ResultCodeEnum.NO_SUCH_OPERATION, I18n.err( I18n.ERR_13704_CANNOT_MODIFY_DITSR_REGISTRY_COPY ) ); }
private SchemaObject copy( SchemaObject schemaObject ) { SchemaObject copy = null; if ( !( schemaObject instanceof LoadableSchemaObject ) ) { copy = schemaObject.copy(); } else { // Check the schemaObject here. if ( ( ( LoadableSchemaObject ) schemaObject ).isValid() ) { copy = schemaObject; } else { // We have an invalid SchemaObject, no need to go any further LdapUnwillingToPerformException error = new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, I18n.err( I18n.ERR_16079_INVALID_SCHEMA_OBJECT_CANNOT_BE_LOADED, schemaObject.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error ); } } return copy; }
case UNAVAILABLE_CRITICAL_EXTENSION: LdapUnwillingToPerformException unwillingToPerformException = new LdapUnwillingToPerformException( ldapResult.getResultCode(), ldapResult.getDiagnosticMessage() ); unwillingToPerformException.setResolvedDn( ldapResult.getMatchedDn() );
LOG.error( lutpe.getMessage() ); continue;
/** * {@inheritDoc} */ @Override public void renameSchema( String originalSchemaName, String newSchemaName ) throws LdapException { throw new LdapUnwillingToPerformException( ResultCodeEnum.NO_SUCH_OPERATION, I18n.err( I18n.ERR_13704_CANNOT_MODIFY_DITSR_REGISTRY_COPY ) ); }
private SchemaObject copy( SchemaObject schemaObject ) { SchemaObject copy = null; if ( !( schemaObject instanceof LoadableSchemaObject ) ) { copy = schemaObject.copy(); } else { // Check the schemaObject here. if ( ( ( LoadableSchemaObject ) schemaObject ).isValid() ) { copy = schemaObject; } else { // We have an invalid SchemaObject, no need to go any further LdapUnwillingToPerformException error = new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, I18n.err( I18n.ERR_16079_INVALID_SCHEMA_OBJECT_CANNOT_BE_LOADED, schemaObject.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error ); } } return copy; }
case UNAVAILABLE_CRITICAL_EXTENSION: LdapUnwillingToPerformException unwillingToPerformException = new LdapUnwillingToPerformException( ldapResult.getResultCode(), ldapResult.getDiagnosticMessage() ); unwillingToPerformException.setResolvedDn( ldapResult.getMatchedDn() );
/** * {@inheritDoc} */ @Override public DitContentRule unregister( String numericOid ) throws LdapException { throw new LdapUnwillingToPerformException( ResultCodeEnum.NO_SUCH_OPERATION, I18n.err( I18n.ERR_13703_CANNOT_MODIFY_DITCR_REGISTRY_COPY ) ); }
private SchemaObject copy( SchemaObject schemaObject ) { SchemaObject copy = null; if ( !( schemaObject instanceof LoadableSchemaObject ) ) { copy = schemaObject.copy(); } else { // Check the schemaObject here. if ( ( ( LoadableSchemaObject ) schemaObject ).isValid() ) { copy = schemaObject; } else { // We have an invalid SchemaObject, no need to go any further LdapUnwillingToPerformException error = new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM, I18n.err( I18n.ERR_16079_INVALID_SCHEMA_OBJECT_CANNOT_BE_LOADED, schemaObject.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error ); } } return copy; }
case UNAVAILABLE_CRITICAL_EXTENSION: LdapUnwillingToPerformException unwillingToPerformException = new LdapUnwillingToPerformException( ldapResult.getResultCode(), ldapResult.getDiagnosticMessage() ); unwillingToPerformException.setResolvedDn( ldapResult.getMatchedDn() );
/** * Creates a new instance of LdapUnwillingToPerformException. * * @param resultCode the ResultCodeEnum for this exception * @param message The exception message */ public LdapUnwillingToPerformException( ResultCodeEnum resultCode, String message ) { super( message ); checkResultCode( resultCode ); this.resultCode = resultCode; }
/** * {@inheritDoc} */ @Override public AttributeType unregister( String numericOid ) throws LdapException { throw new LdapUnwillingToPerformException( ResultCodeEnum.NO_SUCH_OPERATION, I18n.err( I18n.ERR_13701_CANNOT_MODIFY_AT_REGISTRY_COPY ) ); }
/** * Creates a new instance of LdapUnwillingToPerformException. * * @param resultCode the ResultCodeEnum for this exception */ public LdapUnwillingToPerformException( ResultCodeEnum resultCode ) { super( null ); checkResultCode( resultCode ); this.resultCode = resultCode; }
/** * {@inheritDoc} */ @Override public void addMappingFor( AttributeType attributeType ) throws LdapException { throw new LdapUnwillingToPerformException( ResultCodeEnum.NO_SUCH_OPERATION, I18n.err( I18n.ERR_13701_CANNOT_MODIFY_AT_REGISTRY_COPY ) ); }
/** * * @param resultCode the ResultCodeEnum for this exception * @param message The exception message * @param cause The root cause for this exception */ public LdapUnwillingToPerformException( ResultCodeEnum resultCode, String message, Throwable cause ) { super( message, cause ); checkResultCode( resultCode ); this.resultCode = resultCode; }
/** * {@inheritDoc} */ @Override public void clear() throws LdapException { throw new LdapUnwillingToPerformException( ResultCodeEnum.NO_SUCH_OPERATION, I18n.err( I18n.ERR_13701_CANNOT_MODIFY_AT_REGISTRY_COPY ) ); }
/** * Creates a new instance of LdapUnwillingToPerformException. * * @param resultCode the ResultCodeEnum for this exception */ public LdapUnwillingToPerformException( ResultCodeEnum resultCode ) { super( null ); checkResultCode( resultCode ); this.resultCode = resultCode; }
/** * {@inheritDoc} */ @Override public void clear() throws LdapException { throw new LdapUnwillingToPerformException( ResultCodeEnum.NO_SUCH_OPERATION, I18n.err( I18n.ERR_13711_CANNOT_MODIFY_SC_REGISTRY_COPY ) ); }
/** * Creates a new instance of LdapUnwillingToPerformException. * * @param resultCode the ResultCodeEnum for this exception */ public LdapUnwillingToPerformException( ResultCodeEnum resultCode ) { super( null ); checkResultCode( resultCode ); this.resultCode = resultCode; }