Codota Logo
CacheElement.setPayload
Code IndexAdd Codota to your IDE (free)

How to use
setPayload
method
in
org.dd4t.caching.CacheElement

Best Java code snippets using org.dd4t.caching.CacheElement.setPayload (Showing top 18 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.dd4t/dd4t-core

private String addToCache(String componentURI, String key, CacheElement<String> cacheElement, String result)
    throws ParseException {
  String toReturn = result == null ? "" : result;
  cacheElement.setPayload(toReturn);
  TCMURI tcmUri = new TCMURI(componentURI);
  cacheProvider.storeInItemCache(key, cacheElement, tcmUri.getPublicationId(), tcmUri.getItemId());
  LOG.debug("Added link url: {} for uri: {} to cache", result, componentURI);
  return toReturn;
}
origin: org.dd4t/dd4t-providers

cacheElement.setPayload(publicationMeta);
cacheProvider.storeInItemCache(key, cacheElement);
cacheElement.setExpired(false);
origin: org.dd4t/dd4t-providers-web8

cacheElement.setPayload(result);
cacheProvider.storeInItemCache(key, cacheElement);
cacheElement.setExpired(false);
origin: org.dd4t/dd4t-providers-web8

cacheElement.setPayload(publicationMeta);
cacheProvider.storeInItemCache(key, cacheElement);
cacheElement.setExpired(false);
origin: org.dd4t/dd4t-providers

cacheElement.setPayload(result);
cacheProvider.storeInItemCache(key, cacheElement);
cacheElement.setExpired(false);
origin: org.dd4t/dd4t-providers-web8

result = pageMeta.getPublicationId();
LOG.debug("Publication Id for URL: {}, is {}", url, result);
cacheElement.setPayload(result);
cacheProvider.storeInItemCache(key, cacheElement);
cacheElement.setExpired(false);
origin: org.dd4t/dd4t-providers

if (pageMeta != null) {
  result = pageMeta.getPublicationId();
  cacheElement.setPayload(result);
  cacheProvider.storeInItemCache(key, cacheElement);
  cacheElement.setExpired(false);
origin: org.dd4t/dd4t-core

  cacheElement.setPayload(null);
  cacheProvider.storeInItemCache(cacheKey, cacheElement);
  cacheElement.setExpired(true);
cacheElement.setPayload(page);
cacheProvider.storeInItemCache(cacheKey, cacheElement);
cacheElement.setExpired(false);
origin: org.dd4t/dd4t-core

String taxonomySource = taxonomyProvider.getTaxonomyByURI(taxonomyURI, true);
if (taxonomySource == null || taxonomySource.length() == 0) {
  cacheElement.setPayload(null);
  cacheProvider.storeInItemCache(taxonomyURI, cacheElement);
  cacheElement.setExpired(true);
cacheElement.setPayload(taxonomy);
origin: org.dd4t/dd4t-core

  String taxonomySource = taxonomyProvider.getTaxonomyFilterBySchema(taxonomyURI, schemaURI);
  if (taxonomySource == null || taxonomySource.length() == 0) {
    cacheElement.setPayload(null);
    cacheProvider.storeInItemCache(taxonomyURI, cacheElement);
    cacheElement.setExpired(true);
  cacheElement.setPayload(taxonomy);
  LOG.debug("Added taxonomy with uri: {} and schema: {} to cache", taxonomyURI, schemaURI);
} catch (ItemNotFoundException e) {
  cacheElement.setPayload(null);
  cacheProvider.storeInItemCache(taxonomyURI, cacheElement);
  cacheElement.setExpired(true);
origin: org.dd4t/dd4t-core

  cacheElement.setPayload(null);
  cacheProvider.storeInItemCache(cacheKey, cacheElement);
  cacheElement.setExpired(true);
cacheElement.setPayload(pageSource);
cacheProvider.storeInItemCache(cacheKey, cacheElement);
cacheElement.setExpired(false);
origin: org.dd4t/dd4t-providers-web8

  cacheElement.setPayload(result);
  cacheProvider.storeInItemCache(key, cacheElement, tcmuri.getPublicationId(), tcmuri.getItemId
      ());
} else {
  result = 0;
  cacheElement.setPayload(result);
  cacheProvider.storeInItemCache(key, cacheElement);
  cacheElement.setExpired(false);
origin: org.dd4t/dd4t-core

  cacheElement.setPayload(null);
  cacheProvider.storeInItemCache(cacheKey, cacheElement);
  cacheElement.setExpired(true);
cacheElement.setPayload(page);
cacheProvider.storeInItemCache(cacheKey, cacheElement, resultItem.getPublicationId(), resultItem
    .getItemId());
origin: org.dd4t/dd4t-core

  cacheElement.setPayload(null);
  cacheElement.setNull(true);
  cacheProvider.storeInItemCache(uri, cacheElement);
cacheElement.setPayload(page);
origin: org.dd4t/dd4t-core

try {
  binary = binaryProvider.getBinaryByURI(tcmUri);
  cacheElement.setPayload(binary);
  TCMURI binaryURI = new TCMURI(tcmUri);
  cacheProvider.storeInItemCache(tcmUri, cacheElement, binaryURI.getPublicationId(), binaryURI
  LOG.debug("Added binary with uri: {} to cache", tcmUri);
} catch (ParseException e) {
  cacheElement.setPayload(null);
  cacheProvider.storeInItemCache(tcmUri, cacheElement);
  cacheElement.setExpired(true);
origin: org.dd4t/dd4t-core

try {
  binary = binaryProvider.getBinaryByURL(url, publicationId);
  cacheElement.setPayload(binary);
origin: org.dd4t/dd4t-providers

  result = 1;
  TCMURI tcmuri = new TCMURI(results[0]);
  cacheElement.setPayload(result);
  cacheProvider.storeInItemCache(key, cacheElement, tcmuri.getPublicationId(), tcmuri
      .getItemId());
} else {
  result = 0;
  cacheElement.setPayload(result);
  cacheProvider.storeInItemCache(key, cacheElement);
  cacheElement.setExpired(false);
origin: org.dd4t/dd4t-core

  cacheElement.setPayload(null);
  cacheElement.setNull(true);
  cacheProvider.storeInItemCache(key, cacheElement, publicationId, componentId);
cacheElement.setPayload(componentPresentation);
cacheProvider.storeInItemCache(key, cacheElement, publicationId, componentId);
cacheElement.setExpired(false);
org.dd4t.cachingCacheElementsetPayload

Popular methods of CacheElement

  • getPayload
  • isExpired
  • setExpired
  • setNull
  • getDependentKey
  • isNull
  • setDependentKey

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • setContentView (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JPanel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now