| | |
| | | import org.opends.server.types.operation.PostOperationAddOperation; |
| | | |
| | | import static org.opends.server.replication.protocol.OperationContext.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | /** |
| | | * This class is used to exchange Add operation between LDAP servers |
| | |
| | | builder.setInitialCapacity(objectClasses.size()); |
| | | for (String s : objectClasses.values()) |
| | | { |
| | | builder.add(AttributeValues.create(ByteString.valueOf(s), |
| | | ByteString.valueOf(toLowerCase(s)))); |
| | | builder.add(s); |
| | | } |
| | | Attribute attr = builder.toAttribute(); |
| | | |
| | |
| | | { |
| | | for (Attribute a : list) |
| | | { |
| | | if (!EntryHistorical.isHistoricalAttribute(a)) |
| | | if (!a.isVirtual()) |
| | | new LDAPAttribute(a).write(writer); |
| | | if (!EntryHistorical.isHistoricalAttribute(a) && !a.isVirtual()) |
| | | { |
| | | new LDAPAttribute(a).write(writer); |
| | | } |
| | | } |
| | | } |
| | | |