/** * Removes the prefixes of the parsed Site to the Map holding the according mappings * @param referencedSite */ private void removeEntityPrefixes(Site referencedSite) { String[] prefixes = referencedSite.getConfiguration().getEntityPrefixes(); if(prefixes == null || prefixes.length < 1){ synchronized (prefixMap) { noPrefixSites.remove(referencedSite); } } else { for(String prefix : prefixes){ synchronized (prefixMap) { Collection<Site> sites = prefixMap.get(prefix); if(sites != null){ sites.remove(referencedSite); if(sites.isEmpty()){ //remove key from the Map prefixMap.remove(prefix); //remove also the prefix from the List prefixList.remove(prefix); } } } } } } @Override
/** * Removes the prefixes of the parsed Site to the Map holding the according mappings * @param referencedSite */ private void removeEntityPrefixes(Site referencedSite) { String[] prefixes = referencedSite.getConfiguration().getEntityPrefixes(); if(prefixes == null || prefixes.length < 1){ synchronized (prefixMap) { noPrefixSites.remove(referencedSite); } } else { for(String prefix : prefixes){ synchronized (prefixMap) { Collection<Site> sites = prefixMap.get(prefix); if(sites != null){ sites.remove(referencedSite); if(sites.isEmpty()){ //remove key from the Map prefixMap.remove(prefix); //remove also the prefix from the List prefixList.remove(prefix); } } } } } } @Override
String[] prefixArray = referencedSite.getConfiguration().getEntityPrefixes(); if(prefixArray == null || prefixArray.length < 1){ synchronized (prefixMap) {
String[] prefixArray = referencedSite.getConfiguration().getEntityPrefixes(); if(prefixArray == null || prefixArray.length < 1){ synchronized (prefixMap) {
if(config.getEntityPrefixes() != null){ for(String prefix : config.getEntityPrefixes()){ rep.add(namespace+"entityPrefix", prefix);