@Override public String resolve(String componentURI, String pageURI) throws ItemNotFoundException, SerializationException { String key; if (!StringUtils.isEmpty(pageURI)) { key = getCacheKey(componentURI, pageURI); } else { key = getCacheKey(componentURI); } final CacheElement<String> cacheElement = cacheProvider.loadPayloadFromLocalCache(key); String result; if (!validInCache(cacheElement)) { if (!StringUtils.isEmpty(pageURI)) { result = linkProvider.resolveComponentFromPage(componentURI, pageURI); } else { result = linkProvider.resolveComponent(componentURI); } try { result = addToCache(componentURI, key, cacheElement, result); } catch (ParseException e) { String message = String.format("Invalid ComponentURI %s", componentURI); LOG.error(message); throw new SerializationException(message, e); } } else { result = cacheElement.getPayload(); LOG.debug("Return link url: {} for uri: {} from cache", result, componentURI); } return result; }
protected PublicationMeta getPublicationMeta(final int publicationId) { final CacheElement<PublicationMeta> cacheElement = cacheProvider.loadPayloadFromLocalCache(key);
LOG.debug("Discovering Publication id for Binary url: {}", fullUrl); final String key = getKey(CacheType.DISCOVER_IMAGES_URL, fullUrl); final CacheElement<Integer> cacheElement = cacheProvider.loadPayloadFromLocalCache(key); Integer result = Constants.UNKNOWN_PUBLICATION_ID;
protected PublicationMeta getPublicationMeta(final int publicationId) { final CacheElement<PublicationMeta> cacheElement = cacheProvider.loadPayloadFromLocalCache(key);
LOG.debug("Discovering Publication id for Binary url: {}", fullUrl); final String key = getKey(CacheType.DISCOVER_IMAGES_URL, fullUrl); final CacheElement<Integer> cacheElement = cacheProvider.loadPayloadFromLocalCache(key); Integer result = Constants.UNKNOWN_PUBLICATION_ID;
LOG.debug("Discovering Publication id for url: {}", url); final String key = getKey(CacheType.DISCOVER_PUBLICATION_URL, url); final CacheElement<Integer> cacheElement = cacheProvider.loadPayloadFromLocalCache(key); Integer result = Constants.UNKNOWN_PUBLICATION_ID;
LOG.debug("Discovering Publication id for url: {}", url); final String key = getKey(CacheType.DISCOVER_PUBLICATION_URL, url); final CacheElement<Integer> cacheElement = cacheProvider.loadPayloadFromLocalCache(key); Integer result = Constants.UNKNOWN_PUBLICATION_ID;
LOG.debug("Enter getTaxonomy with uri: {}", taxonomyURI); CacheElement<Keyword> cacheElement = cacheProvider.loadPayloadFromLocalCache(taxonomyURI); Keyword taxonomy;
CacheElement<String> cacheElement = cacheProvider.loadPayloadFromLocalCache(cacheKey);
CacheElement<String> cacheElement = cacheProvider.loadPayloadFromLocalCache(cacheKey); String pageSource;
CacheElement<Keyword> cacheElement = cacheProvider.loadPayloadFromLocalCache(key); Keyword taxonomy;
CacheElement<Integer> cacheElement = cacheProvider.loadPayloadFromLocalCache(key); Integer result = 0;
CacheElement<Page> cacheElement = cacheProvider.loadPayloadFromLocalCache(uri); Page page;
CacheElement<Page> cacheElement = cacheProvider.loadPayloadFromLocalCache(cacheKey); Page page;
CacheElement<Binary> cacheElement = cacheProvider.loadPayloadFromLocalCache(key); Binary binary;
LOG.debug("Enter getBinaryByURI with uri: {}", tcmUri); CacheElement<Binary> cacheElement = cacheProvider.loadPayloadFromLocalCache(tcmUri); Binary binary;
CacheElement<Integer> cacheElement = cacheProvider.loadPayloadFromLocalCache(key); Integer result = null;
CacheElement<ComponentPresentation> cacheElement = cacheProvider.loadPayloadFromLocalCache(key);