/** * Get the names of the indexes defined in this configuration. * * @return the index names; never null but possibly empty * @see #getIndex(String) * @see #getRawIndex(String) */ public Set<String> getIndexNames() { if (indexes == null) return Collections.emptySet(); return indexes.keySet(); }
/** * Get the names of the indexes defined in this configuration. * * @return the index names; never null but possibly empty * @see #getIndex(String) * @see #getRawIndex(String) */ public Set<String> getIndexNames() { if (indexes == null) return Collections.emptySet(); return indexes.keySet(); }
@SuppressWarnings( "synthetic-access" ) private void parseInitialContent( Document initialContent ) { for (String workspaceName : initialContent.keySet()) { Object value = initialContent.get(workspaceName); if (value == null) value = ""; if (!(value instanceof String)) { LOGGER.warn(JcrI18n.invalidInitialContentValue, value.toString(), workspaceName); } else { String initialContentFilePath = ((String)value).trim(); if (FieldName.DEFAULT_INITIAL_CONTENT.equals(workspaceName)) { defaultInitialContentFile = initialContentFilePath; } else { workspacesInitialContentFiles.put(workspaceName, initialContentFilePath); } } } }
@SuppressWarnings( "synthetic-access" ) private void parseInitialContent( Document initialContent ) { for (String workspaceName : initialContent.keySet()) { Object value = initialContent.get(workspaceName); if (value == null) value = ""; if (!(value instanceof String)) { LOGGER.warn(JcrI18n.invalidInitialContentValue, value.toString(), workspaceName); } else { String initialContentFilePath = ((String)value).trim(); if (FieldName.DEFAULT_INITIAL_CONTENT.equals(workspaceName)) { defaultInitialContentFile = initialContentFilePath; } else { workspacesInitialContentFiles.put(workspaceName, initialContentFilePath); } } } }
public Set<NodeKey> getReferrers( Document document, ReferenceType type ) { // Get the properties container ... Document referrers = document.getDocument(REFERRERS); if (referrers == null) { return new HashSet<NodeKey>(); } // Get the NodeKeys in the respective arrays ... Set<NodeKey> result = new HashSet<NodeKey>(); if (type != ReferenceType.WEAK) { Document strong = referrers.getDocument(STRONG); if (strong != null) { for (String keyString : strong.keySet()) { result.add(new NodeKey(keyString)); } } } if (type != ReferenceType.STRONG) { Document weak = referrers.getDocument(WEAK); if (weak != null) { for (String keyString : weak.keySet()) { result.add(new NodeKey(keyString)); } } } return result; }
Set<String> names = externalSources.keySet(); for (String name : names) {
public Set<NodeKey> getReferrers( Document document, ReferenceType type ) { // Get the properties container ... Document referrers = document.getDocument(REFERRERS); if (referrers == null) { return new HashSet<NodeKey>(); } // Get the NodeKeys in the respective arrays ... Set<NodeKey> result = new HashSet<NodeKey>(); if (type != ReferenceType.WEAK) { Document strong = referrers.getDocument(STRONG); if (strong != null) { for (String keyString : strong.keySet()) { result.add(new NodeKey(keyString)); } } } if (type != ReferenceType.STRONG) { Document weak = referrers.getDocument(WEAK); if (weak != null) { for (String keyString : weak.keySet()) { result.add(new NodeKey(keyString)); } } } return result; }
Set<String> names = externalSources.keySet(); for (String name : names) {
public Map<NodeKey, Integer> getReferrerCounts( Document document, ReferenceType type ) { // Get the properties container ... Document referrers = document.getDocument(REFERRERS); if (referrers == null) { return Collections.emptyMap(); } // Get the NodeKeys in the respective arrays ... Map<NodeKey, Integer> result = new HashMap<>(); if (type == ReferenceType.STRONG || type == ReferenceType.BOTH) { Document strong = referrers.getDocument(STRONG); if (strong != null) { for (String keyString : strong.keySet()) { result.put(new NodeKey(keyString), strong.getInteger(keyString)); } } } if (type == ReferenceType.WEAK || type == ReferenceType.BOTH) { Document weak = referrers.getDocument(WEAK); if (weak != null) { for (String keyString : weak.keySet()) { result.put(new NodeKey(keyString), weak.getInteger(keyString)); } } } return result; }
public Map<NodeKey, Integer> getReferrerCounts( Document document, ReferenceType type ) { // Get the properties container ... Document referrers = document.getDocument(REFERRERS); if (referrers == null) { return Collections.emptyMap(); } // Get the NodeKeys in the respective arrays ... Map<NodeKey, Integer> result = new HashMap<>(); if (type == ReferenceType.STRONG || type == ReferenceType.BOTH) { Document strong = referrers.getDocument(STRONG); if (strong != null) { for (String keyString : strong.keySet()) { result.put(new NodeKey(keyString), strong.getInteger(keyString)); } } } if (type == ReferenceType.WEAK || type == ReferenceType.BOTH) { Document weak = referrers.getDocument(WEAK); if (weak != null) { for (String keyString : weak.keySet()) { result.put(new NodeKey(keyString), weak.getInteger(keyString)); } } } return result; }
for (String sourceName : externalSources.keySet()) { Document externalSource = externalSources.getDocument(sourceName); if (!externalSource.containsField(FieldName.PROJECTIONS)) {
for (String sourceName : externalSources.keySet()) { Document externalSource = externalSources.getDocument(sourceName); if (!externalSource.containsField(FieldName.PROJECTIONS)) {
for (String sourceName : binaryStoresConfiguration.keySet()) { Document binaryStoreConfig = binaryStoresConfiguration.getDocument(sourceName); binaryStores.put(sourceName, new BinaryStorage(binaryStoreConfig).getBinaryStore());
for (String sourceName : binaryStoresConfiguration.keySet()) { Document binaryStoreConfig = binaryStoresConfiguration.getDocument(sourceName); binaryStores.put(sourceName, new BinaryStorage(binaryStoreConfig).getBinaryStore());