Package org.apache.cocoon.portal

Examples of org.apache.cocoon.portal.PortalService.removeAttribute()


   
    public void finish() {
        PortalService service = null;
        try {
            service = (PortalService)this.manager.lookup(PortalService.ROLE);
            service.removeAttribute(DECODE_LIST);
        } catch (ServiceException ce) {
            throw new CascadingRuntimeException("Unable to lookup component.", ce);           
        } finally {
            this.manager.release(service);
        }
View Full Code Here


    public void setDefaultLayoutKey(String layoutKey) {
        PortalService service = null;
        try {
            service = (PortalService)this.manager.lookup(PortalService.ROLE);
            if ( layoutKey == null ) {
                service.removeAttribute("default-layout-key");
            } else {
                service.setAttribute("default-layout-key", layoutKey);
            }
        } catch (ServiceException ce) {
            // this should never happen
View Full Code Here

                } finally {
                    adapterSelector.release( adapter );
                }
            }

            service.removeAttribute(portalPrefix+"/CopletData");
            service.removeAttribute(portalPrefix+"/CopletInstanceData");
            service.removeAttribute(portalPrefix+"/Layout");
        } catch (ComponentException e) {
            throw new CascadingRuntimeException("Unable to lookup portal service.", e);
        } finally {
View Full Code Here

                    adapterSelector.release( adapter );
                }
            }

            service.removeAttribute(portalPrefix+"/CopletData");
            service.removeAttribute(portalPrefix+"/CopletInstanceData");
            service.removeAttribute(portalPrefix+"/Layout");
        } catch (ComponentException e) {
            throw new CascadingRuntimeException("Unable to lookup portal service.", e);
        } finally {
            this.manager.release(service);
View Full Code Here

                }
            }

            service.removeAttribute(portalPrefix+"/CopletData");
            service.removeAttribute(portalPrefix+"/CopletInstanceData");
            service.removeAttribute(portalPrefix+"/Layout");
        } catch (ComponentException e) {
            throw new CascadingRuntimeException("Unable to lookup portal service.", e);
        } finally {
            this.manager.release(service);
            this.manager.release(adapterSelector);
View Full Code Here

                } finally {
                    adapterSelector.release( adapter );
                }
            }

            service.removeAttribute("CopletData:"+layoutKey);
            service.removeAttribute("CopletInstanceData:"+layoutKey);
            service.removeAttribute("Layout:"+layoutKey);
        } catch (ComponentException e) {
            throw new CascadingRuntimeException("Unable to lookup portal service.", e);
        } finally {
View Full Code Here

                    adapterSelector.release( adapter );
                }
            }

            service.removeAttribute("CopletData:"+layoutKey);
            service.removeAttribute("CopletInstanceData:"+layoutKey);
            service.removeAttribute("Layout:"+layoutKey);
        } catch (ComponentException e) {
            throw new CascadingRuntimeException("Unable to lookup portal service.", e);
        } finally {
            this.manager.release(service);
View Full Code Here

                }
            }

            service.removeAttribute("CopletData:"+layoutKey);
            service.removeAttribute("CopletInstanceData:"+layoutKey);
            service.removeAttribute("Layout:"+layoutKey);
        } catch (ComponentException e) {
            throw new CascadingRuntimeException("Unable to lookup portal service.", e);
        } finally {
            this.manager.release(service);
            this.manager.release(adapterSelector);
View Full Code Here

                        adapterSelector.release( adapter );
                    }
                }
            }
           
            service.removeAttribute("CopletData:"+layoutKey);
            service.removeAttribute("CopletInstanceData:"+layoutKey);
            service.removeAttribute("Layout:"+layoutKey);
        } catch (ServiceException e) {
            throw new CascadingRuntimeException("Unable to lookup portal service.", e);
        } finally {
View Full Code Here

                    }
                }
            }
           
            service.removeAttribute("CopletData:"+layoutKey);
            service.removeAttribute("CopletInstanceData:"+layoutKey);
            service.removeAttribute("Layout:"+layoutKey);
        } catch (ServiceException e) {
            throw new CascadingRuntimeException("Unable to lookup portal service.", e);
        } finally {
            this.manager.release(service);
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.