Package org.jasig.portal

Examples of org.jasig.portal.ChannelRuntimeData


            }
            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) {
                throw new IllegalStateException("No ChannelRuntimeData is associated with this IChannel, either no valid request has started or the request is complete.");
            }
           
            this.springPortletChannel.action(this.channelStaticData, portalControlStructures, channelRuntimeData);
View Full Code Here


        }
        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) {
            throw new IllegalStateException("No ChannelRuntimeData is associated with this IChannel, either no valid request has started or the request is complete.");
        }
       
        return this.springPortletChannel.generateKey(this.channelStaticData, portalControlStructures, channelRuntimeData);
View Full Code Here

        }
        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) {
            throw new IllegalStateException("No ChannelRuntimeData is associated with this IChannel, either no valid request has started or the request is complete.");
        }
       
        return this.springPortletChannel.isCacheValid(this.channelStaticData, portalControlStructures, channelRuntimeData, validity);
View Full Code Here

        }
        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) {
            throw new IllegalStateException("No ChannelRuntimeData is associated with this IChannel, either no valid request has started or the request is complete.");
        }
       
        this.springPortletChannel.render(this.channelStaticData, portalControlStructures, channelRuntimeData, pw);
View Full Code Here

            }
            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) {
                throw new IllegalStateException("No ChannelRuntimeData is associated with this IChannel, either no valid request has started or the request is complete.");
            }
           
            final String title = this.springPortletChannel.getTitle(this.channelStaticData, portalControlStructures, channelRuntimeData);
View Full Code Here

            }
            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) {
                throw new IllegalStateException("No ChannelRuntimeData is associated with this IChannel, either no valid request has started or the request is complete.");
            }
        
            this.springPortletChannel.prepareForRefresh(this.channelStaticData, portalControlStructures, channelRuntimeData);
View Full Code Here

            }
            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) {
                throw new IllegalStateException("No ChannelRuntimeData is associated with this IChannel, either no valid request has started or the request is complete.");
            }
        
            this.springPortletChannel.prepareForReset(this.channelStaticData, portalControlStructures, channelRuntimeData);
View Full Code Here

  protected IUserLayoutStore ulsdb;
  private boolean initialized=false;
  UserProfile editedProfile=null;

  public CUserPreferences() throws PortalException {
    this.runtimeData = new ChannelRuntimeData();
    this.set = new StylesheetSet(this.getClass().getResource(sslLocation).toString());
    this.set.setMediaProps("/properties/media.properties");

    manageProfiles = new ManageProfilesState(this);
    ulsdb = UserLayoutStoreFactory.getUserLayoutStoreImpl();
View Full Code Here

                            this.targetChannel.setRuntimeData(this.runtimeData);

                            ((IResetableChannel) this.targetChannel).prepareForRefresh();
                        }

                        ChannelRuntimeData crd = (ChannelRuntimeData) this.runtimeData.clone();
                        crd.clear(); // Remove parameters

                        if (this.targetChannel instanceof IPrivileged) {
                            ((IPrivileged) this.targetChannel).setPortalControlStructures(this.portcs);
                        }
                       
                        this.targetChannel.setRuntimeData(crd);
                       
                        final ChannelManager cm = this.portcs.getChannelManager();
                        cm.setChannelInstance(channelSubscribeId, this.targetChannel);
                       
                        this.renderChannel(this.targetChannel, contentHandler, printWriter);

                        return;
                    }
                    catch (Exception e) {
                        // if any of the above didn't work, fall back to the error channel
                        resetCError(ErrorCode.SET_RUNTIME_DATA_EXCEPTION, e, channelSubscribeId, this.targetChannel, "Channel failed a refresh attempt.");
                    }
                }
                else if (chFate.equals("restart")) {
                    final ChannelManager cm = this.portcs.getChannelManager();

                    try {
                        //Clean things up for the channel
                        if (this.targetChannel instanceof IResetableChannel) {
                            if (this.targetChannel instanceof IPrivileged) {
                                ((IPrivileged) this.targetChannel).setPortalControlStructures(this.portcs);
                            }
                           
                            this.targetChannel.setRuntimeData(this.runtimeData);

                            ((IResetableChannel) this.targetChannel).prepareForReset();
                        }

                        final ChannelRuntimeData crd = (ChannelRuntimeData) this.runtimeData.clone();
                        crd.clear();
                       
                        if ((this.targetChannel = cm.instantiateChannel(this.portcs.getHttpServletRequest(), this.portcs.getHttpServletResponse(), channelSubscribeId)) == null) {
                            resetCError(ErrorCode.GENERAL_ERROR, null, channelSubscribeId, null, "Channel failed to reinstantiate!");
                        }
                        else {
View Full Code Here

                      session.staticData,"You may view principals with existing permissions on the items you have selected by clicking \"Done\", or use the select and deselect buttons to add or remove principals for whom you would like to view/assign permissions",
                      GroupService.EVERYONE,true,true,
                      (IGroupMember[])gmembers.toArray(new IGroupMember[0]));
                  }
              }
              ChannelRuntimeData servantRD = (ChannelRuntimeData)session.runtimeData.clone();
              Enumeration srd = servantRD.keys();
              // clear out runtimeData in case of chained Group servant creation
              while (srd.hasMoreElements()) {
                  servantRD.remove(srd.nextElement());
              }
              ((IChannel)session.servant).setRuntimeData(servantRD);
              session.view="Select Principals";
          }
          else {
View Full Code Here

TOP

Related Classes of org.jasig.portal.ChannelRuntimeData

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.