Package org.jasig.portal

Examples of org.jasig.portal.ChannelType


      checkValidity("<CPD URI>", uri);
     
      boolean isNew = false;
      chanRegStore = ChannelRegistryStoreFactory.getChannelRegistryStoreImpl();
      ChannelType[] types = chanRegStore.getChannelTypes();
      ChannelType chanType = null;
       
      for(int i=0; i<types.length && chanType == null; i++)
      {
          if (types[i].getCpdUri().equals(uri))
              chanType = types[i];
      }
      if (chanType == null) // new one being defined
      {
          isNew = true;
          chanType = chanRegStore.newChannelType();
      }
           
      chanType.setJavaClass(clazz);
      chanType.setName(name);
      chanType.setDescription(description);
      chanType.setCpdUri(uri);
      chanRegStore.saveChannelType(chanType);
      return "The \"" + name + "\" channel type has been "
      + (isNew ? "added" : "updated") + " successfully.";
  }
View Full Code Here


            return null;

        try {
            if (ci.chanDef.getTypeId() != -1)
            {
                ChannelType type = crs.getChannelType(ci.chanDef.getTypeId());
                ci.chanDef.setJavaClass(type.getJavaClass());
            }
            crs.saveChannelDefinition(ci.chanDef);

            // Permission for everyone to subscribe to channel
            AuthorizationService authService = AuthorizationService.instance();
View Full Code Here

TOP

Related Classes of org.jasig.portal.ChannelType

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.