Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); break; Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); break;
Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); break; Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); break; Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); break;
/** * Check the constraints for the Usage field. */ private void checkUsage( List<Throwable> errors, Registries registries ) { // Check that the AT usage is the same that its superior if ( ( superior != null ) && ( usage != superior.getUsage() ) ) { // This is an error String msg = I18n.err( I18n.ERR_04314, getName() ); Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg ); return; } // Now, check that the AttributeType's USAGE does not conflict if ( !isUserModifiable() && ( usage == UsageEnum.USER_APPLICATIONS ) ) { // Cannot have a not user modifiable AT which is not an operational AT String msg = I18n.err( I18n.ERR_04315, getName() ); Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg ); } }
/** * Build the SchemaObject references */ public void buildReference( List<Throwable> errors, SchemaObject schemaObject ) { try { schemaObject.addToRegistries( errors, this ); } catch ( LdapException ne ) { // Not allowed. String msg = I18n.err( I18n.ERR_04292, schemaObject.getName(), ne.getLocalizedMessage() ); Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg ); } }
Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); return; Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); return; Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); return; Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); return;
/** * Check the constraints for the Collective field. */ private void checkCollective( List<Throwable> errors, Registries registries ) { if ( superior != null ) { if ( superior.isCollective() ) { // An AttributeType will be collective if its superior is collective this.isCollective = true; } } if ( isCollective() && ( usage != UsageEnum.USER_APPLICATIONS ) ) { // An AttributeType which is collective must be a USER attributeType String msg = I18n.err( I18n.ERR_04316, getName() ); Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg ); } }
private void resolve( ObjectClass objectClass, List<Throwable> errors ) { // This set is used to avoid having more than one error // for an ObjectClass. It's mandatory when processing // the Superiors, as they may be broken and referenced more than once. Set<String> processed = new HashSet<String>(); // Store the ObjectClass itself in the processed, to avoid cycle processed.add( objectClass.getOid() ); // Call the recursive method, as we may have superiors to deal with resolveRecursive( objectClass, processed, errors ); // Check that the MAY and MUST AT are consistent (no AT in MAY and in MUST // in one of its superior List<AttributeType> musts = getMustRecursive( new ArrayList<AttributeType>(), new HashSet<ObjectClass>(), objectClass ); if ( musts != null ) { for ( AttributeType may : objectClass.getMayAttributeTypes() ) { if ( musts.contains( may ) ) { // This is not allowed. Throwable error = new LdapProtocolErrorException( I18n.err( I18n.ERR_04299, objectClass.getOid() ) ); errors.add( error ); return; } } } }
Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg ); Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg );
Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg ); Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg );
Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg ); Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg );
Throwable error = new LdapProtocolErrorException( I18n.err( I18n.ERR_04300, objectClass.getOid(), superior) ); errors.add( error ); return;
Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg );
Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); LOG.info( msg );
Throwable error = new LdapProtocolErrorException( I18n.err( I18n.ERR_11011, schemaObject.getOid() ) ); errors.add( error ); Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); return false; Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); return false;
Throwable error = new LdapProtocolErrorException( I18n.err( I18n.ERR_04294, matchingRule.getOid() ) ); errors.add( error );
Throwable error = new LdapProtocolErrorException( I18n.err( I18n.ERR_11008, schemaObject.getOid() ) ); errors.add( error ); Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); return false;
Throwable error = new LdapProtocolErrorException( msg ); errors.add( error ); return false;
throw new LdapProtocolErrorException( I18n.err( I18n.ERR_04317 ) );