Package org.jasig.portal

Examples of org.jasig.portal.PortalControlStructures


    /* (non-Javadoc)
     * @see org.jasig.portal.IChannel#setStaticData(org.jasig.portal.ChannelStaticData)
     */
    public void setStaticData(ChannelStaticData sd) throws PortalException {
        try {
            final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
            if (portalControlStructures == null) {
                throw new IllegalStateException("No PortalControlStructures is associated with this IChannel, either no valid request has started or the request is complete.");
            }

            //Determine the name of the spring bean to wrap
View Full Code Here


    /* (non-Javadoc)
     * @see org.jasig.portal.IChannel#setRuntimeData(org.jasig.portal.ChannelRuntimeData)
     */
    public void setRuntimeData(ChannelRuntimeData rd) throws PortalException {
        final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
        if (portalControlStructures == null) {
            throw new IllegalStateException("setPortalControlStructures must be set before setRuntimeData is called");
        }
       
        this.channelRuntimeDataLocal.set(rd);

        //Attach the runtime data as an attribute on the request so it is accessible to other portlet rendering related classes 
        final HttpServletRequest httpServletRequest = portalControlStructures.getHttpServletRequest();
        httpServletRequest.setAttribute(ATTRIBUTE__RUNTIME_DATA, rd);
        if (this.logger.isTraceEnabled()) {
            this.logger.trace("Set ChannelRuntimeData " + rd + " on " + httpServletRequest);
        }
    }
View Full Code Here

    public void processAction() throws PortalException {
        try {
            if (this.channelStaticData == null) {
                throw new IllegalStateException("No ChannelStaticData is associated with this IChannel, either the channel has not yet been initialized or should be destroyed.");
            }
            final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
            if (portalControlStructures == null) {
                throw new IllegalStateException("No PortalControlStructures is associated with this IChannel, either no valid request has started or the request is complete.");
            }
            final ChannelRuntimeData channelRuntimeData = this.channelRuntimeDataLocal.get();
            if (channelRuntimeData == null) {
View Full Code Here

     */
    public ChannelCacheKey generateKey() {
        if (this.channelStaticData == null) {
            throw new IllegalStateException("No ChannelStaticData is associated with this IChannel, either the channel has not yet been initialized or should be destroyed.");
        }
        final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
        if (portalControlStructures == null) {
            throw new IllegalStateException("No PortalControlStructures is associated with this IChannel, either no valid request has started or the request is complete.");
        }
        final ChannelRuntimeData channelRuntimeData = this.channelRuntimeDataLocal.get();
        if (channelRuntimeData == null) {
View Full Code Here

     */
    public boolean isCacheValid(Object validity) {
        if (this.channelStaticData == null) {
            throw new IllegalStateException("No ChannelStaticData is associated with this IChannel, either the channel has not yet been initialized or should be destroyed.");
        }
        final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
        if (portalControlStructures == null) {
            throw new IllegalStateException("No PortalControlStructures is associated with this IChannel, either no valid request has started or the request is complete.");
        }
        final ChannelRuntimeData channelRuntimeData = this.channelRuntimeDataLocal.get();
        if (channelRuntimeData == null) {
View Full Code Here

     */
    public void renderCharacters(PrintWriter pw) throws PortalException {
        if (this.channelStaticData == null) {
            throw new IllegalStateException("No ChannelStaticData is associated with this IChannel, either the channel has not yet been initialized or should be destroyed.");
        }
        final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
        if (portalControlStructures == null) {
            throw new IllegalStateException("No PortalControlStructures is associated with this IChannel, either no valid request has started or the request is complete.");
        }
        final ChannelRuntimeData channelRuntimeData = this.channelRuntimeDataLocal.get();
        if (channelRuntimeData == null) {
View Full Code Here

    public ChannelRuntimeProperties getRuntimeProperties() {
        try {
            if (this.channelStaticData == null) {
                throw new IllegalStateException("No ChannelStaticData is associated with this IChannel, either the channel has not yet been initialized or should be destroyed.");
            }
            final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
            if (portalControlStructures == null) {
                throw new IllegalStateException("No PortalControlStructures is associated with this IChannel, either no valid request has started or the request is complete.");
            }
            final ChannelRuntimeData channelRuntimeData = this.channelRuntimeDataLocal.get();
            if (channelRuntimeData == null) {
View Full Code Here

    public void receiveEvent(PortalEvent ev) {
        try {
            if (this.channelStaticData == null) {
                throw new IllegalStateException("No ChannelStaticData is associated with this IChannel, either the channel has not yet been initialized or should be destroyed.");
            }
            final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
            if (portalControlStructures == null) {
                throw new IllegalStateException("No PortalControlStructures is associated with this IChannel, either no valid request has started or the request is complete.");
            }

            this.springPortletChannel.portalEvent(this.channelStaticData, portalControlStructures, ev);
View Full Code Here

    public void prepareForRefresh() {
        try {
            if (this.channelStaticData == null) {
                throw new IllegalStateException("No ChannelStaticData is associated with this IChannel, either the channel has not yet been initialized or should be destroyed.");
            }
            final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
            if (portalControlStructures == null) {
                throw new IllegalStateException("No PortalControlStructures is associated with this IChannel, either no valid request has started or the request is complete.");
            }
            final ChannelRuntimeData channelRuntimeData = this.channelRuntimeDataLocal.get();
            if (channelRuntimeData == null) {
View Full Code Here

    public void prepareForReset() {
        try {
            if (this.channelStaticData == null) {
                throw new IllegalStateException("No ChannelStaticData is associated with this IChannel, either the channel has not yet been initialized or should be destroyed.");
            }
            final PortalControlStructures portalControlStructures = this.portalControlStructuresLocal.get();
            if (portalControlStructures == null) {
                throw new IllegalStateException("No PortalControlStructures is associated with this IChannel, either no valid request has started or the request is complete.");
            }
            final ChannelRuntimeData channelRuntimeData = this.channelRuntimeDataLocal.get();
            if (channelRuntimeData == null) {
View Full Code Here

TOP

Related Classes of org.jasig.portal.PortalControlStructures

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.