| | |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.replication.common.ChangeNumber; |
| | | import org.opends.server.replication.protocol.OperationContext; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeBuilder; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.opends.server.types.Attributes; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.Modification; |
| | | import org.opends.server.types.ModificationType; |
| | | import org.opends.server.types.*; |
| | | import org.opends.server.types.operation.PreOperationAddOperation; |
| | | import org.opends.server.types.operation.PreOperationModifyDNOperation; |
| | | import org.opends.server.types.operation.PreOperationModifyOperation; |
| | |
| | | DirectoryServer.getSchema().getAttributeType(HISTORICALATTRIBUTENAME); |
| | | |
| | | String strValue = "dn:" + cn.toString() +":add"; |
| | | AttributeValue val = new AttributeValue(historicalAttrType, strValue); |
| | | AttributeValue val = AttributeValues.create(historicalAttrType, strValue); |
| | | return val; |
| | | } |
| | | |
| | |
| | | DirectoryServer.getSchema().getAttributeType(HISTORICALATTRIBUTENAME); |
| | | |
| | | String strValue = "dn:" + cn.toString() +":moddn"; |
| | | AttributeValue val = new AttributeValue(historicalAttrType, strValue); |
| | | AttributeValue val = AttributeValues.create(historicalAttrType, strValue); |
| | | return val; |
| | | } |
| | | |
| | |
| | | strValue = type.getNormalizedPrimaryName() + optionsString + ":" + |
| | | valInfo.getValueDeleteTime().toString() + |
| | | ":del:" + valInfo.getValue().toString(); |
| | | AttributeValue val = new AttributeValue(historicalAttrType, |
| | | AttributeValue val = AttributeValues.create(historicalAttrType, |
| | | strValue); |
| | | builder.add(val); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | AttributeValue val = new AttributeValue(historicalAttrType, |
| | | AttributeValue val = AttributeValues.create(historicalAttrType, |
| | | strValue); |
| | | builder.add(val); |
| | | } |
| | |
| | | String strValue = type.getNormalizedPrimaryName() |
| | | + optionsString + ":" + deleteTime.toString() |
| | | + ":attrDel"; |
| | | AttributeValue val = new AttributeValue(historicalAttrType, strValue); |
| | | AttributeValue val = |
| | | AttributeValues.create(historicalAttrType, strValue); |
| | | builder.add(val); |
| | | } |
| | | } |
| | |
| | | { |
| | | for (AttributeValue val : attr) |
| | | { |
| | | HistVal histVal = new HistVal(val.getStringValue()); |
| | | HistVal histVal = new HistVal(val.getValue().toString()); |
| | | AttributeType attrType = histVal.getAttrType(); |
| | | Set<String> options = histVal.getOptions(); |
| | | ChangeNumber cn = histVal.getCn(); |
| | |
| | | { |
| | | for (AttributeValue val : attr) |
| | | { |
| | | HistVal histVal = new HistVal(val.getStringValue()); |
| | | HistVal histVal = new HistVal(val.getValue().toString()); |
| | | if (histVal.isADDOperation()) |
| | | { |
| | | // Found some historical information indicating that this |
| | |
| | | if (!uuid.isEmpty()) |
| | | { |
| | | AttributeValue uuidVal = uuid.iterator().next(); |
| | | uuidString = uuidVal.getStringValue(); |
| | | uuidString = uuidVal.getValue().toString(); |
| | | } |
| | | } |
| | | return uuidString; |
| | |
| | | if (!uuid.isEmpty()) |
| | | { |
| | | AttributeValue uuidVal = uuid.iterator().next(); |
| | | uuidString = uuidVal.getStringValue(); |
| | | uuidString = uuidVal.getValue().toString(); |
| | | } |
| | | } |
| | | return uuidString; |