How to Pass a Parameter in the Calendar feed url.

46 views
Skip to first unread message

Sourabh Batni

unread,
Jun 8, 2016, 6:01:41 PM6/8/16
to uPortal Community
When I add a new iCal feed calendar in the portal Calendar Administration screen is there a way to pass the logged in users online id as a parameter in the feed url.

We have a webservice that we are using for retrieving the course calendar for specific users  and it retrieves the calendar based on the userid that is passed to it as an url parameter.

Thanks

Sourabh Batni

University Of Kansas

Drew Wills

unread,
Jun 8, 2016, 6:49:52 PM6/8/16
to Sourabh Batni, uPortal Community
Sourish,

This class (bean) in the CalendarPortlet appears to have the feature you seek:


Looking at the Spring context, an instance of this class appears to be wired into the ConfigurableHttpCalendarAdapter already.

drew

--
You received this message because you are subscribed to the Google Groups "uPortal Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-user...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/uportal-user/.

Batni, Sourabh

unread,
Jun 9, 2016, 10:50:41 AM6/9/16
to Drew Wills, uporta...@apereo.org

Thanks Drew.  I am running into a problem when I try to do a maven overlay for this file ,the source ConfigurableHttpCalendarAdapter​.java file is getting copied over to the target folder.


From: uporta...@apereo.org <uporta...@apereo.org> on behalf of Drew Wills <awi...@unicon.net>
Sent: Wednesday, June 8, 2016 4:53 PM
To: Sourabh Batni
Cc: uPortal Community
Subject: Re: [uportal-user] How to Pass a Parameter in the Calendar feed url.
 

Drew Wills

unread,
Jun 9, 2016, 4:15:19 PM6/9/16
to Batni, Sourabh, uporta...@apereo.org
Sourabh,

I don’t think you need to overlay it — it should be present in the deployment already.  In fact, it looks to be con figured — and ready to go — already.

drew

On Jun 9, 2016, at 7:50 AM, Batni, Sourabh <s757...@ku.edu> wrote:

Thanks Drew.  I am running into a problem when I try to do a maven overlay for this file ,the sourceConfigurableHttpCalendarAdapter​.java file is getting copied over to the target folder.

Batni, Sourabh

unread,
Jun 9, 2016, 4:22:16 PM6/9/16
to Drew Wills, uporta...@apereo.org

Hi Drew

 

The user id needs to be encrypted before being passed and for this I was trying  to do an overlay in StringTemplateUrlCreatorImpl.java

 

Thanks

 

Sourabh

Drew Wills

unread,
Jun 10, 2016, 1:17:58 PM6/10/16
to Batni, Sourabh, uporta...@apereo.org
Sourish,

Ah — I follow you now.

Within your maven overlay, do you have each file in the right place?

  - src/main/java for .java files
  - src/main/resources for non-java class path resources
  - src/main/webapp for things available in the web context

drew
Reply all
Reply to author
Forward
0 new messages