| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | * Portions Copyright 2011-2012 ForgeRock AS |
| | | */ |
| | | package org.opends.server.backends; |
| | | |
| | |
| | | |
| | | configEntryDN = configEntry.getDN(); |
| | | |
| | | DN[] baseDNs = new DN[cfg.getBaseDN().size()]; |
| | | cfg.getBaseDN().toArray(baseDNs); |
| | | this.baseDNs = baseDNs; |
| | | DN[] newBaseDNs = new DN[cfg.getBaseDN().size()]; |
| | | cfg.getBaseDN().toArray(newBaseDNs); |
| | | this.baseDNs = newBaseDNs; |
| | | |
| | | creatorsName = AttributeValues.create( |
| | | creatorsNameType, baseDNs[0].toString()); |
| | | modifiersName = |
| | | AttributeValues.create( |
| | | modifiersNameType, baseDNs[0].toString()); |
| | | creatorsNameType, newBaseDNs[0].toString()); |
| | | modifiersName = AttributeValues.create( |
| | | modifiersNameType, newBaseDNs[0].toString()); |
| | | |
| | | long createTime = DirectoryServer.getSchema().getOldestModificationTime(); |
| | | createTimestamp = |
| | | GeneralizedTimeSyntax.createGeneralizedTimeValue(createTime); |
| | | |
| | | long modifyTime = DirectoryServer.getSchema().getYoungestModificationTime(); |
| | | long newModifyTime = |
| | | DirectoryServer.getSchema().getYoungestModificationTime(); |
| | | modifyTimestamp = |
| | | GeneralizedTimeSyntax.createGeneralizedTimeValue(modifyTime); |
| | | GeneralizedTimeSyntax.createGeneralizedTimeValue(newModifyTime); |
| | | |
| | | |
| | | // Get the set of user-defined attributes for the configuration entry. Any |
| | |
| | | CryptoManager cryptoManager = DirectoryServer.getCryptoManager(); |
| | | Mac mac = null; |
| | | MessageDigest digest = null; |
| | | String digestAlgorithm = null; |
| | | String macKeyID = null; |
| | | |
| | | if (hash) |
| | |
| | | } |
| | | else |
| | | { |
| | | digestAlgorithm = cryptoManager.getPreferredMessageDigestAlgorithm(); |
| | | String digestAlgorithm = |
| | | cryptoManager.getPreferredMessageDigestAlgorithm(); |
| | | backupProperties.put(BACKUP_PROPERTY_DIGEST_ALGORITHM, digestAlgorithm); |
| | | |
| | | try |
| | |
| | | // then get a list of all the files in that directory. |
| | | String schemaInstanceDirPath = |
| | | SchemaConfigManager.getSchemaDirectoryPath(true); |
| | | File schemaDir = null; |
| | | File schemaDir; |
| | | File[] schemaFiles = null; |
| | | |
| | | try |
| | |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | |
| | | try |
| | | try |
| | | { |
| | | inputStream.close(); |
| | | if (inputStream != null) |
| | | { |
| | | inputStream.close(); |
| | | } |
| | | } catch (Exception e2) |
| | | { |
| | | } |
| | | |
| | | try |
| | | try |
| | | { |
| | | zipStream.close(); |
| | | } catch (Exception e2) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isConfigurationChangeAcceptable( |
| | | SchemaBackendCfg configEntry, |
| | | List<Message> unacceptableReasons) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public ConfigChangeResult applyConfigurationChange( |
| | | SchemaBackendCfg backendCfg) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public DN getComponentEntryDN() |
| | | { |
| | | return configEntryDN; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public String getClassName() |
| | | { |
| | | return CLASS_NAME; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public LinkedHashMap<String,String> getAlerts() |
| | | { |
| | | LinkedHashMap<String,String> alerts = new LinkedHashMap<String,String>(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void preloadEntryCache() throws UnsupportedOperationException { |
| | | throw new UnsupportedOperationException("Operation not supported."); |
| | | } |