| | |
| | | userAttrs.put(t, asList(t, v)); |
| | | |
| | | t = DirectoryServer.getAttributeTypeOrDefault(ATTR_BACKUP_BACKEND_DN); |
| | | userAttrs.put(t, asList(t, ByteString.valueOf(backupDirectory.getConfigEntryDN().toString()))); |
| | | userAttrs.put(t, asList(t, ByteString.valueOfUtf8(backupDirectory.getConfigEntryDN().toString()))); |
| | | |
| | | Entry e = new Entry(entryDN, ocMap, userAttrs, opAttrs); |
| | | e.processVirtualAttributes(); |
| | |
| | | if (backupDate != null) { |
| | | t = DirectoryServer.getAttributeTypeOrDefault(ATTR_BACKUP_DATE); |
| | | userAttrs.put(t, |
| | | asList(t, ByteString.valueOf(GeneralizedTimeSyntax.format(backupDate)))); |
| | | asList(t, ByteString.valueOfUtf8(GeneralizedTimeSyntax.format(backupDate)))); |
| | | } |
| | | |
| | | putBoolean(userAttrs, ATTR_BACKUP_COMPRESSED, backupInfo.isCompressed()); |
| | |
| | | if (properties != null && !properties.isEmpty()) { |
| | | for (Map.Entry<String, String> e : properties.entrySet()) { |
| | | t = DirectoryServer.getAttributeTypeOrDefault(toLowerCase(e.getKey())); |
| | | userAttrs.put(t, asList(t, ByteString.valueOf(e.getValue()))); |
| | | userAttrs.put(t, asList(t, ByteString.valueOfUtf8(e.getValue()))); |
| | | } |
| | | } |
| | | |
| | |
| | | public static DN makeChildDN(DN parentDN, AttributeType rdnAttrType, |
| | | String rdnStringValue) |
| | | { |
| | | ByteString attrValue = ByteString.valueOf(rdnStringValue); |
| | | ByteString attrValue = ByteString.valueOfUtf8(rdnStringValue); |
| | | return parentDN.child(RDN.create(rdnAttrType, attrValue)); |
| | | } |
| | | } |