[Logo] Forums for GrailsFlow, Weceem, XSLfast
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How would I .....  XML
Forum Index » Weceem Forum
Author Message
doyle



Joined: 20/01/2010 20:37:07
Messages: 8
Offline

I have a site with many users. They can edit their own content/pages. How would that be set up in weceem? I'm already using acegi on grails 1.2 in production. I just want to replace the current micro-site generator with weceem.

Would I insert the uri of the space to the acegi table request_map ? Could it be that easy?
marcpalmer



Joined: 04/06/2009 13:36:35
Messages: 303
Location: UK
Offline

Hi,

Weceem 0.8 has a security policy where you define what roles users must have to access resources with various permissions. I would recommend this.

If you're using the out-of-the-box Weceem WAR file then you having nothing to do except maybe define some new roles for those users so you can set permissions in the policy by user. Is it true user specific content or "group" specific content?

If it's user specific content, you need to nothing except add info to the security policy using the default roles created by weceem for each unique user of the form USER_xxxx so "tim" would have role USER_tim.

Please see here:

http://www.weceem.org/weceem/Documentation/Reference-manual/Security-Authorisation

- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
[WWW]
doyle



Joined: 20/01/2010 20:37:07
Messages: 8
Offline

I'm using the plugin as I need to integrate cms into the current system. I also need to map the current user/groups to the current policy. I'll try to adapt it today and post findings here.
marcpalmer



Joined: 04/06/2009 13:36:35
Messages: 303
Location: UK
Offline

See the other docs on hooking up your authentication (ACEGI) to Weceem 0.8 correctly to support security policy:

http://www.weceem.org/weceem/Documentation/Reference-manual/Security-Custom-Authentication


- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
[WWW]
doyle



Joined: 20/01/2010 20:37:07
Messages: 8
Offline

Yeah ... getting cache errors on integrating with a branch of my main app.


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager': Cannot resolve reference to bean 'daoAuthenticationProvider' while setting bean property 'providers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider': Cannot resolve reference to bean 'userCache' while setting bean property 'userCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userCache': Cannot resolve reference to bean 'securityUserCache' while setting bean property 'cache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityUserCache': Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: userCacheCache: Could not create disk store. Initial cause was userCache Cache: Could not create disk store. This CacheManager configuration does not allow creation of DiskStores. If you wish to create DiskStores, please configure a diskStore path.
marcpalmer



Joined: 04/06/2009 13:36:35
Messages: 303
Location: UK
Offline

Turn off the Acegi user cache.

- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
[WWW]
doyle



Joined: 20/01/2010 20:37:07
Messages: 8
Offline

thanks
doyle



Joined: 20/01/2010 20:37:07
Messages: 8
Offline

Also if you have any classes named Content it blows up. Interestingly it wasn't a class path issue just a flat compilation error.
doyle



Joined: 20/01/2010 20:37:07
Messages: 8
Offline

Can you make 'admin' optionally configurable in WeceemPluginUrlMappings.groovy? Who new admin would be so popular. Also, from a security standpoint having it configurable makes it harder to have canned exploits.
marcpalmer



Joined: 04/06/2009 13:36:35
Messages: 303
Location: UK
Offline

The trunk of SVN (which is experimental at the moment) has configuration for the /admin and the / url mappings, so you can remap them to /whatever/admin-the-cms and /cms-content-here/ etc

This will be in the 0.9 release, hopefully in a few weeks - but if you want you can try svn trunk.

- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
[WWW]
doyle



Joined: 20/01/2010 20:37:07
Messages: 8
Offline

Very Nice. I'm trying to jam out the smallest implementation possible for a beta/upgrade of a site early next week. Keeping fingers crossed.
doyle



Joined: 20/01/2010 20:37:07
Messages: 8
Offline

Is there a way to specify/create templates without using the in browser editor? e.g. weceem/templates then select that template in a drop down? The dev cycle for a template seems overly long.



Is Broken
http://www.weceem.org/weceem/Documentation/Tutorials/Using-blocks
btw
 
Forum Index » Weceem Forum
Go to:   
Powered by JForum 2.1.8 © JForum Team