Package com.founder.fix.fixflow.core.cache

Examples of com.founder.fix.fixflow.core.cache.CacheHandler


  @SuppressWarnings({ "unchecked", "rawtypes" })
  public List<IdentityLink> getIdentityLinkQueryToList() {

    if (this.taskIdentityLinks==null||this.taskIdentityLinks.size() == 0) {
      this.taskIdentityLinks=new ArrayList<IdentityLinkEntity>();
      CacheHandler cacheHandler = Context.getProcessEngineConfiguration().getCacheHandler();

      Object valueObject = cacheHandler.getCacheData("IdentityLink_" + this.id);
      if (valueObject != null) {
        this.taskIdentityLinks = (List<IdentityLinkEntity>) valueObject;
        return (List) this.taskIdentityLinks;
      } else {
        List valueObjectTemp = (List) Context.getCommandContext().getIdentityLinkManager().findIdentityLinksByTaskId(this.id);
        if (valueObjectTemp.size() > 0) {
          cacheHandler.putCacheData("IdentityLink_" + this.id, valueObjectTemp);
          this.taskIdentityLinks = (List<IdentityLinkEntity>) valueObjectTemp;
          return (List) this.taskIdentityLinks;
        } else {
          return (List) this.taskIdentityLinks;
        }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.cache.CacheHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.