Package org.jasig.portal.channel

Examples of org.jasig.portal.channel.ChannelLifecycleState


    if (channel == null){
      return doesPrincipalHavePermission(principal, owner,
        IPermission.CHANNEL_MANAGER_APPROVED_ACTIVITY, target);
//      throw new AuthorizationException("Unable to locate channel " + channelPublishId);
    }   
    ChannelLifecycleState state = channel.getLifecycleState();
    int order = state.getOrder();
   
    /*
     * The following code assumes that later lifecycle states imply permission
     * for earlier lifecycle states.  For example, if a user has permission to
     * manage an expired channel, we assume s/he also has permission to
View Full Code Here


  IChannelDefinition channel = this.channelRegistryStore
        .getChannelDefinition(channelPublishId);
    if (channel == null){
      return false;
    }   
    ChannelLifecycleState state = channel.getLifecycleState();
   
    /*
     * Each channel lifecycle state now has its own subscribe permission.  The
     * following logic checks the appropriate permission for the lifecycle.
     */
    String permission;
    if (state.equals(ChannelLifecycleState.PUBLISHED)) {
      permission = IPermission.CHANNEL_SUBSCRIBER_ACTIVITY;
    } else if (state.equals(ChannelLifecycleState.APPROVED)) {
      permission = IPermission.CHANNEL_SUBSCRIBER_APPROVED_ACTIVITY;
    } else if (state.equals(ChannelLifecycleState.CREATED)) {
      permission = IPermission.CHANNEL_SUBSCRIBER_CREATED_ACTIVITY;
    } else if (state.equals(ChannelLifecycleState.EXPIRED)) {
      permission = IPermission.CHANNEL_SUBSCRIBER_EXPIRED_ACTIVITY;
    } else {
      throw new AuthorizationException(
          "Unrecognized lifecycle state for channel "
              + channelPublishId);
View Full Code Here

TOP

Related Classes of org.jasig.portal.channel.ChannelLifecycleState

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.