public Name parse( String n ) throws NamingException { try { return JndiUtils.toName( new Dn( name.toString() ) ); } catch ( LdapInvalidDnException lide ) { throw new InvalidNameException( lide.getMessage() ); } } };
LOG.error( e.getMessage(), e ); throw new LdapException( e.getMessage(), e );
public Name parse( String name ) throws NamingException { try { return JndiUtils.toName( new Dn( name ) ); } catch ( LdapInvalidDnException lide ) { throw new InvalidNameException( lide.getMessage() ); } } };
LOG.error( e.getMessage(), e ); throw new LdapException( e.getMessage(), e );
/** * Creates a new instance of MoveAndRenameOperationContext. * * @param session The session to use * @param oldDn the original source entry Dn to be moved and renamed * @param newSuperiorDn the new entry superior of the target after the move * @param newRdn the new rdn to use for the target once renamed * @param delOldRdn true if the old rdn value is deleted, false otherwise */ public MoveAndRenameOperationContext( CoreSession session, Dn oldDn, Dn newSuperiorDn, Rdn newRdn, boolean delOldRdn ) { super( session, oldDn, newRdn, delOldRdn ); this.newSuperiorDn = newSuperiorDn; if ( session != null ) { setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.MOVE_AND_RENAME ) ); } try { newDn = newSuperiorDn.add( newRdn ); } catch ( LdapInvalidDnException lide ) { throw new IllegalArgumentException( lide.getMessage(), lide ); } }
throw new InvalidNameException( lide.getMessage() );
LOG.error( e.getMessage(), e ); throw new LdapException( e.getMessage(), e );
LOG.error( e.getMessage(), e ); throw new LdapException( e.getMessage(), e );
LOG.error( e.getMessage(), e ); throw new LdapException( e.getMessage(), e );
/** * Creates a new instance of MoveOperationContext. * * @param session The session to use * @param oldDn the original source entry Dn to be moved and renamed * @param newSuperior the new entry superior of the target after the move */ public MoveOperationContext( CoreSession session, Dn oldDn, Dn newSuperior ) { super( session, oldDn ); this.newSuperior = newSuperior; oldSuperior = oldDn.getParent(); rdn = oldDn.getRdn().clone(); if ( session != null ) { setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.MOVE ) ); } try { newDn = newSuperior.add( rdn ); } catch ( LdapInvalidDnException lide ) { throw new IllegalArgumentException( lide.getMessage(), lide ); } }
String msg = I18n.err( I18n.ERR_05157_INVALID_DN, Strings.dumpBytes( dnBytes ), ine.getMessage() ); LOG.error( I18n.err( I18n.ERR_05114_ERROR_MESSAGE, msg, ine.getMessage() ) ); throw new DecoderException( msg, ine );
throw new XmlPullParserException( lide.getMessage(), xpp, lide );
throw new XmlPullParserException( lide.getMessage(), xpp, lide );
throw new XmlPullParserException( lide.getMessage(), xpp, lide );
LOG.error( I18n.err( I18n.ERR_05114_ERROR_MESSAGE, msg, ine.getMessage() ) );
throw new XmlPullParserException( lide.getMessage(), xpp, lide );
LOG.error( I18n.err( I18n.ERR_05114_ERROR_MESSAGE, msg, ine.getMessage() ) );
public static MavibotPartition createMavibotPartition( DirectoryService directoryService, MavibotPartitionBean mvbtPartitionBean ) throws ConfigurationException { if ( ( mvbtPartitionBean == null ) || mvbtPartitionBean.isDisabled() ) { return null; } MavibotPartition mvbtPartition = new MavibotPartition( directoryService.getSchemaManager(), directoryService.getDnFactory() ); mvbtPartition.setId( mvbtPartitionBean.getPartitionId() ); //mvbtPartition.setOptimizerEnabled( mvbtPartitionBean.isJdbmPartitionOptimizerEnabled() ); File partitionPath = new File( directoryService.getInstanceLayout().getPartitionsDirectory(), mvbtPartitionBean.getPartitionId() ); mvbtPartition.setPartitionPath( partitionPath.toURI() ); try { mvbtPartition.setSuffixDn( mvbtPartitionBean.getPartitionSuffix() ); } catch ( LdapInvalidDnException lide ) { String message = "Cannot set the Dn " + mvbtPartitionBean.getPartitionSuffix() + ", " + lide.getMessage(); LOG.error( message ); throw new ConfigurationException( message ); } mvbtPartition.setSyncOnWrite( mvbtPartitionBean.isPartitionSyncOnWrite() ); mvbtPartition.setIndexedAttributes( createMavibotIndexes( mvbtPartition, mvbtPartitionBean.getIndexes(), directoryService ) ); setContextEntry( mvbtPartitionBean, mvbtPartition ); return mvbtPartition; }
LOG.error( I18n.err( I18n.ERR_05114_ERROR_MESSAGE, msg, ine.getMessage() ) );
String message = "Cannot set the Dn " + jdbmPartitionBean.getPartitionSuffix() + ", " + lide.getMessage(); LOG.error( message ); throw new ConfigurationException( message );