Re: [Hypercontent-users] How to read groups.xml from the CAS server.
Brought to you by:
alexvigdor
From: tom t. <j_l...@ya...> - 2007-02-13 02:22:34
|
I forgot to reply to the forum, I followed all the steps and changed the bootstrap pipelines.xml alone with other vm changes as instructed by you (changed manually). But cant get the Edit link in the uPortal portlet, eventhough the user is entitled to edit contents. After that I created a seperate jsp page as listed below and then did login to HC via CAS and hit the URL which points to the sample jsp page being in the same browser still it doesnt work, Am I doing some thing wrong, How to trouble shoot this. I am using firefox I am not using any XSLs at the moment. <html> <head> </head> <body> This is to check the EDIT link comes <script type="text/javascript" language="javascript" src="http://localhost:8080/hypercontent/js/common.js"> </script> <script type="text/javascript" language="javascript" src="http://localhost:8080/hypercontent/js/ajax.js"> </script> <div id="page-edit-link-div" value="test">hello</div> <script type="text/javascript" language="javascript"> loadToElement(document.getElementById('page-edit-link-div'),'http://localhost:8080/hypercontent/testProject/?mode=page-edit-link'); </script> </body> </html> --- Alex Vigdor <al...@bi...> wrote: > > On Jan 23, 2007, at 7:17 PM, tom tom wrote: > > > > > How can I create the above /skin/page-edit-link.vm > > file > > should I have a seperate resource-directory in my > > project definition file. > > Yes, e.g. > > <resource-directory label="Velocity template" > path="/skins/**/*.vm" > publish="true"> > <content type="application/x-vtl" /> > <output basedir="/" content-type="text/plain" /> > </resource-directory> > > > > > within uPortal what we have is jsps infact the > portlet > > development strategy is struts-bridge what this > means > > is our portlets are not govern by xsls. But still > I > > will incooperate the above <script > type="text/j...... > > code segment and try but let me know what are the > > values that I should give for abs-project-base, > > bs-server-base, and request-path assuming my > project > > is running in the following url > > abs-project-base = http://<HC > Server>:<HCPort>/hypercontent/test_project > abs-server-base = http://<HC > Server>:<HCPort>/hypercontent > request-path = /path/in/hc/repository/file.ext > > > > > > http://<HC Server>:<HC > > Port>/hypercontent/test_project/?mode=interactive > > > > > > Also explain me how does that entire logic works, > how > > does the HC knows about the user credentials. > > > > HC never sees the users credentials - it uses a > standard CAS > authentication to identify the user. HC uses its > own groups and > permission configuration to then determine whether > that user has the > right to edit the page. > > Cheers, > Alex > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ |