Package org.jasig.portal.layout.dlm.remoting.registry

Examples of org.jasig.portal.layout.dlm.remoting.registry.ChannelBean


        EntityIdentifier ei = user.getEntityIdentifier();
          IAuthorizationPrincipal ap = AuthorizationService.instance().newPrincipal(ei.getKey(), ei.getType());

          for (IChannelDefinition channel : allChannels) {
              if (ap.canManage(channel.getId())) {
                  registry.addChannel(new ChannelBean(channel));
              }
          }
      }
   
    return registry;
View Full Code Here


    }
   
    for(IChannelDefinition channelDef : channels) {
     
      // construct a new channel bean from this channel
      ChannelBean channel = new ChannelBean(channelDef);
      categoryBean.addChannel(channel);
     
      // remove the channel of the list of all channels
      allChannels.remove(channel);
    }
View Full Code Here

      if ((isManage && ap.canManage(channelDef.getPortletDefinitionId()
          .getStringId()))
          || (!isManage && ap.canSubscribe(channelDef
              .getPortletDefinitionId().getStringId()))) {
        // construct a new channel bean from this channel
        ChannelBean channel = getChannel(channelDef, request, locale);
        categoryBean.addChannel(channel);
      }
     
      // remove the channel of the list of all channels
      allChannels.remove(channelDef);
View Full Code Here

    return categoryBean;
   
  }
 
  private ChannelBean getChannel(IPortletDefinition definition, WebRequest request, Locale locale) {
      ChannelBean channel = new ChannelBean();
      channel.setId(definition.getPortletDefinitionId().getStringId());
        channel.setDescription(definition.getDescription(locale.toString()));
        channel.setFname(definition.getFName());
        channel.setName(definition.getName(locale.toString()));
        channel.setState(definition.getLifecycleState().toString());
        channel.setTitle(definition.getTitle(locale.toString()));
        channel.setTypeId(definition.getType().getId());
         
        IPortletDefinitionParameter iconParameter = definition.getParameter("iconUrl");
        if (iconParameter != null) {
            String iconUrl = spELService.parseString(iconParameter.getValue(), request);
            channel.setIconUrl(iconUrl);
        }

        return channel;
  }
View Full Code Here

TOP

Related Classes of org.jasig.portal.layout.dlm.remoting.registry.ChannelBean

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.