Examples of DeltaApplicableReferencesAdjustable


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

                                    Map parameters,
                                    PortalService service,
                                    Object factory,
                                    boolean forcedLoad)
  throws Exception {
    DeltaApplicableReferencesAdjustable result;
    Object object;

        parameters.put("type", "global");
    Object global = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
        Object key = this.buildKey(service, parameters, layoutKey, true);
    result = (DeltaApplicableReferencesAdjustable)this.loadProfile(key, parameters, factory);
 
    // load role delta
        parameters.put("type", "role");
    try {
      object = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
      if (object != null)
        result.applyDelta(object);    
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }

    // load user delta
        parameters.put("type", "user");
    try {
            key = this.buildKey(service, parameters, layoutKey, true);
      object = this.loadProfile(key, parameters, factory);
      if (object != null)
        result.applyDelta(object);
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global profile does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
        // FIXME
    this.attributes.put(key, result);
   
    return result;
View Full Code Here

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

                                    Map parameters,
                                    PortalService service,
                                    Object factory,
                                    boolean forcedLoad)
  throws Exception {
    DeltaApplicableReferencesAdjustable result;
    Object object;

        parameters.put("type", "global");
    Object global = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
        Object key = this.buildKey(service, parameters, layoutKey, true);
    result = (DeltaApplicableReferencesAdjustable)this.loadProfile(key, parameters, factory);
 
    // load role delta
        parameters.put("type", "role");
    try {
      object = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
      if (object != null)
        result.applyDelta(object);    
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }

    // load user delta
        parameters.put("type", "user");
    try {
            key = this.buildKey(service, parameters, layoutKey, true);
      object = this.loadProfile(key, parameters, factory);
      if (object != null)
        result.applyDelta(object);
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global profile does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
        // FIXME
    this.attributes.put(key, result);
   
    return result;
View Full Code Here

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

                                    Map parameters,
                                    PortalService service,
                                    Object factory,
                                    boolean forcedLoad)
  throws Exception {
    DeltaApplicableReferencesAdjustable result;
    Object object;

        parameters.put("type", "global");
    Object global = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
        Object key = this.buildKey(service, parameters, layoutKey, true);
    result = (DeltaApplicableReferencesAdjustable)this.loadProfile(key, parameters, factory);
 
    // load role delta
        parameters.put("type", "role");
    try {
      object = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
      if (object != null)
        result.applyDelta(object);    
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }

    // load user delta
        parameters.put("type", "user");
    try {
            key = this.buildKey(service, parameters, layoutKey, true);
      object = this.loadProfile(key, parameters, factory);
      if (object != null)
        result.applyDelta(object);
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global profile does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
        // FIXME
    this.attributes.put(key, result);
   
    return result;
View Full Code Here

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

                                    Map parameters,
                                    PortalService service,
                                    Object factory,
                                    boolean forcedLoad)
  throws Exception {
    DeltaApplicableReferencesAdjustable result;
    Object object;

        parameters.put("type", "global");
    Object global = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
        Object key = this.buildKey(service, parameters, layoutKey, true);
    result = (DeltaApplicableReferencesAdjustable)this.loadProfile(key, parameters, factory);
 
    // load role delta
        parameters.put("type", "role");
    try {
      object = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
      if (object != null)
        result.applyDelta(object);    
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }

    // load user delta
        parameters.put("type", "user");
    try {
            key = this.buildKey(service, parameters, layoutKey, true);
      object = this.loadProfile(key, parameters, factory);
      if (object != null)
        result.applyDelta(object);
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global profile does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
        // FIXME
    this.attributes.put(key, result);
   
    return result;
View Full Code Here

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

  /**
   * Gets a profile and applies possible user and role deltas to it.
   */
  private Object getDeltaProfile(Object key, Map map, String location, PortalService service, Object factory, boolean forcedLoad)
  throws Exception {
    DeltaApplicableReferencesAdjustable result;
    Object object;
     
    // TODO Change to KeyManager usage
    Map keyMap = (Map)key;

    // load global profile
    map.put("type", "global");
    Object global = this.getProfile(key, map, location, factory, forcedLoad)[0];
    result = (DeltaApplicableReferencesAdjustable)this.loadProfile(key, map, factory);
 
    // load role delta
    map.put("type", "role");
    try {
      object = this.getProfile(key, map, location+"-role-"+keyMap.get("role"), factory, forcedLoad)[0];
      if (object != null)
        result.applyDelta(object);    
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }

    // load user delta
    map.put("type", "user");
    try {
      object = this.loadProfile(key, map, factory);
      if (object != null)
        result.applyDelta(object);
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global "+keyMap.get("profile")+" does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
    service.setAttribute(location, result);
   
    return result;
  }
View Full Code Here

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

                                    Object factory,
                                    boolean forcedLoad)
  throws Exception {
        Configuration config = (Configuration) parameters.get("config");
       
    DeltaApplicableReferencesAdjustable result;
    Object object;

        parameters.put("type", "global");
    Object global = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
        Object key = this.buildKey(service, parameters, layoutKey, true);
    result = (DeltaApplicableReferencesAdjustable)this.loadProfile(key, parameters, factory);
 
    // load role delta
        parameters.put("type", "role");
    try {
      object = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
      if (object != null)
        result.applyDelta(object);    
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }

    // load user delta
        parameters.put("type", "user");
    try {
            key = this.buildKey(service, parameters, layoutKey, true);
      object = this.loadProfile(key, parameters, factory);
      if (object != null)
        result.applyDelta(object);
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global profile does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
        // FIXME
    this.attributes.put(key, result);
   
    return result;
View Full Code Here

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

                                    Map parameters,
                                    PortalService service,
                                    Object factory,
                                    boolean forcedLoad)
  throws Exception {
    DeltaApplicableReferencesAdjustable result;
    Object object;

        parameters.put("type", "global");
    Object global = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
        Object key = this.buildKey(service, parameters, layoutKey, true);
    result = (DeltaApplicableReferencesAdjustable)this.loadProfile(key, parameters, factory);
 
    // load role delta
        parameters.put("type", "role");
    try {
      object = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
      if (object != null)
        result.applyDelta(object);    
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }

    // load user delta
        parameters.put("type", "user");
    try {
            key = this.buildKey(service, parameters, layoutKey, true);
      object = this.loadProfile(key, parameters, factory);
      if (object != null)
        result.applyDelta(object);
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global profile does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
        // FIXME
    this.attributes.put(key, result);
   
    return result;
View Full Code Here

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

                                    Map parameters,
                                    PortalService service,
                                    Object factory,
                                    boolean forcedLoad)
  throws Exception {
    DeltaApplicableReferencesAdjustable result;
    Object object;

        parameters.put("type", "global");
    Object global = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
        Object key = this.buildKey(service, parameters, layoutKey, true);
    result = (DeltaApplicableReferencesAdjustable)this.loadProfile(key, parameters, factory);
 
    // load role delta
        parameters.put("type", "role");
    try {
      object = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
      if (object != null)
        result.applyDelta(object);    
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }

    // load user delta
        parameters.put("type", "user");
    try {
            key = this.buildKey(service, parameters, layoutKey, true);
      object = this.loadProfile(key, parameters, factory);
      if (object != null)
        result.applyDelta(object);
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global profile does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
        // FIXME
    this.attributes.put(key, result);
   
    return result;
View Full Code Here

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

                                    Map parameters,
                                    PortalService service,
                                    Object factory,
                                    boolean forcedLoad)
  throws Exception {
    DeltaApplicableReferencesAdjustable result;
    Object object;

        parameters.put("type", "global");
    Object global = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
        Object key = this.buildKey(service, parameters, layoutKey, true);
    result = (DeltaApplicableReferencesAdjustable)this.loadProfile(key, parameters, factory);
 
    // load role delta
        parameters.put("type", "role");
    try {
      object = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
      if (object != null)
        result.applyDelta(object);    
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }

    // load user delta
        parameters.put("type", "user");
    try {
            key = this.buildKey(service, parameters, layoutKey, true);
      object = this.loadProfile(key, parameters, factory);
      if (object != null)
        result.applyDelta(object);
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global profile does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
        // FIXME
    this.attributes.put(key, result);
   
    return result;
View Full Code Here

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

                                    Map parameters,
                                    PortalService service,
                                    Object factory,
                                    boolean forcedLoad)
  throws Exception {
    DeltaApplicableReferencesAdjustable result;
    Object object;

        parameters.put("type", "global");
    Object global = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
        Object key = this.buildKey(service, parameters, layoutKey, true);
    result = (DeltaApplicableReferencesAdjustable)this.loadProfile(key, parameters, factory);
 
    // load role delta
        parameters.put("type", "role");
    try {
      object = this.getProfile(layoutKey, parameters, factory, forcedLoad, service)[0];
      if (object != null)
        result.applyDelta(object);    
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }

    // load user delta
        parameters.put("type", "user");
    try {
            key = this.buildKey(service, parameters, layoutKey, true);
      object = this.loadProfile(key, parameters, factory);
      if (object != null)
        result.applyDelta(object);
    } catch (Exception e) {
      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global profile does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
        // FIXME
    this.attributes.put(key, result);
   
    return result;
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.