/** * Creates an AddRequest implementation to create a new entry. */ public AddRequestImpl() { super( -1, MessageTypeEnum.ADD_REQUEST ); entry = new DefaultEntry(); }
/** * Creates an AddRequest implementation to create a new entry. */ public AddRequestImpl() { super( -1, MessageTypeEnum.ADD_REQUEST ); entry = new DefaultEntry(); }
/** * {@inheritDoc} */ @Override public Entry newEntry( Dn dn ) { return new DefaultEntry( dn ); }
public Entry newEntry( Dn dn ) { return new DefaultEntry( schemaManager, dn ); }
/** * Creates an AddRequest implementation to create a new entry. */ public AddRequestImpl() { super( -1, MessageTypeEnum.ADD_REQUEST ); entry = new DefaultEntry(); }
/** * {@inheritDoc} */ @Override public Entry newEntry( Dn dn ) { return new DefaultEntry( dn ); }
/** * {@inheritDoc} */ @Override public Entry newEntry( Dn dn ) { return new DefaultEntry( dn ); }
/** * Creates a new instance of Partition. */ public Partition() { indexedAttributes = new ArrayList<IndexedAttribute>(); contextEntry = new DefaultEntry(); }
/** * Creates a new instance of Partition. */ public Partition() { indexedAttributes = new ArrayList<IndexedAttribute>(); contextEntry = new DefaultEntry(); }
/** * Creates a new instance of Partition. * * @param id * the id of the partition */ public Partition( String id ) { indexedAttributes = new ArrayList<IndexedAttribute>(); contextEntry = new DefaultEntry(); this.id = id; }
/** * Creates a new instance of Partition. */ public Partition() { indexedAttributes = new ArrayList<IndexedAttribute>(); contextEntry = new DefaultEntry(); }
/** * Creates a new instance of Partition. * * @param id * the id of the partition */ public Partition( String id ) { indexedAttributes = new ArrayList<IndexedAttribute>(); contextEntry = new DefaultEntry(); this.id = id; }
/** * Creates a new instance of Partition. * * @param id * the id of the partition */ public Partition( String id ) { indexedAttributes = new ArrayList<IndexedAttribute>(); contextEntry = new DefaultEntry(); this.id = id; }
/** * Creates a new instance of Partition. * * @param id * the id of the partition */ public Partition( String id ) { indexedAttributes = new ArrayList<IndexedAttribute>(); contextEntry = new DefaultEntry(); this.id = id; }
/** * Creates a new instance of Partition. */ public Partition() { indexedAttributes = new ArrayList<IndexedAttribute>(); contextEntry = new DefaultEntry(); }
/** * Creates a new LdifEntry object. */ public LdifEntry() { // Default LDIF content changeType = ChangeType.None; modificationList = new LinkedList<>(); modifications = new HashMap<>(); entry = new DefaultEntry( ( Dn ) null ); entryDn = null; controls = null; }
/** * Creates a new LdifEntry object. */ public LdifEntry() { // Default LDIF content changeType = ChangeType.None; modificationList = new LinkedList<>(); modifications = new HashMap<>(); entry = new DefaultEntry( ( Dn ) null ); entryDn = null; controls = null; }
public void add(final LdapConnection connection, final String dn, final Object... elements) throws LdapException { connection.bind(); connection.add(new DefaultEntry(dn, elements)); }
public Entry toClientEntry() throws LdapException { // Copy the Dn Entry clientEntry = new DefaultEntry( clonedEntry.getDn() ); // Convert each attribute for ( Attribute clonedEntry : this ) { Attribute clientAttribute = clonedEntry.clone(); clientEntry.add( clientAttribute ); } return clientEntry; }
protected List<LdifEntry> loadLdif(LdifReader ldifReader) throws Exception { List<LdifEntry> entries = new ArrayList<LdifEntry>(); for (LdifEntry ldifEntry : ldifReader) { Dn dn = ldifEntry.getDn(); if (ldifEntry.isEntry()) { org.apache.directory.api.ldap.model.entry.Entry items = ldifEntry.getEntry(); rootDSE.add(new DefaultEntry(directoryService.getSchemaManager(), items)); LOG.info("Added entry {}", dn); entries.add(ldifEntry); } } return entries; }