Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

[11:26:31 CDT(-0500)] <jgribonvald> hi

[11:26:53 CDT(-0500)] <EricDalquist> hi

[11:27:07 CDT(-0500)] <jgribonvald> is there someone who is aware about dlm and layouts

[11:27:10 CDT(-0500)] <jgribonvald> ?

[11:27:23 CDT(-0500)] <EricDalquist> somewhat

[11:27:28 CDT(-0500)] <EricDalquist> we can try to answer

[11:27:58 CDT(-0500)] <jgribonvald> thx Eric, so I'm trying to make a feature about a customized sidebare from dlm

[11:28:19 CDT(-0500)] <jgribonvald> to explain we use flyout nav + a custom sidebar

[11:29:30 CDT(-0500)] <jgribonvald> but the quicklinks feature isn't suitable for us as it doesn't lake "group" of listed channels

[11:29:43 CDT(-0500)] <jgribonvald> lake * make

[11:30:34 CDT(-0500)] <jgribonvald> so i make some modifications to publish special channels from dlm with folder names as groups

[11:31:18 CDT(-0500)] <jgribonvald> it's easy for me like that because we can publish easily new channels link to a targeted population

[11:31:49 CDT(-0500)] <EricDalquist> ok, I think I follow

[11:31:54 CDT(-0500)] <jgribonvald> for that I added a folder type named "sidebar"

[11:32:45 CDT(-0500)] <jgribonvald> in UserLayoutFolderDescription.java and IUserLayoutFolderDescription.java

[11:34:23 CDT(-0500)] <jgribonvald> after i modified the file columns.xsl to add a new xml structure for that and i modified a bit theme universality to suits

[11:34:49 CDT(-0500)] <jgribonvald> and finaly I published my dlm with folder's type as sidebar and it's working

[11:35:14 CDT(-0500)] <jgribonvald> but now I would like to doesn't show channels that users shouldn't see

[11:35:25 CDT(-0500)] <jgribonvald> and I'm looking for that

[11:35:27 CDT(-0500)] <jgribonvald> (tongue)

[11:35:57 CDT(-0500)] <jgribonvald> is it in uportal-war/src/main/java/org/jasig/portal/layout/dlm/DistributedLayoutManager.java ?

[11:36:05 CDT(-0500)] <EricDalquist> I don't think I follow that last statement

[11:36:16 CDT(-0500)] <EricDalquist> also I need to know what version of uPortal you are working with

[11:36:25 CDT(-0500)] <jgribonvald> 4.0.12

[11:36:37 CDT(-0500)] <jgribonvald> snapshot

[11:37:25 CDT(-0500)] <EricDalquist> ok

[11:37:41 CDT(-0500)] <EricDalquist> so I don't follow what you mean when you say "but now I would like to doesn't show channels that users shouldn't see"

[11:39:09 CDT(-0500)] <jgribonvald> ok i would like to have in the xml layout structure only channels of type sidebar that the user can see, like it's done with other type like header, footer

[11:39:19 CDT(-0500)] <jgribonvald> but maybe I'm wrong

[11:40:05 CDT(-0500)] <EricDalquist> ah

[11:40:12 CDT(-0500)] <jgribonvald> i've seen in uportal-war/src/main/java/org/jasig/portal/layout/dlm/DistributedLayoutManager.java line 243 some things done for header and footer

[11:40:15 CDT(-0500)] <EricDalquist> so you want the DLM code to filter the contents of the folder?

[11:40:21 CDT(-0500)] <EricDalquist> that has your new type?

[11:40:26 CDT(-0500)] <jgribonvald> yes

[11:40:30 CDT(-0500)] <EricDalquist> hrm

[11:40:43 CDT(-0500)] <EricDalquist> I don't know DLM well enough to tell you exactly where that happe4ns

[11:41:00 CDT(-0500)] <EricDalquist> I'm assuming it probably happens during the generation of the ILF

[11:41:24 CDT(-0500)] <EricDalquist> let me open up my uPortal code

