Channel List of Channels as a Channel in Java

0
No votes yet

There was a post where someone created or was going to create a List of Channels using PHP.

I created a Channel that was requested by our admin and user base. I will attach the .car file.

The main Channel Class file is:

edu.wmich.luminis.uportal.channels.channelList.ChannelListChannel

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Exception

I placed the car in $CP_ROOT/webapps/luminis/WEB-INF/cars and bounced the web server. After adding the channel to my layout I get the following error during rendering:

Message: ChannelRenderer.completeRendering() threw:
Error type: Channel failed to render (code 1)
Problem type: Runtime exception (code -1)
Error message: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.

Any ideas?
Thanks,
Dmitriy B

Just a guess

Do you happen to know if you have any categories or channels with an ampersand (&) in them?

Okay, I changed the description of the channel in our testportal and my channel now fails if it has an ampersand. I'll look and see how to fix this.

No ampersand

The channel category is "Other" and the description is blank. I also tried putting simple text in the description to no avail.. weird.

Updated Channel List

I updated the channel to fix any ampersand problems.

Worked!

That worked. Thanks!
Dmitriy

Hey, Thanks for the info!!

Hey, Thanks for the info!! I am actually working on this channel right now and I did not know about the up_group, and up_group_membership tables. I'll get this done quicker!

Jeremy

good work

Hi,
we we're working on something similar - this will save us time!
I dropped it in and it's worked first time.
thanks
Rich

error rendering channel

We are getting the following message:

Error Report
Channel ID: n1296
Message: Channel failed a reload attempt.
Error type: Channel failed to accept runtime data (code 3)
Problem type:
Error message: Invalid column type

Any ideas?

Stack Trace?

Is there a stack trace or more info in the Logs? Does the channel have the stack trace icon displayed that you could give that information for?

Stack Trace

Here is the stack trace:

org.jasig.portal.PortalException: Invalid column type at
edu.wmich.luminis.uportal.channels.channelList.ChannelListChannel.setRuntimeData(ChannelListChannel.java:63)
at org.jasig.portal.channels.CError.renderXML(CError.java:207) at
campuspipeline.uportal.ScheduledChannelRenderer$ScheduledWorker.run(ScheduledChannelRenderer.java:875)
at
com.pipeline.uportal.ChannelRendererTaskInterceptor$1.run(ChannelRendererTaskInterceptor.java:114)
at java.security.AccessController.doPrivileged(Native Method) at
com.pipeline.uportal.ChannelRendererTaskInterceptor.run(ChannelRendererTaskInterceptor.java:100)
at com.sct.pipeline.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:479)

enhancement ?

Hi,

portal.yale.edu have a "available channels" (on the explore tab - of demo user). This allows you to open any channel - which is a really nice way to checkout a channel - has anyone got an implementation for that that they don't mind sharing ? - or similar functionality (eg immediately adding a channel to some Tab) - it would be really useful. I'm planning to have a go myself when I get time. I've emailed the yale site to ask if the will make that channel public domain.

Rich

I have downloaded this

I have downloaded this channel, and hope to work on implementing this when I get some free cycles. I wish I found this before I did my work, oh well :)

You happen to get the

You happen to get the channel from the Yale portal? It is pretty slick. The problem I am running into is that I do not know which group (as in employee, students, etc...) is available to subscribe to that channel. I only want to show the user the channels that they will be able to see if they were to go to the Content/Layout area of our portal. Anyone been able to figure this out?

the channel is..

I think its "CMenuChannel with channel registry enhancements" from jasig portal : https://jasigch.princeton.edu

Rich.

Did you get this working with Luminis?

I downloaded the source and in an attempt to build this, it appears that it is needs a later version of uportal then what is used by Luminis. Also there is one reference to the split method on String which is in 1.4.2, not 1.3..

CMenu channel

Hi,
I had a go too - the java 1.4 vs 1.3 i can handle but the classes it uses from uPortal are way beyond my uPortal knowledge:

IMultithreadedPrivileged
UserLayoutChannelDescription
IUserLayout

I may have another go over soon but its tempting to await for Luminis v4 - maybe that will solve the problems...
Rich

Channels from JA-SIG

Hey LDN,

I hope I don't sound completely stupid here, but what do you need to do with these channels after you download them off the jasig website and you make your necessary changes? As far as, are you supposed to jar up the files and place it in a specific directory before you run ant? I'm a little lost on how to get this goin.

Any help would be ever so appreciated :)

Christine

unable to locate channel

Hi,
I deployed the channelList.car file under the WEB-INF/cars directory on our Luminis system and restarted the server. I'm trying to locate this channel using Channel Admin/Content Layout options without any success.
What is the name of this channel and what category does it fall under ?

Any help/pointers will be greatly appreciated.

Thanks,
Shyam

figured it out

Ignore my last post. I created a new custom channel, pointed it to
edu.wmich.luminis.uportal.channels.channelList.ChannelListChannel,
and saw the channel in action!

Shyam

CMenuChannel with channel registry enhancements from jasig

Hi,

Could somebody tell me where/how I can download this channel ?
Do I need to download the complete uPortal source code from jasig?

Thanks,
Shyam

Try This

This is our CHannel List Channel, there is no database connection. Try it out. It includes a categorized list of channels with links to open channels in a focused view (if they have a functional name).

http://www.lumdev.net/index.php?q=node/568

I have a version with even less code, I will upload it soon I hope.

Also I'm looking at including it in a slide out menu where you can add the a channel easily to the tab you are on.

Cheers
Dave