Examples of DeltaApplicable


Examples of org.apache.cocoon.portal.util.DeltaApplicable

    } else {
      // load global profile
      map.remove("type");
      /* It must be loaded and cannot be reused since the objects are modified by deltas
         so they do NOT represent the global profile any more. */
      DeltaApplicable object = (DeltaApplicable)this.loadProfile(map, location+"-global", (SourceValidity)globalValidity[1], service);
      result = new Object[] {object, Boolean.TRUE};
   
      // load role delta
      map.put("type", "role");
      result = this.getProfile(map, location+"-role-"+map.get("role"), roleValidity, service);
      if (((Boolean)result[1]).booleanValue())
        object.applyDelta(result[0]);    

      // load user delta
      map.put("type", "user");
      result = this.getProfile(map, location+"-user-"+map.get("user"), userValidity, service);
      if (((Boolean)result[1]).booleanValue())
        object.applyDelta(result[0]);
     
      result = new Object[] {object, Boolean.TRUE};    
    }

    // clean up for reuse
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.