[11:41:24 CDT(-0500)] <jgribonvald> ok so I will test

[11:41:26 CDT(-0500)] <EricDalquist> and look for a minute

[11:41:55 CDT(-0500)] <jgribonvald> else is a such feature is interesting you ?

[11:42:05 CDT(-0500)] <EricDalquist> it is

[11:42:06 CDT(-0500)] <jgribonvald> to make a PR

[11:42:25 CDT(-0500)] <jgribonvald> but i don't know if it will work in master branch

[11:42:54 CDT(-0500)] <EricDalquist> master and 4.0 patches are the same for layouts right now

[11:43:05 CDT(-0500)] <EricDalquist> we haven't started on the layout manager refactoring coding yet

[11:43:18 CDT(-0500)] <jgribonvald> ok good so

[11:43:36 CDT(-0500)] <EricDalquist> so I'm opening up the project

[11:43:47 CDT(-0500)] <EricDalquist> and what I'm going to look for is where in DLM it calls into the permissions API

[11:43:53 CDT(-0500)] <EricDalquist> to determine if a user can render a portlet

[11:44:00 CDT(-0500)] <EricDalquist> that should point us to where that check is done

[11:44:44 CDT(-0500)] <jgribonvald> i think it's on the class that I pointed and around line 239

[11:45:18 CDT(-0500)] <jgribonvald> but I don't know if there is other things that are done after

[11:46:02 CDT(-0500)] <EricDalquist> another possibility is uportal-war/src/main/java/org/jasig/portal/layout/dlm/ILFBuilder.java:180

[11:46:22 CDT(-0500)] <EricDalquist> yeah

[11:46:25 CDT(-0500)] <EricDalquist> I'm guessing that is it

[11:46:43 CDT(-0500)] <EricDalquist> the ILF is the pristine DLM managed layout for a user

[11:47:02 CDT(-0500)] <EricDalquist> DLM takes all of the fragments the user can see

[11:47:05 CDT(-0500)] <EricDalquist> then merges them into the ILF

[11:47:08 CDT(-0500)] <EricDalquist> and does the filtering

[11:48:25 CDT(-0500)] <jgribonvald> thx I will watch on so and i will try to make a PR for a such FEATURE

[11:48:32 CDT(-0500)] <EricDalquist> sounds good

[11:50:02 CDT(-0500)] <jgribonvald> on an other hand I pushed some PR, so if you want some explanations don't hesitate to ask / comment

[11:50:15 CDT(-0500)] <EricDalquist> will do

[11:50:23 CDT(-0500)] <EricDalquist> I should be circling around to uPortal updates this week

[11:50:32 CDT(-0500)] <jgribonvald> https://github.com/Jasig/uPortal/pulls/jgribonvald

[11:50:55 CDT(-0500)] <jgribonvald> and there is one about virtual hosting

[11:51:03 CDT(-0500)] <EricDalquist> ok

[11:51:05 CDT(-0500)] <jgribonvald> that we use in our context

[11:51:08 CDT(-0500)] <EricDalquist> yeah

[11:51:11 CDT(-0500)] <EricDalquist> we actually do that too

[11:51:45 CDT(-0500)] <jgribonvald> yes but this PR is to be able to define a dlm per domain name for guest user

[11:51:53 CDT(-0500)] <EricDalquist> oh neat

[11:52:24 CDT(-0500)] <jgribonvald> after I don't know if it's the best way to do

[11:54:28 CDT(-0500)] <jgribonvald> as we added a profile based on serverName

[11:54:39 CDT(-0500)] <EricDalquist> O

[11:54:43 CDT(-0500)] <EricDalquist> I'll take a look at it

[11:55:06 CDT(-0500)] <jgribonvald> this were needed due to layout cache

[11:55:11 CDT(-0500)] <EricDalquist> yeah

[11:55:14 CDT(-0500)] <EricDalquist> that is the annoying part

[11:55:22 CDT(-0500)] <EricDalquist> the handling of caching for the guest user

  • No labels