uPortal IRC Logs-2010-01-21

[06:46:59 EST(-0500)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[08:19:59 EST(-0500)] * bszabo (n=bszabo@ip68-227-239-204.ph.ph.cox.net) has left ##uportal
[08:32:20 EST(-0500)] * ChanServ (ChanServ@services.) has joined ##uportal
[08:47:04 EST(-0500)] * EricDalquist (n=apollo@76.210.66.160) has joined ##uportal
[09:06:34 EST(-0500)] * michelled (n=michelle@142.150.154.101) has joined ##uportal
[09:13:25 EST(-0500)] * athena (n=athena@adsl-76-250-193-123.dsl.wlfrct.sbcglobal.net) has joined ##uportal
[09:35:21 EST(-0500)] * ChanServ (ChanServ@services.) has joined ##uportal
[09:35:21 EST(-0500)] * EricDalquist (n=apollo@76.210.66.160) has joined ##uportal
[09:35:21 EST(-0500)] * michelled (n=michelle@142.150.154.101) has joined ##uportal
[09:51:04 EST(-0500)] * athena (n=athena@adsl-76-250-193-123.dsl.wlfrct.sbcglobal.net) has joined ##uportal
[10:05:49 EST(-0500)] * holdorph (n=holdorph@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[10:38:27 EST(-0500)] * awills (n=awills@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[11:08:10 EST(-0500)] * lfuller (n=sparhk@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[11:45:02 EST(-0500)] * colinclark (n=colin@67.117.81.100) has joined ##uportal
[12:04:59 EST(-0500)] <awills> EricDalquist are you there?
[12:05:04 EST(-0500)] <EricDalquist> yes
[12:06:00 EST(-0500)] <awills> so... i'm aiming to ask the portal security API if a certain user has SUBCRIBE permission to a specific channel...
[12:06:09 EST(-0500)] <awills> i don't know the numeric id
[12:06:34 EST(-0500)] <EricDalquist> you need to look it up via the channel registry APIs
[12:06:39 EST(-0500)] <awills> this part of the API seems to be in flux... ChannelRegistryStore being deprecated and so forth
[12:06:45 EST(-0500)] <EricDalquist> right
[12:06:53 EST(-0500)] <EricDalquist> but that is what you use for now
[12:07:17 EST(-0500)] <awills> ah – was imagining there might be a new, preferred way
[12:07:56 EST(-0500)] <EricDalquist> not yet
[12:08:10 EST(-0500)] <EricDalquist> later in the list is merging IChannelDefinition and IPortletDefinition
[12:08:18 EST(-0500)] <EricDalquist> since once everthing is a portlet they will be 1==1
[12:08:30 EST(-0500)] <EricDalquist> but that isn't going to happen before you're done with these portlets
[12:08:49 EST(-0500)] <awills> gotcha, that's pretty clear
[12:09:11 EST(-0500)] * Sememmon (n=Sememmon@unaffiliated/sememmon) has joined ##uportal
[12:09:28 EST(-0500)] <EricDalquist> so as development on 3.3 proceeds we'll likely be doing lots of refactoring of even recently written code
[12:09:42 EST(-0500)] <EricDalquist> unavoidable I think (sad)
[12:10:04 EST(-0500)] <EricDalquist> but hopefully for most of the new code the changes will be fairly easy to make
[12:10:30 EST(-0500)] <awills> sounds like there's an understanding in place... just didn't want to make new pain
[12:13:58 EST(-0500)] <awills> is there a standard init()-style method for controllers? should i use WebApplicationObjectSupport.initServletContext(), even if my init work isn't actually based on the servletContext?
[12:14:23 EST(-0500)] <EricDalquist> this is just for a spring bean?
[12:14:41 EST(-0500)] <EricDalquist> webflow doesn't use controller code
[12:15:15 EST(-0500)] <awills> it's for getting a reference to some reasorces that can be gotten once and held for the life of the app... resources that aren't in context xml files
[12:15:42 EST(-0500)] <EricDalquist> but this is a java class configured a a Spring <bean> ?
[12:15:43 EST(-0500)] <awills> it does if it gets data from ajax calls to servlet MVC (wink)
[12:15:49 EST(-0500)] <EricDalquist> ah
[12:15:50 EST(-0500)] <EricDalquist> so
[12:15:55 EST(-0500)] <EricDalquist> we're upgrading to Spring 3.0
[12:16:01 EST(-0500)] <EricDalquist> which doesn't have Controllers
[12:16:18 EST(-0500)] <EricDalquist> so if you're doing new code you need to use the controller annotations
[12:16:34 EST(-0500)] <EricDalquist> and if it is a spring bean you just implement InitializingBean
[12:17:58 EST(-0500)] <awills> is there an example of using "controller annotations" in uP code somewhere? or Jasig portlets?
[12:18:10 EST(-0500)] <EricDalquist> ah …. the weather portlet
[12:19:39 EST(-0500)] <awills> afterPropertiesSet() is perfect
[12:41:38 EST(-0500)] <athena> awills: for subscribe permissions to a specific channel, i think you could ask the groups and permissions API rather than the channel registry store?
[12:41:58 EST(-0500)] <EricDalquist> I think he needs to find a chan_id from an fname
[12:42:07 EST(-0500)] <athena> ah
[12:42:10 EST(-0500)] <EricDalquist> and gap only references channels by id I think
[12:42:17 EST(-0500)] <athena> makes sense then
[12:44:40 EST(-0500)] <awills> which actually begs the question... are AuthorizationService, IAuthorizationPrincipal, IAuthorizationService, IPermission and the like technically a part of GaP?
[12:45:06 EST(-0500)] <EricDalquist> kind of?
[12:45:11 EST(-0500)] <awills> it sounds like they are, but they're in org.jasig.portal.security... and there's other stuff in there
[12:45:24 EST(-0500)] <athena> interesting point
[12:45:42 EST(-0500)] <EricDalquist> they are more like utility wrappers of the underlying permissions code
[12:46:01 EST(-0500)] <athena> true, though some of the logic that's integral to calculating things like permission inheritence is in those classes
[12:46:17 EST(-0500)] <awills> is there even a way to get a permission using any API in org.jasig.portal.groups?
[13:44:34 EST(-0500)] * michelled (n=michelle@142.150.154.101) has joined ##uportal
[15:13:11 EST(-0500)] * Sememmon (n=Sememmon@unaffiliated/sememmon) has joined ##uportal
[15:45:01 EST(-0500)] * colinclark (n=colin@67.117.81.100) has joined ##uportal
[17:05:33 EST(-0500)] * colinclark (n=colin@67.117.81.100) has joined ##uportal
[18:21:57 EST(-0500)] * EricDalquist1 (n=apollo@adsl-99-135-74-237.dsl.mdsnwi.sbcglobal.net) has joined ##uportal
[19:41:34 EST(-0500)] * colinclark (n=colin@216.112.110.67.ptr.us.xo.net) has joined ##uportal
[19:57:20 EST(-0500)] * lfuller (n=sparhk@wsip-72-215-204-133.ph.ph.cox.net) has left ##uportal
[20:22:40 EST(-0500)] * awills (n=awills@wsip-72-215-204-133.ph.ph.cox.net) has left ##uportal
[21:09:22 EST(-0500)] * Sememmon (n=Sememmon@unaffiliated/sememmon) has joined ##uportal
[21:53:56 EST(-0500)] * colinclark (n=colin@216.112.110.67.ptr.us.xo.net) has joined ##uportal